1.\"	$NetBSD: fsck_msdos.8,v 1.9 1997/10/17 11:19:58 ws Exp $
2.\" $FreeBSD: src/sbin/fsck_msdosfs/fsck_msdosfs.8,v 1.3.2.2 2003/01/26 03:19:48 keramida Exp $
3.\" $DragonFly: src/sbin/fsck_msdosfs/fsck_msdosfs.8,v 1.3 2006/02/17 19:33:32 swildner Exp $
4.\"
5.\" Copyright (C) 1995 Wolfgang Solfrank
6.\" Copyright (c) 1995 Martin Husemann
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright
12.\"    notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\"    notice, this list of conditions and the following disclaimer in the
15.\"    documentation and/or other materials provided with the distribution.
16.\" 3. All advertising materials mentioning features or use of this software
17.\"    must display the following acknowledgement:
18.\"	This product includes software developed by Martin Husemann
19.\"	and Wolfgang Solfrank.
20.\" 4. Neither the name of the University nor the names of its contributors
21.\"    may be used to endorse or promote products derived from this software
22.\"    without specific prior written permission.
23.\"
24.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
25.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34.\"
35.\"
36.Dd August 13, 1995
37.Dt FSCK_MSDOSFS 8
38.Os
39.Sh NAME
40.Nm fsck_msdosfs
41.Nd DOS/Windows (FAT) filesystem consistency checker
42.Sh SYNOPSIS
43.Nm
44.Fl p
45.Op Fl f
46.Ar filesystem ...
47.Nm
48.Op Fl fny
49.Ar filesystem ...
50.Sh DESCRIPTION
51The
52.Nm
53utility verifies and repairs
54.Tn FAT
55filesystems (more commonly known
56as
57.Tn DOS
58filesystems).
59.Pp
60The first form of
61.Nm
62preens the specified filesystems.
63It is normally started by
64.Xr fsck 8
65run from
66.Pa /etc/rc
67during automatic reboot, when a FAT filesystem is detected.
68When preening file systems,
69.Nm
70will fix common inconsistencies non-interactively.
71If more serious problems are found,
72.Nm
73does not try to fix them, indicates that it was not
74successful, and exits.
75.Pp
76The second form of
77.Nm
78checks the specified file systems and tries to repair all
79detected inconsistencies, requesting confirmation before
80making any changes.
81.Pp
82The options are as follows:
83.Bl -tag -width indent
84.It Fl F
85Compatibility with the wrapper
86.Xr fsck 8
87which seeks to determine whether the filesystem needs to be cleaned
88immediately in foreground, or if its cleaning can be deferred to background.
89FAT (MS-DOS) file systems must always be cleaned in the foreground.
90A non-zero exit code is always returned for this option.
91.It Fl f
92This option is ignored by
93.Nm ,
94and is present only for compatibility with programs that
95check other file system types for consistency, such as
96.Xr fsck_ffs 8 .
97.It Fl n
98Causes
99.Nm
100to assume
101.Dq Li no
102as the answer to all operator
103questions, except
104.Dq Li CONTINUE? .
105.It Fl p
106Preen the specified filesystems.
107.It Fl y
108Causes
109.Nm
110to assume
111.Dq Li yes
112as the answer to all operator questions.
113.El
114.Sh SEE ALSO
115.Xr fsck 8 ,
116.Xr fsck_ffs 8 ,
117.Xr mount_msdos 8
118.Sh HISTORY
119The
120.Nm
121utility first appeared in
122.Fx 4.4 .
123.Sh BUGS
124The
125.Nm
126utility is
127.Ud
128