Unix disk scan command

Source: Internet
Author: User

A Unix operating system may paralyze the system after a sudden power failure. At this point, the Unix operating system is not as good as that of Microsoft. In the event of a power failure, the Windows operating system will automatically detect and recover when it is restarted, But Unix will not. We need to manually execute The fsck command to scan for recovery.
Generally, if the super block and Inode block on the hard disk are inconsistent with the copy in the memory, the system may fail to start. For example, when a sudden power failure occurs, the super block in the hard disk is not saved to the hard disk in time. This will cause the super block inconsistency between the two locations, and the integrity of the file system will be damaged. In severe cases, the operating system will be paralyzed. However, in case of such a file system error, you do not need to reinstall the operating system. Instead, you only need to execute the fsck command to fix Common Errors of most file systems.
Generally, If you execute # fsck-Y, the system will automatically fix the scan errors.
In addition, the most common options are:
P: Sorting (preen) Mode
F: force check mode. This option ignores the file system status flag. Author wan_2004

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.