cannot edit /etc/fstab in single mode

Posted: July 27, 2010 in Redhat, Troubleshot
Tags: , ,

Problem :

I added one of no use syntax in /etc/fstab and  after reboot to single mode and then use vi to edit /etc/fstab that display this file
is read-only mode, so I cannot edit it ….. now I cannot go back to  normal boot up.

Solution :

In Single user mode type the following ,

mount -o remount,rw /

Then vi /etc/fstab and then you will be able to amend the file again .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s