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

NAME
     fsck_msdos - DOS/Windows (FAT) filesystem consistency checker

SYNOPSIS
      -q filesystem ...
      -p [-f] filesystem ...
      [-fny] filesystem ...

DESCRIPTION
     The fsck_msdos utility verifies and repairs FAT filesystems (more com-
     monly known as DOS filesystems).

     The first form of fsck_msdos quickly checks the specified filesystems to
     determine whether they were cleanly unmounted.  This option is used by
     autodiskmount(8) to determine whether to perform a full check before
     mounting a volume.

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

     The third form of fsck_msdos checks the specified file systems and tries
     to repair all detected inconsistencies, requesting confirmation before
     making any changes.  The default behavior is to always ask for confirma-
     tion 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 volume 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 sys-
                   tem types for consistency, such as fsck_ffs(8).

           -n      Causes fsck_msdos to assume no as the answer to all opera-
                   tor questions, except ``CONTINUE?''.

           -p      Preen the specified filesystems.

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

SEE ALSO
     fsck(8), fsck_ffs(8), mount_msdos(8)

BUGS
     fsck_msdos is still under construction.

NetBSD                          August 13, 1995                         NetBSD