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.
problem with filesystem
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
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.
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