Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jan 21, 2013 7:45 pm 
Offline
Senior Newbie

Joined: Thu Aug 16, 2007 12:57 am
Posts: 13
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:

Quote:
cannot make backup file, save anyway? y/n/^c


I select "y", and then it says,

Quote:
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.


Top
   
PostPosted: Tue Jan 22, 2013 2:19 am 
Offline
Senior Newbie

Joined: Thu Aug 16, 2007 12:57 am
Posts: 13
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.


Top
   
PostPosted: Tue Jan 22, 2013 2:25 am 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
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.


Top
   
PostPosted: Tue Jan 22, 2013 2:47 am 
Offline
Senior Newbie

Joined: Thu Aug 16, 2007 12:57 am
Posts: 13
retrograde inversion wrote:
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:

Quote:
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!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group