Linux fault recovery

Source: Internet
Author: User
Linux fault recovery-general Linux technology-Linux technology and application information. For details, refer to the following section. 1. Solution to forgetting the root password

1. boot to the grub menu, move the cursor to the option to boot, press e, select the kernel option, then press e, add 1 at the end, and then press esc, press B to enter the single-user mode

2. After Entering linux, the password is not required to be the root identity. vi/etc/shadow will delete the second field of the line where root is located, save and restart.

3. Do not forget to reset the root password after restarting.

2. Unable to start up due to a set error.

It is usually because the input of the/etc/fstab file is incorrect, and the partition cannot be mounted successfully.

1. Enter the single-user mode.

2. Use mount? N? O remount, rw/re-mount the root directory. Modify and save the content in fstab, and restart.

3. An error occurs due to abnormal shutdown.

File System error occurs due to abnormal shutdown, such as power failure.

1. Enter the single-user mode.

2. Execute fsck/dev/hdax for the error partition as the Partition Number. When the system detects an error, clear y/n selects y to solve the problem. If not, back up the file and reinstall the system.
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.