Problem with saving an edit through lish/joe
I'm using a finnix installation and the Joe editor to make a change to my iptables file, and the editor won't save the change. I do my customary ctrl-k-x to exit and save, and instead of saving as normal, the return prompt I am getting is:
> cannot make backup file, save anyway? y/n/^c
I select "y", and then it says,
> error opening file
and does nothing further.
Another odd thing is that if I make a mistake and hit my ctrl-c for abort, and go back into the file in Joe to try again, it's then opening in read-only, and I have to reboot the finnix and remount the image to get back into the file in non-read-only mode. I've never had this happen before, either, and I don't know if that is important or related.
The only recent change on my server was closing an "open resolver" issue. It doesn't seem like that should have anything to do with this, but I'm mentioning it just in case.
So, any help MUCH appreciated, so I can just do my edit, save the file with the change, and have everything happy again!
Thank you.
3 Replies
Thank you again for any information.
mount -o remount,barrier=0 /path/to/mount/point
tl;dr Filesystem barriers don't mix well with certain versions of Xen.
@retrograde inversion:
mount -o remount,barrier=0 /path/to/mount/point
I re-started up the finnix installation, and found that since I was "mounting" instead of "remounting," I was able to use your command in the form:
> mount -o barrier=0 /path/to/mount/point
And it let me edit the file as I'm accustomed to!
Everything I needed to fix is fixed now, and hopefully this will work again if I have to do this again.
Thank you VERY much! A lifesaver!