centos6.x Error in Fstab configuration file prevents startup and forgets root password resolution

Source: Internet
Author: User

First, when you modify the/etc/fstab configuration file, after restarting found unable to enter the command line, there are the following workaround:

Workaround:

1. Start the Linux prompt failed, enter the root account password, re-modify the/etc/fstab configuration file will prompt ReadOnly cannot save the changes.

2. Right to Root

3.Mount Rw,renount/ or mount/rw,remount edit the/etc/fstab again to modify the

4. Modify Fstab file Vi/etc/fstab, restart effective


Second, resolve the forgotten root password, reconfigure the new password method.

In the process of using Linux, sometimes forget the root user's password, this time we can go into single-user mode to reset the root user password.

Environment: centos6.5

1, restart the server, in reading seconds when pressing any key, will appear the following interface

Press ' E ' in the keyboard in this interface to enter GRUB mode

650) this.width=650; "style=" width:605px;height:334px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211628.jpg "/>

2, in 1, press E will enter the following interface.

Move the cursor to the kernel line, and then press ' E ' again to enter the kernel edit screen

650) this.width=650; "style=" width:601px;height:345px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211630.jpg "/>

3, this is the kernel editing interface

650) this.width=650; "style=" width:630px;height:129.306px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211631.jpg "/>

4, in the kernel editing interface, click the SPACEBAR, and then enter single or enter 1, and press ENTER ENTER to exit kernel edit interface

650) this.width=650; "style=" width:620px;height:142px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211732.jpg "/>

5, exit Kernel interface will return to the GRUB mode interface, this interface again move the cursor to the kernel line, and then press ' B ' to start the system

650) this.width=650; "style=" width:601px;height:345px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211735.jpg "/>


6, this time the system will come to single-user mode, do not need to enter any password can be directly into the system

650) this.width=650; "style=" width:624px;height:416px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211837.jpg "/>

7, in single-user mode, we can directly modify the password

650) this.width=650; "style=" width:558px;height:92px; "alt=" \ "src=" http://www.2cto.com/uploadfile/Collfiles/ 20141103/2014110309211839.jpg "/>

8, the change is complete, restart the server to enter the normal mode


Description: This article is to refer to other literature summary thereby come out, if there is similar please contact blog blogger.

This article is from "Wake up your not alarm clock but dream" blog, please be sure to keep this source http://purify.blog.51cto.com/10572011/1787943

centos6.x Error in Fstab configuration file prevents startup and forgets root password resolution

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.