/Etc/fstab is broken and Linux cannot be started.

Source: Internet
Author: User
Etcfstab is broken and Linux cannot be started. etcfstab does not exist because the original mounting device in etcfstab does not exist, linux cannot be started because it cannot be mounted (or, of course, it may be caused by incorrect etcfstab syntax ). In this case, Linux will prompt you to enter/etc/fstab with the root password, which will cause Linux to fail and solve the problem:/etc/fstab because the original mounting device in/etc/fstab does not exist, linux cannot be started because it cannot be mounted (of course, it may also be caused by incorrect/etc/fstab syntax ). In this case, Linux will prompt you to enter the system with the root password to solve the problem. However, when the system changes/etc/fstab and deletes nonexistent objects from the device line, the file is read-only and cannot be modified (a little crazy ). This is because when Linux mounts the/etc/fstab device, it sets the mounting attribute to read-only. Therefore, you only need to re-mount the device where/etc/fstab is located, and set the attribute to read/write, you can modify the/etc/fstab file. The procedure is as follows: 1. run the df-h command to check the mount device of/etc/fstab, for example,/dev/sda1. remount the device and set read/write: mount-o remount, rw/dev/sda1 3. modify/etc/fstab 4. restart Linux
Related Article

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.