When a centos startup error occurs, the system prompts unexpected inconsistency; run fsck manually.

Source: Internet
Author: User

1. Enter the command to find the root partition: Mount | grep "on" 2. then run the command fsck to fix fsck-y/dev/sda2 (root partition). Note: The-Y option specifies that yes3 is automatically input for each file to be detected. Fsck fixed the boot partition fsck-y/dev/sda13. Reboot restart OK

 

Fsck. ext4 [-panyrcdfvtdfv] [-B superblock] [-B blocksize]
               [-I inode_buffer_blocks] [-P process_inode_size]
               [-L |-l bad_blocks_file] [-c fd] [-J external_journal]
               [-E extended-options] Device

Emergency help:
 -P                 Automatic repair (no questions)
 -N                 Make no changes to the filesystem
 -Y                 Assume "yes" to all questions
 -C                 Check for Bad blocks and add them to the badblock list
 -F                 Force checking even if filesystem is marked clean
 -V                 Be verbose
 -Bsuperblock      Use alternative superblock
 -Bblocksize       Force blocksize when looking for superblock
 -J external_journalSetlocation of the external Journal
 -Lbad_blocks_file Add tobadblocks list
 -Lbad_blocks_file Set badblockslist

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.