Repair of fstab files under Linux (Rescue mode) causes system not to start resolved

Source: Internet
Author: User

newly added a hard disk sdb1, mount it to/mnt/cdrom, in order to automatically mount when starting the server, modify the/etc/fstab file, causing the startup times to mount the error, after entering the repair filesystem mode, want to modify/etc/ Fstab, the results are read only, and the problem-solving process begins.



Workaround:

1. Start the Linux prompt failed, enter the root account password, enter repair filesystem#, note at this time repair Fstab file will prompt ReadOnly cannot save the changes.

2. Right to Root

3. Mount/-O remount

At this time,/etc/fstab can be modified, this step is the core content


When our Linux system fails to boot, it is often necessary to go into single-user mode to modify some of the configuration files, or to adjust some parameters.

However, after entering single-user mode, our/file system is read-only and cannot be modified.

So this time we need to use a command: mount–o remount,rw/This command to make our/path file system readable mode, so that we can achieve free modification.


4. Modify the Fstab file Vi/etc/fstab


If the fstab file is broken, there is a backup to restore it, do not write a chant, the key to know the partition, as well as the previous hanging in the situation.


Resources:

Linux fstab file lost recovery http://www.linuxidc.com/Linux/2010-09/28385.htm

Linux fstab File Recovery work http://www.linuxidc.com/Linux/2014-04/99895.htm

Linux fstab Parameters Detailed http://www.linuxidc.com/Linux/2009-12/23251.htm

Linux Post configuration file Fstab read-only unable to modify the problem http://www.linuxidc.com/Linux/2014-06/103841.htm


Repair of fstab files under Linux (Rescue mode) causes system not to start resolved

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.