The system cannot be started, mount-o remount,rw / modify fstab in single user mode
When our Linux system cannot be started, we usually need to go into single-user mode to modify some configuration files or adjust some parameters. But after entering single-user mode, our / file system is read-only and cannot be modified, so we need to use a command: mount-o remount,rw / this command to make our / path file system readable so that we can modify it freely.
For example:
Added / etc/mtab
/ dev/sdb1 / install ext3 rw 0 0
/ etc/fstab
LABEL=/install / install ext3 defaults 1 2
Then the system restarts: it won't get up, hint
Give root password for maintenance
(or type control-d to continue:)
After entering the root password, I entered the system and wanted to remove the added content. But the prompt is read-only. Do not allow modification
Use the following methods
Mount-o remount, rw /
Because root directory / is mounted inread only mode. Type follwing command, then you should be able to editrc.sysint script.
Now you can modify the / FSTAB file again. Finally, reboot, the system starts successfully.