The exit code returned by fsck is the sum of the following conditions:
0 - errors 1 - File system errors corrected 2 - System should be rebooted 4 - File system errors left uncorrected 8 - Operational error 16 - Usage or syntax error 128 - Shared library errorThe exit code returned when all file systems are checked using the -A option is the bit-wise OR of the exit codes for each file system that is checked.
In actuality, fsck is simply a front-end for the various file system checkers (fsck. fstype) available under Linux. The file system-specific checker is searched for in /sbin first, then in /etc/fs and /etc, and finally in the directories listed in the PATH environment variable. Please see the file system-specific checker manual pages for further details.
Általában a filerendszer típusát az /etc/fstab megfelelô sorának filesys mezôje határozza meg. Ha a típust nem lehet így megállapítani, akkor az fsck a -t kapcsoló által meghatározott típust használja amennyiben csak egy típust adtunk meg. Ha ez sem adott, akkor az alapértelmezett típust használja, ami jelenleg ext2.
Jelenleg a filerendszer-specifikus kapcsolók szabványosítása még folyamatban van. A legtöbb specifikus ellenôrzôprogram támogatja a következô kapcsolókat:
Ez a dokumentáció David Engel és Fred van Kempen általános fsck programjából lett elemelve, akik viszont Remy Card ext2 filerendszerre készült változatából szerezték.