OS Manuals

/usr/bin/dosfsck

DOS filesystem utilities

From dosfstools 4.2-r46 (os), captured 2026-11-05 by running dosfsck --help (exit 0). permalink

Usage: /usr/bin/dosfsck [OPTIONS] DEVICE
Check FAT filesystem on DEVICE for errors.

Options:
  -a              automatically repair the filesystem
  -A              toggle Atari variant of the FAT filesystem
  -b              make read-only boot sector check
  -c N            use DOS codepage N to decode short file names (default: 850)
  -d PATH         drop file with name PATH (can be given multiple times)
  -f              salvage unused chains to files
  -F NUM          specify FAT table NUM used for filesystem access
  -l              list path names
  -n              no-op, check non-interactively without changing
  -p              same as -a, for compat with other *fsck
  -r              interactively repair the filesystem (default)
  -S              disallow spaces in the middle of short file names
  -t              test for bad clusters
  -u PATH         try to undelete (non-directory) file that was named PATH (can be
                    given multiple times)
  -U              allow only uppercase characters in volume and boot label
  -v              verbose mode
  -V              perform a verification pass
  --variant=TYPE  handle variant TYPE of the filesystem
  -w              write changes to disk immediately
  -y              same as -a, for compat with other *fsck
  --help          print this message
Options (21)
OptionDescriptionSource
-aAutomatically repair the filesystem.help + man
-ASelect using the Atari variation of the FAT filesystem if that isn't active already, otherwise select standard FAT filesystem.help + man
-bMake read-only boot sector check.help + man
-c Nuse DOS codepage N to decode short file names (default: 850)help + man
-d PATHdrop file with name PATH (can be given multiple times)help + man
-fSalvage unused cluster chains to files.help + man
-F NUMspecify FAT table NUM used for filesystem accesshelp + man
-lList path names of files being processed.help + man
-nNo-operation mode: non-interactively check for errors, but don't write anything to the filesystem.help + man
-pSame as -a, for compatibility with other fsck.help + man
-rinteractively repair the filesystem (default)help + man
-SConsider short (8.3) file names with spaces in the middle to be invalid, like previous versions of this program did.help + man
-tMark unreadable clusters as bad.help + man
-u PATHtry to undelete (non-directory) file that was named PATH (can be given multiple times)help + man
-UConsider lowercase volume and boot label as invalid and allow only uppercase characters.help + man
-vVerbose mode.help + man
-VPerform a verification pass.help + man
--variant TYPEhandle variant TYPE of the filesystemhelp + man
-wWrite changes to disk immediately.help + man
-ySame as -a (automatically repair filesystem) for compatibility with other fsck tools.help + man
--helpDisplay help message describing usage and options then exit.help + man
Exit status (3) from the manual page
0No recoverable errors have been detected.
1Recoverable errors have been detected or fsck.fat has discovered an internal inconsistency.
2Usage error.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.