xref: /freebsd/sbin/fsck_msdosfs/fsck_msdosfs.8 (revision 40a8ac8f62b535d30349faf28cf47106b7041b83)
1.\"	$NetBSD: fsck_msdos.8,v 1.9 1997/10/17 11:19:58 ws 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.\" $FreeBSD$
27.\"
28.Dd June 4, 2009
29.Dt FSCK_MSDOSFS 8
30.Os
31.Sh NAME
32.Nm fsck_msdosfs
33.Nd DOS/Windows (FAT) file system consistency checker
34.Sh SYNOPSIS
35.Nm
36.Fl p
37.Op Fl Cf
38.Ar filesystem ...
39.Nm
40.Op Fl Cny
41.Ar filesystem ...
42.Sh DESCRIPTION
43The
44.Nm
45utility verifies and repairs
46.Tn FAT
47file systems (more commonly known
48as
49.Tn DOS
50file systems).
51.Pp
52The first form of
53.Nm
54preens the specified file systems.
55It is normally started by
56.Xr fsck 8
57run from
58.Pa /etc/rc
59during automatic reboot, when a FAT file system 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 indent
76.It Fl C
77Compatibility with the corresponding
78.Xr fsck 8
79option (skip check if clean), defined to no-op.
80.It Fl F
81Compatibility with the wrapper
82.Xr fsck 8
83which seeks to determine whether the file system needs to be cleaned
84immediately in foreground, or if its cleaning can be deferred to background.
85FAT (MS-DOS) file systems must always be cleaned in the foreground.
86A non-zero exit code is always returned for this option.
87.It Fl f
88Force
89.Nm
90to check
91.Dq clean
92file systems when preening.
93.It Fl n
94Causes
95.Nm
96to assume
97.Dq Li no
98as the answer to all operator
99questions, except
100.Dq Li CONTINUE? .
101.It Fl p
102Preen the specified file systems.
103.It Fl y
104Causes
105.Nm
106to assume
107.Dq Li yes
108as the answer to all operator questions.
109.El
110.Sh SEE ALSO
111.Xr fsck 8 ,
112.Xr fsck_ffs 8 ,
113.Xr mount_msdosfs 8
114.Sh HISTORY
115The
116.Nm
117utility first appeared in
118.Fx 4.4 .
119.Sh BUGS
120The
121.Nm
122utility is
123.Ud
124