/Etc/fstab file error, unable to enter Linux system, fstablinux

Source: Internet
Author: User

/Etc/fstab file error, unable to enter Linux system, fstablinux
Problem description

Today, I will review Linux File System Management, mount a new hard disk on the Linux system, partition, format, and step by step. In order to enable the hard disk to be automatically mounted when the system starts, therefore, it was written to the/etc/fstab file. However, after reboot, the Linux system could not be started normally, and the system showed a similar situation (because it was eager to handle the fault, so it was not done, later, I found several images on the Internet and roughly recorded my handling ideas)


According to the system prompt, it can be seen that the real cause of the system failure is that/etc/fstab wrote an error. The system startup report Checking filesystems failed. At this time, according to the system prompt, enter the root password to enter repair filesystem Mode


Repair Process
Try to modify/etc/fstab and find that the system is in read-only mode.



Mount-o remount, rw/# Remount the file system in read/write mode


Re-Modify/etc/fstab and modify the error location. [Note that the latest CentOS version no longer supports marking in this mode. For details, refer to the address provided below this blog]




Run the reboot command to restart the system.



OK. The repair is successful!


To sum up, the above problem occurs because the/etc/fstab file is configured incorrectly. When the system restarts, the volume mark (/other) cannot be identified, leading to the failure to start properly. If you run the mount-a command to verify whether the configuration is correct after modifying the/etc/fstab file, this problem can be avoided.
The solution is not only applicable to the problems described above, but also to other problems that may cause system startup failure due to incorrect Configuration modification.
For example:/etc/passwd file error,/etc/shadow file error...

Re-mount/is a key step in solving the problem (mount-o remount, rw /). If you do not perform this operation, the file system is read-only. As a result, you cannot modify the configuration file and save it.


Related blog

Http://blog.csdn.net/zjf280441589/article/details/39480907


Due to misoperations on the/etc/fstab file, you cannot access the system. How can I use the Linux installation CD to fix this problem?

You can use livecd to start it, and then livecd can enter the linux partition. You can enter/etc/fstab on the hard disk and use a text editor to change the file to the correct one.

In linux, how does one change the/etc/fstab file and restart the host after mounting the file? The following error occurs:

Start with a CD in rescue mode. After boot, enter "linux rescue" and press Enter.
In rescue mode, the system mounts the linux system (including the root directory,/boot, And/home) to/mnt/sysimage.
You can change the fstab file to the correct one.

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.