Linux boot error unexpected inconsistency; RUN fsck Manually

Source: Internet
Author: User


Accidental power outage once, CentOS startup times following error:

Unexpected inconsistency; RUN fsck Manuallyan Error occurred during the filesystem checkpropping you to shell the system would rebootwhen you leave T He shellgive root password for mantennance



here's how to fix it:
1, follow the prompts, enter the root user's password, enter the command line interface



2. Locate the root directory and the boot partition and log:
# Mount |grep "On/"


3. Repair File System
# fsck-y/dev/sda2

The/dev/sda2 here is the one read in step 2.

The-y option specifies that each file is automatically entered Yes


4. Repair boot partition
(In fact, you can directly reboot, if the restart after the error is still performed this step)
# fsck-y/DEV/SDA1


5. Modify the permissions of the AUDITD log file
(This step is the same as Step 4, if you restart the error to perform this step)
# chown Root.root/var/log/audit/audit.log
# chmod 600/var/log/audit/audit.log


6. Restart
# reboot

Note: When fsck scans the file system, it must be in single-user mode, repair mode, or after umount the device


Linux boot error unexpected inconsistency; RUN fsck Manually

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.