Fstab in a configuration error that causes the system to fail to start a recovery Scenario 1 manufacturing error occurs, configure the following in/etc/fstab
The end of the countdown to the first 1 indicates a disk check, 0 means no disk check, the second-to-last 0 means no backup, 1 means a backup, generally in addition to/boot and/use disk check, the rest of the disk check is not used. Backup yourself to backup, there is no need for the system to help you back up.
Restart the server host, the boot process will be error
2 Handling Errors
The above error prompts us to give the root password or use Ctrl+d to continue, but the ctrl+d will still restart, so we give the root password for processing.
Given the root password, we enter maintenance mode, in which you cannot modify any of the configuration files.
Even if Root is using wq! It's not going to work.
We use Mount-o Rw,remount/(re-mount meaning)
You can make changes to the file.
Change the configuration of the error you just made to the correct configuration and reboot.
3 precautions
Do not configure network File system mounts in/etc/fstab, such as NFS
In addition to processing/boot and/or using disk check, the rest of the disk checks are not used, as for backups, backed up as required.
How to solve the problem that the server host cannot be restarted due to configuration error in Linux Fstab