Linux "fsck.minix" Command Line Options and Examples
check consistency of Minix filesystem

fsck.minix performs a consistency check for the Linux MINIX filesystem. The program assumes the filesystem is quiescent.


Usage:

fsck.minix [options] device






Command Line Options:

-l
List all filenames.
fsck.minix -l ...
-r
Perform interactive repairs.
fsck.minix -r ...
-a
Perform automatic repairs. This option implies --repair and serves to answer all of the questions asked with the default.Note that this can be extremely dangerous in the case of extensive filesystem damage.
fsck.minix -a ...
-s
Output super-block information.
fsck.minix -s ...
-m
Activate MINIX-like "mode not cleared" warnings.
fsck.minix -m ...
-f
Force a filesystem check even if the filesystem was marked as valid. Marking is done by the kernel when the filesystem isunmounted.
fsck.minix -f ...
-V
Display version information and exit.
fsck.minix -V ...
-h
Display help text and exit.DIAGNOSTICSThere are numerous diagnostic messages. The ones mentioned here are the most commonly seen in normal usage.If the device does not exist, fsck.minix will print "unable to read super block". If the device exists, but is not a MINIX filesys‐tem, fsck.minix will print "bad magic number in super-block".EXIT CODESThe exit code returned by fsck.minix is the sum of the following:0 No errors3 Filesystem errors corrected, system should be rebooted if filesystem was mounted4 Filesystem errors left uncorrected7 Combination of exit codes 3 and 48 Operational error16 Usage or syntax errorAUTHORSLinus Torvalds ⟨torvalds@cs.helsinki.fi⟩Error code values by Rik Faith ⟨faith@cs.unc.edu⟩Added support for filesystem valid flag: Dr. Wettstein ⟨greg%wind.uucp@plains.nodak.edu⟩.Check to prevent fsck of mounted filesystem added by Daniel Quinlan ⟨quinlan@yggdrasil.com⟩.Minix v2 fs support by Andreas Schwab ⟨schwab@issan.informatik.uni-dortmund.de⟩, updated by Nicolai Langfeldt ⟨janl@math.uio.no⟩.Portability patch by Russell King ⟨rmk@ecs.soton.ac.uk⟩.
fsck.minix -h ...