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