Linux fsck.ext2command
Linux Command大全
Linux fsck.ext2commands are used to check the file system and attempt to repair errors.
When ext2When a file system error occurs, fsck.ext can be used2The instruction attempts to repair it.
Syntax
fsck.ext2 [-acdfFnprsStvVy][-b <Partition First Sector Address>][-B <Block Size>][-C <Reverse Narrator>][-I <Number of Inode Buffer Blocks>][-l/L <Damaged Block File>][-P <Inode Size>][Peripheral Device Identifier]
Parameters:
- -a Automatically repair the file system without asking any questions.
- -b<Partition First Sector Address> Specify the starting address of the first sector of the partition, which is also the Super Block.
- -B<Block Size> Set the size of each block for the partition.
- -c Check for any damaged blocks within the specified file system.
- -C<Reverse Narrator> Specify the reverse narrator, fsck.ext2The instruction will entrust the entire execution process to its reverse narrative, facilitating troubleshooting or monitoring the program's execution scenario.
- -Detailedly displays the execution process of the instruction, facilitating troubleshooting or analysis of the program's execution scenario.
- -f Force a complete check of the file system, even if the file system has no problems in the preliminary check.
- -F Clean the data in the storage device block area before checking the file system.
- -I<inode buffer block count> Set the number of block numbers in the inode buffer area of the file system to be checked.
- -l<damaged block file> Treat the blocks listed in the file as damaged blocks and mark them to avoid the application from using the block.
- -L<damaged block file> The effect of this parameter is similar to specifying"-l"parameters are similar, but before referring to the damaged block file to mark damaged blocks, all those previously marked as damaged blocks will be cleared, i.e., reset all, not just add new damaged block marks.
- -n Set the file system to be read-only and close interactive mode, reject all questions asked.
- -p The effect of this parameter is similar to specifying"-a"parameters are the same.
- -P<inode size to handle> Set the fsck.ext2The size of the inode that the command can handle.
- -r This parameter will ignore and not process it, only responsible for solving compatibility issues.
- -s When checking the file system, swap the content of each pair of bytes.
- -S The effect of this parameter is similar to specifying"-s"parameters are similar, but regardless of whether the file system is already in standard byte order, the content of each pair of bytes is always swapped.
- -t Display fsck.ext2Timing information of commands.
- -v Display detailed execution process of commands.
- -V Display version information.
- -y Close interactive mode and agree to all questions asked.
Linux Command大全