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. If a power failure occurs, the Windows operating system will automatically detect and restore the system when it is restarted, but Unix won't... 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
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.