How to solve the problem that the server host cannot be restarted due to configuration error in Linux Fstab

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.