Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

FSCK_MSDOS(8)             BSD System Manager's Manual            FSCK_MSDOS(8)

     fsck_msdos -- DOS/Windows (FAT) file system consistency check

     fsck_msdos -q special ...
     fsck_msdos -p [-f] special ...
     fsck_msdos [-fny] special ...

     The fsck_msdos utility verifies and repairs FAT file systems (more commonly known as DOS file systems).

     The first form of fsck_msdos quickly checks the specified file systems to determine whether they were
     cleanly unmounted.

     The second form of fsck_msdos preens the specified file systems.  It is normally started by fsck(8) run
     from /etc/rc.boot during automatic reboot, when a FAT file system is detected.  When preening file sys-tems, systems,
     tems, fsck_msdos will fix common inconsistencies non-interactively.  If more serious problems are
     found, fsck_msdos does not try to fix them, indicates that it was not successful, and exits.

     The third form of fsck_msdos checks the specified file systems and tries to repair all detected incon-sistencies, inconsistencies,
     sistencies, requesting confirmation before making any changes.  The default behavior is to always ask
     for confirmation of each change.  Use the -n or -y options to override this default behavior.

     The options are as follows:

           -q      Causes fsck_msdos to quickly check whether the volume was unmounted cleanly.  If the vol-ume volume
                   ume was unmounted cleanly, then the exit status is 0.  If the volume was not unmounted
                   cleanly, then the exit status will be non-zero.  In either case, a message is printed to
                   standard output describing whether the volume was clean or dirty.

           -f      This option is ignored by fsck_msdos and is present only for compatibility with programs
                   that check other file system types for consistency.

           -n      Causes fsck_msdos to assume no as the answer to all operator questions, except

           -p      Preen the specified file systems.

           -y      Causes fsck_msdos to assume yes as the answer to all operator questions.


     fsck_msdos is still under construction.

NetBSD 1.1                      August 13, 1995                     NetBSD 1.1

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.