xref: /netbsd-src/sbin/fsck_msdos/fsck_msdos.8 (revision 274254cdae52594c1aa480a736aef78313d15c9c)
1.\"	$NetBSD: fsck_msdos.8,v 1.15 2008/06/13 20:46:09 martin 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 August 13, 1995
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.Ar filesystem ...
41.Sh DESCRIPTION
42The
43.Nm
44utility verifies and repairs
45.Tn FAT
46filesystems (more commonly known
47as
48.Tn DOS
49filesystems).
50.Pp
51The first form of
52.Nm
53preens the specified filesystems.
54It is normally started by
55.Xr fsck 8
56run from
57.Pa /etc/rc
58during automatic reboot, when a FAT filesystem is detected.
59When preening file systems,
60.Nm
61will fix common inconsistencies non-interactively.
62If more serious problems are found,
63.Nm
64does not try to fix them, indicates that it was not
65successful, and exits.
66.Pp
67The second form of
68.Nm
69checks the specified file systems and tries to repair all
70detected inconsistencies, requesting confirmation before
71making any changes.
72.Pp
73The options are as follows:
74.Bl -hang -offset indent
75.It Fl f
76This option is ignored by
77.Nm ,
78and is present only for compatibility with programs that
79check other file system types for consistency, such as
80.Xr fsck_ffs 8 .
81.It Fl n
82Causes
83.Nm
84to assume no as the answer to all operator
85questions, except
86.Dq CONTINUE? .
87.It Fl p
88Preen the specified filesystems.
89.It Fl y
90Causes
91.Nm
92to assume yes as the answer to all operator questions.
93.El
94.Sh SEE ALSO
95.Xr fsck 8 ,
96.Xr fsck_ffs 8 ,
97.Xr mount_msdos 8
98.Sh BUGS
99.Nm
100is still under construction.
101