Problem with saving an edit through lish/joe

Hi all, thank you for any help with this. It's something I've done many times with no problem, but not in a while, and I'm getting an error I've never had before.

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

A bit more info - a friend with some knowledge took a look at what I'm doing, and apparently the problem is indeed that the files are in a read-only mode. I don't know why this has changed - I wouldn't even know how to make that happen if I wanted to, but I need to know how to change it back so that I once again have editing capabilities via lish for my server files.

Thank you again for any information.

The filesystem may be mounted read-only. You may want to try remounting with no barriers:

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!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct