Linux Command Encyclopedia disk maintenance: FSCK.EXT2

Source: Internet
Author: User
Keywords Linux Command Encyclopedia FSCK.EXT2 disk maintenance
Tags address aliyun anti- block check command encyclopedia disk disk maintenance

Function Description: Check the file system and try to fix the error.

Grammar: fsck.ext2&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-acdffnprsstvvy] [B < zoning first magnetic field address] [B < block size] [-C < anti-narrator] [-I <inode buffer block number] [-l/l < damaged block file] [-p < processing inode size] [Peripheral Device Code]

Supplemental Note: When an error occurs in the Ext2 file system, the FSCK.EXT2 directive can be used to try to fix it.

Parameters:
-A automatically fixes the file system without asking for any questions.
-b< partition First Magnetic address > Specifies the starting address of the first field of the partition, that is, super block.
-b< Chunk Size > Sets the size of each chunk of the partition.
-c checks for damaged chunks within the specified file system.
-c< Counter-Narrator > Specifies the counter-narrator, the fsck.ext2 instruction will leave the entire execution process to its reverse narration, easy to debug or monitor the execution of the situation.
-d details the instruction execution process to facilitate error-making or analysis of the execution of the program.
-F enforces a complete check of the file system, even though the filesystem is not subject to a modest check.
-F before checking the file system, clean the data in the block area of the save device.
-i<inode buffer block number > Set the number of blocks in the inode buffer to check the file system.
-l< damage block files > The blocks listed in the file as broken blocks and labeled to prevent applications from using the block.
-l< corrupted chunk File > This parameter is similar to the specified "-l" parameter, but before the damaged chunk file is marked for damage, it is clear that the previously marked damage block is fully reset, rather than just adding a new damaged block.
-N Sets the file system to be read-only and closes the interactive mode, rejecting all questions asked.
-P The effect of this parameter is the same as the specified "-a" argument.
-p< processing inode size > Setting FSCK.EXT2 instructions can handle the size of the inode.
-r This parameter ignores no processing and is only responsible for resolving compatibility issues.
-S to exchange the contents of each pair of bytes when checking the file system.
-S The effect of this parameter is similar to the specified "-S" parameter, but the contents of each pair of bytes are exchanged regardless of whether the file system is already a standard bit order.
-T displays timing information for the FSCK.EXT2 instruction.
-V details the instruction execution process.
-V Displays version information.
-Y Closes the interactive mode and agrees to all questions asked.

Related Article

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.