aeaf5f031736a837f0a29e195fcea659603e057f
[dragonfly.git] / sbin / fsck_msdosfs / fsck_msdosfs.8
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
51 The
52 .Nm
53 utility verifies and repairs
54 .Tn FAT
55 filesystems (more commonly known
56 as
57 .Tn DOS
58 filesystems).
59 .Pp
60 The first form of
61 .Nm
62 preens the specified filesystems.
63 It is normally started by
64 .Xr fsck 8
65 run from
66 .Pa /etc/rc
67 during automatic reboot, when a FAT filesystem is detected.
68 When preening file systems,
69 .Nm
70 will fix common inconsistencies non-interactively.
71 If more serious problems are found,
72 .Nm
73 does not try to fix them, indicates that it was not
74 successful, and exits.
75 .Pp
76 The second form of
77 .Nm
78 checks the specified file systems and tries to repair all
79 detected inconsistencies, requesting confirmation before
80 making any changes.
81 .Pp
82 The options are as follows:
83 .Bl -tag -width indent
84 .It Fl F
85 Compatibility with the wrapper
86 .Xr fsck 8
87 which seeks to determine whether the filesystem needs to be cleaned
88 immediately in foreground, or if its cleaning can be deferred to background.
89 FAT (MS-DOS) file systems must always be cleaned in the foreground.
90 A non-zero exit code is always returned for this option.
91 .It Fl f
92 This option is ignored by
93 .Nm ,
94 and is present only for compatibility with programs that
95 check other file system types for consistency, such as
96 .Xr fsck_ffs 8 .
97 .It Fl n
98 Causes
99 .Nm
100 to assume
101 .Dq Li no
102 as the answer to all operator
103 questions, except
104 .Dq Li CONTINUE? .
105 .It Fl p
106 Preen the specified filesystems.
107 .It Fl y
108 Causes
109 .Nm
110 to assume
111 .Dq Li yes
112 as 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
119 The
120 .Nm
121 utility first appeared in
122 .Fx 4.4 .
123 .Sh BUGS
124 The
125 .Nm
126 utility is
127 .Ud .