Linux Command Encyclopedia disk maintenance: E2fsck

Source: Internet
Author: User
Keywords Linux Command Encyclopedia e2fsck disk maintenance
Tags aliyun block check command encyclopedia disk disk maintenance displays document

Function Description: Check the correctness of the ext2 file system.

Grammar: e2fsck&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-accdffnprsstvvy] [b <superblock>] [B < block size] [-l < document] [-l < document] [Device name]

Supplementary note: E2fsck after the implementation of the return value and representative meaning is as follows.
0 No error occurred.
1 File system error has occurred and has been fixed.
2 File system error has occurred and has been fixed.
4 File system error, but no correction.
8 error occurred while operating.
16 The syntax used has an error.
128 Shared function library has an error.
Parameters:
-A automatically fixes the file system without asking the user for advice.
-b<superblock> specifies Superblock, instead of using a preset superblock.
-b< Chunk Size > Specifies the size of the block, in bytes.
-C executes badblocks to mark damaged blocks.
-C records the information of the inspection process in the file descriptor, so that the entire inspection process can be fully monitored.
-D Displays the error information.
-F checks for correctness even if there are no indications of error in the file system.
-F clears the buffer of the device prior to execution.
-l< file > Add the blocks specified in the file to the list of corrupted blocks.
-l< file > Clears the list of corrupted chunks before adding the blocks specified in the file to the list of corrupted blocks. Therefore, the blocks in the corrupted block list are the same as the blocks specified in the file.
-N Opens the file system in read-only mode and performs non-interactive execution, and all problem dialogs are set to answer "no".
-P automatically fixes the file system without asking the user for advice.
-r This parameter exists only for compatibility and does not work.
-S if the file system byte order is not appropriate, swap byte order, otherwise do not do any action.
-S swaps byte order regardless of the file system byte order.
-T displays time information.
-V displays detailed information when executing.
-V Displays version information.
-Y takes a non-interactive approach to execution, and all questions are set to answer yes.

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.