1.\" $NetBSD: fsck_msdos.8,v 1.17 2010/04/11 21:29:37 wiz Exp $ 2.\" 3.\" Copyright (C) 1995 Wolfgang Solfrank 4.\" Copyright (c) 1995 Martin Husemann 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25.\" 26.\" 27.Dd April 11, 2010 28.Dt FSCK_MSDOS 8 29.Os 30.Sh NAME 31.Nm fsck_msdos 32.Nd DOS/Windows (FAT) filesystem consistency checker 33.Sh SYNOPSIS 34.Nm 35.Fl p 36.Op Fl f 37.Ar filesystem ... 38.Nm 39.Op Fl fny 40.Op Fl x Ar snap-backup 41.Ar filesystem ... 42.Sh DESCRIPTION 43The 44.Nm 45utility verifies and repairs 46.Tn FAT 47filesystems (more commonly known 48as 49.Tn DOS 50filesystems). 51.Pp 52The first form of 53.Nm 54preens the specified filesystems. 55It is normally started by 56.Xr fsck 8 57run from 58.Pa /etc/rc 59during automatic reboot, when a FAT filesystem is detected. 60When preening file systems, 61.Nm 62will fix common inconsistencies non-interactively. 63If more serious problems are found, 64.Nm 65does not try to fix them, indicates that it was not 66successful, and exits. 67.Pp 68The second form of 69.Nm 70checks the specified file systems and tries to repair all 71detected inconsistencies, requesting confirmation before 72making any changes. 73.Pp 74The options are as follows: 75.Bl -tag -width XxXsnapXbackupXX 76.It Fl f 77This option is ignored by 78.Nm , 79and is present only for compatibility with programs that 80check other file system types for consistency, such as 81.Xr fsck_ffs 8 . 82.It Fl n 83Causes 84.Nm 85to assume no as the answer to all operator 86questions, except 87.Dq CONTINUE? . 88.It Fl p 89Preen the specified filesystems. 90.It Fl x Ar snap-backup 91Use a snapshot with 92.Ar snap-backup 93as backup to check a read-write mounted filesystem. 94Must be used with 95.Fl n . 96See 97.Xr fss 4 98for more details. 99The point is to check an internally-consistent version of the 100filesystem to find out if it is damaged; on failure one should unmount 101the filesystem and repair it. 102.It Fl y 103Causes 104.Nm 105to assume yes as the answer to all operator questions. 106.El 107.Sh SEE ALSO 108.Xr fss 4 , 109.Xr fsck 8 , 110.Xr fsck_ffs 8 , 111.Xr mount_msdos 8 112.Sh BUGS 113.Nm 114is still under construction. 115