1.\" $NetBSD: fsck_msdos.8,v 1.13 2002/10/01 13:40:32 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.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Martin Husemann 17.\" and Wolfgang Solfrank. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 23.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 27.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32.\" 33.\" 34.Dd August 13, 1995 35.Dt FSCK_MSDOS 8 36.Os 37.Sh NAME 38.Nm fsck_msdos 39.Nd DOS/Windows (FAT) filesystem consistency checker 40.Sh SYNOPSIS 41.Nm "" 42.Fl p 43.Op Fl f 44.Ar filesystem ... 45.Nm "" 46.Op Fl fny 47.Ar filesystem ... 48.Sh DESCRIPTION 49The 50.Nm 51utility verifies and repairs 52.Tn FAT 53filesystems (more commonly known 54as 55.Tn DOS 56filesystems). 57.Pp 58The first form of 59.Nm 60preens the specified filesystems. 61It is normally started by 62.Xr fsck 8 63run from 64.Pa /etc/rc 65during automatic reboot, when a FAT filesystem is detected. 66When preening file systems, 67.Nm 68will fix common inconsistencies non-interactively. 69If more serious problems are found, 70.Nm 71does not try to fix them, indicates that it was not 72successful, and exits. 73.Pp 74The second form of 75.Nm 76checks the specified file systems and tries to repair all 77detected inconsistencies, requesting confirmation before 78making any changes. 79.Pp 80The options are as follows: 81.Bl -hang -offset indent 82.It Fl f 83This option is ignored by 84.Nm "" , 85and is present only for compatibility with programs that 86check other file system types for consistency, such as 87.Xr fsck_ffs 8 . 88.It Fl n 89Causes 90.Nm 91to assume no as the answer to all operator 92questions, except 93.Dq CONTINUE? . 94.It Fl p 95Preen the specified filesystems. 96.It Fl y 97Causes 98.Nm 99to assume yes as the answer to all operator questions. 100.El 101.Sh SEE ALSO 102.Xr fsck 8 , 103.Xr fsck_ffs 8 , 104.Xr mount_msdos 8 105.Sh BUGS 106.Nm 107is still under construction. 108