newly added a hard disk sdb1, mount it to/mnt/cdrom, in order to automatically mount when starting the server, modify the/etc/fstab file, causing the startup times to mount the error, after entering the repair filesystem mode, want to modify/etc/ Fstab, the results are read only, and the problem-solving process begins.
Workaround:
1. Start the Linux prompt failed, enter the root account password, enter repair filesystem#, note at this time repair Fstab file will prompt ReadOnly cannot save the changes.
2. Right to Root
3. Mount/-O remount
At this time,/etc/fstab can be modified, this step is the core content
When our Linux system fails to boot, it is often necessary to go into single-user mode to modify some of the configuration files, or to adjust some parameters.
However, after entering single-user mode, our/file system is read-only and cannot be modified.
So this time we need to use a command: mount–o remount,rw/This command to make our/path file system readable mode, so that we can achieve free modification.
4. Modify the Fstab file Vi/etc/fstab
If the fstab file is broken, there is a backup to restore it, do not write a chant, the key to know the partition, as well as the previous hanging in the situation.
Resources:
Linux fstab file lost recovery http://www.linuxidc.com/Linux/2010-09/28385.htm
Linux fstab File Recovery work http://www.linuxidc.com/Linux/2014-04/99895.htm
Linux fstab Parameters Detailed http://www.linuxidc.com/Linux/2009-12/23251.htm
Linux Post configuration file Fstab read-only unable to modify the problem http://www.linuxidc.com/Linux/2014-06/103841.htm
Repair of fstab files under Linux (Rescue mode) causes system not to start resolved