There are two variants of FSCK command that are out there. Firstly there is a FSCK command and then there are sister commands like FSCK.EXT4, FSCK.FAT, etc.
There are options that are available in FSCK that are not available in FSCK.EXT4/FSCK.FAT/etc. For example the following are some of the commands that are present in FSCK but not in its sister commands. This is not an exhaustive list but just an indicative
1) -l = Create an exclusive flock(2) lock file (/run/fsck/<diskname>.lock) for whole-disk device
2) -r [fd] = Report certain statistics for each fsck when it completes.
3) -N = Don’t execute, just show what would be done.
While the following is the list of options, not exhaustive but only indicative, which are present in FSCK.EXT4 but not in FSCK command
1) -c = This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks
2) -f = Force checking even if filesystem is marked clean
What are the differences between these two sets of command? When should one use the FSCK command and when should use FSCK.EXT4, FSCK.FAT, etc? Are there any advantages in using FSCK over FSCK.EXT4/FSCK.FAT/etc? What is the purpose of having these two different sets of commands.
There are options that are available in FSCK that are not available in FSCK.EXT4/FSCK.FAT/etc. For example the following are some of the commands that are present in FSCK but not in its sister commands. This is not an exhaustive list but just an indicative
1) -l = Create an exclusive flock(2) lock file (/run/fsck/<diskname>.lock) for whole-disk device
2) -r [fd] = Report certain statistics for each fsck when it completes.
3) -N = Don’t execute, just show what would be done.
While the following is the list of options, not exhaustive but only indicative, which are present in FSCK.EXT4 but not in FSCK command
1) -c = This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find any bad blocks
2) -f = Force checking even if filesystem is marked clean
What are the differences between these two sets of command? When should one use the FSCK command and when should use FSCK.EXT4, FSCK.FAT, etc? Are there any advantages in using FSCK over FSCK.EXT4/FSCK.FAT/etc? What is the purpose of having these two different sets of commands.
Statistics: Posted by DebianFox — 2024-08-08 08:06 — Replies 1 — Views 44