problem with filesystem

Taking care of your Linux box.

problem with filesystem

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

Assalam-o-Alikum

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.
jawadakhtar
Cadet
 
Posts: 2
Joined: Wed Feb 04, 2004 2:31 am

Re:

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

Dear jawadakhtar,
Salam,

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron