Wednesday, April 14, 2010

CentOS - edit /etc/fstab when at "Repair filesystem" prompt

Linux gives you a “Repair Filesystem” prompt and you can enter that by providing the root password. The problem is that on “Repair Filesystem” prompt, linux file system and rest of the file systems are generally not mounted and if mounted then it is “Read-Only” so you can not change files.

Solution:

Use following command to mount the filesystem with writable permission:

Repair filesystem # mount -w -o remount /

After this you can go and change /etc/fstab file. Restart your computer.

2 comments:

Bharat Balothia said...

This was the solution I was looking for.

Unknown said...

exactly what I needed, too.