Unexpected inconsistency error when Linux starts system

Source: Internet
Author: User

The following error occurred while booting the system.

This means identifying the problem when confirming the file system, and here's how to fix the file system error.

Checking filesystems

/12:unexpected inconsistency; RUN fsck manually.
(i.e., without-a or-p options)

An error occurred during the file system check.
dropping to a shell; The system would reboot
When you leave the shell.
Give root password for maintenance
(or type control-d to continue):

Enter the root password according to the prompts.

Give root password for maintenance
(or type control-d to continue): <-Enter the password of the root user

Initiates the file system repair script and then uses the Mount command to confirm the distinction of the hard drive that needs to be repaired.

(Repair filesystem) 1 # Mount
/dev/hda6 on/type ext3 (rw) <-here/dev/hda6 is a hard drive to repair

Repair using the fsck command, specifying the file system type and version with the-t option.
There will be more than a few confirmation messages, all entered enter (that is, yes).

(Repair filesystem) 2 # fsck-t Ext3/dev/hda6 start Repair
Fsck 1.39 (29-may-2006)
E2fsck 1.39 (29-may-2006)
/12 contains a file system with errors, check forced.
Pass 1:checking inodes, blocks, and sizes
Inode 97349 has a bad extended attribute block 21760.
Clear? <-enter

Inode 97249, I_blocks is 8, should to 0.
Fix it? <-enter
Omitted
Inodes that were part of a corrupted orphan linked list found.
Fix it? <-enter

Inodes 1855559 is part of the orphaned inode list. FIXED.
Omitted
Deleted inode 1856596 has zero dtime.
Fix it? <-enter
Omitted
Extended attribute block 1868847 has reference count 131,
should be 130.  Fix it? <-enter
Omitted
/12: * * * * FILE SYSTEM was MODIFIED * * * * *
/12: * * * REBOOT LINUX * * * *
/12:107499/2560864 files (1.5% non-contiguous),
936536/2560351 blocks
(Repair filesystem) 3 # Exit <-out of Repair mode

The restoration of the system after the end of the file system repair, in general, will be able to repair the success, in case the repair fails, you need to restore from the system backup.

# reboot

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.