problem with filesystem

Taking care of your Linux box.
Posts: 2
Joined: Wed Feb 04, 2004 2:31 am

problem with filesystem

Postby jawadakhtar » Sat Mar 27, 2004 12:39 am


I am working with fstab, but due to power intruption the machine was restarted. Now, while booting, when linux boot process jumps into Intractive mode, it stop loading, and give a message that fstab is missing and ask for root password for filesystem maintenance. On providing root password, it login me into the system but with Read Only filesystem.

Now I am su, but I cant change any thing on the system, as filesystem is readolny. I tried to write fstab and remove .fstab.swp file but failed to do.

Anyone can tell me how I can fix this problem.

Thanks in advance.

Allah Hafiz.

Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi


Postby LinuxFreaK » Sat Mar 27, 2004 1:05 am

Dear jawadakhtar,

If you make a mistake editing your /etc/fstab or /etc/rc.conf files, your system may boot to single user mode - surprise! When this happens, Linux only mounts the root (/) filesystem, and it mounts it in read only mode.

To edit the files and fix the problem, you need to re-mount the root filesystem in read/write mode.

To do this use the -u flag with the mount command.

mount -u /

You will now be able to edit any files in /etc - fstab, rc.conf and the like, save them to the disk and reboot the system back to multi-user mode.

Best Regards.
Farrukh Ahmed

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest