FSCK.EXT2 (File system Check-second filesystem)
Feature Description: Check the file system and try to fix the error.
Syntax:fsck.ext2 [-acdffnprsstvvy][-b < partition First magnetic region
Address >][-b < chunk size >][-c < >][-i <inode buffer block number >][-l/l < Corrupted chunk file >][-p < processing inode size >][ Peripheral code ]
Additional Note: When an error occurs with the ext2 file system, the fsck.ext2 instruction can be used to try to fix it.
Parameters:
-A automatically repairs the file system without asking any questions.
-b< Partition the first magnetic region address > The start address of the first magnetic region of the specified partition, which is Super Block.
-b< chunk size > Set the size of each chunk of the partition.
- C checks the specified file system for the presence of a damaged chunk.
-c< anti-narrator > Specify the Counter-narrator, thefsck.ext2 instruction will all the execution process, all of them to the reverse narrative, easy to debug or monitor the implementation of the situation.
- D Displays the instruction execution process in detail to facilitate troubleshooting or analyzing the execution of the program.
- F forces a full check of the file system, even though the file system does not have a problem with a slight check.
- F before checking the file system, clean the data in the Save Device block area first.
-i<inode buffer block number > set the number of chunks of the file system whose inode buffer to check.
-l< corrupt block file > take the block listed in the file as a damaged chunk and mark it out to prevent the application from using the block.
-l< corrupt chunk file > This parameter has the same effect as specifying the "-L" parameter, but before referencing the damaged block file to indicate the damaged block, it is clear that the original marked as a damaged block, that is, all reset, Instead of just adding new damaged block markers.
- n sets the file system to be checked to read-only, closes the interactive mode, and rejects all questions asked.
- P This parameter has the same effect as specifying the " -a" parameter.
-p< handles inode size > Sets the number of Inode sizes that the fsck.ext2 directive can handle.
- R This parameter ignores non-processing and is only responsible for resolving compatibility issues.
- s swaps the contents of each pair of bytes when checking the file system.
- s the effect of this parameter is similar to specifying the "-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 shows the instruction execution process in detail.
- v displays version information.
- y closes the interactive mode and agrees to all questions asked.
Fsck (file system check)
Feature Description: Check the file system and try to fix the error.
Syntax:fsck [-aanprrstv][-t < file system type >][ file system ... ]
Additional note: When the file system error four Modernizations, the fsck command can be used to try to repair.
Parameters:
-A automatically repairs the file system without asking any questions.
-A According to the contents of the /etc/fstab configuration file, check all file systems listed in the file.
- n does not execute instructions, only the actions performed by the actual execution are listed.
- p when used with the "-A" parameter, all file systems are checked at the same time.
- R uses interactive mode to ask questions when performing a fix, allowing the user to confirm and decide how to handle it.
- R when used with the "-A" parameter, the file system that is skipped / directory is not checked.
- s executes the check job sequentially instead of concurrently.
-t< File system type > Specifies the type of file system to check.
- T displays header information when the fsck instruction is executed.
- v Displays the instruction execution process.
Fsck.minix (File system Check-minix filesystem)
Feature Description: Check the file system and try to fix the error.
Syntax:Fsck.minix [-aflmrsv][ Peripheral Device Code ]
Additional Note: When an error occurs with the minix file system, Fsck.minix is used to refer to
Try to make reference.
Parameters:
-A automatically repairs the file system without asking any questions.
- F forces a full check of the file system, even though the file system does not have a problem with a slight check.
- L lists all file names.
- M uses a warning message similar to the MINIX operating system.
- R uses interactive mode to ask questions when performing a fix, allowing the user to confirm and decide how to handle it.
- s displays information about the first magnetic region of the partition.
-V Displays the instruction execution process.
Linux Repair system commands