Detailed linux command: disk check repair command e2fsck

  
                  

e2fsck is used to check and repair hard disk partitions for ext3 and ext2 filesystems, but this command has a proprietary form: fsck.ext3, which is used to detect ext3 and ext2, respectively.

How to use:

1. First uninstall the file system partition to be checked before checking.

2. The main parameters are:

-a: Check partition, if the problem is found, it will be fixed automatically.

-b: Set the superblock position.

-B size: Specify size as the block size.

-c: Check if the partition has bad tracks.

-C file: Save the check result to file.

-d: Outputs the e2fsck debug result.

-f: The e2fsck preset will only check for the wrong file system, plus -f is a mandatory check.

-F: The parameters of the hard disk are included before the check:

-a:

Copyright © Windows knowledge All Rights Reserved