]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/fsck.minix.8
col: use size_t when dealing with numbers that buffer sizes
[thirdparty/util-linux.git] / disk-utils / fsck.minix.8
CommitLineData
6dbe3af9
KZ
1.\" Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu)
2.\" May be freely distributed.
158b8d69 3.TH FSCK.MINIX 8 "June 2015" "util-linux" "System Administration"
6dbe3af9 4.SH NAME
232dc924 5fsck.minix \- check consistency of Minix filesystem
6dbe3af9 6.SH SYNOPSIS
a37daa52 7.B fsck.minix
158b8d69 8[options]
a37daa52 9.I device
6dbe3af9
KZ
10.SH DESCRIPTION
11.B fsck.minix
158b8d69 12performs a consistency check for the Linux MINIX filesystem.
e87a6ee0
SK
13.PP
14The program assumes the filesystem is quiescent.
6dbe3af9
KZ
15.B fsck.minix
16should not be used on a mounted device unless you can be sure nobody is
e87a6ee0
SK
17writing to it. Remember that the kernel can write to device when it
18searches for files.
19.PP
449a215f 20The \fIdevice\fR name will usually have the following form:
6dbe3af9 21.RS
e87a6ee0
SK
22.TS
23tab(:);
934a6fa8 24l l.
e87a6ee0
SK
25/dev/hda[1\(en63]:IDE disk 1
26/dev/hdb[1\(en63]:IDE disk 2
27/dev/sda[1\(en15]:SCSI disk 1
28/dev/sdb[1\(en15]:SCSI disk 2
29.TE
6dbe3af9 30.RE
e87a6ee0
SK
31.PP
32If the filesystem was changed, i.e., repaired, then
6dbe3af9
KZ
33.B fsck.minix
34will print "FILE SYSTEM HAS CHANGED" and will
35.BR sync (2)
e87a6ee0 36three times before exiting. There is
6dbe3af9 37.I no
e87a6ee0 38need to reboot after check.
6dbe3af9
KZ
39.SH WARNING
40.B fsck.minix
41should
42.B not
43be used on a mounted filesystem. Using
44.B fsck.minix
45on a mounted filesystem is very dangerous, due to the possibility that
46deleted files are still in use, and can seriously damage a perfectly good
47filesystem! If you absolutely have to run
48.B fsck.minix
e87a6ee0
SK
49on a mounted filesystem, such as the root filesystem, make sure nothing
50is writing to the disk, and that no files are "zombies" waiting for
51deletion.
6dbe3af9
KZ
52.SH OPTIONS
53.TP
158b8d69 54\fB\-l\fR, \fB\-\-list\fR
449a215f 55List all filenames.
6dbe3af9 56.TP
158b8d69 57\fB\-r\fR, \fB\-\-repair\fR
449a215f 58Perform interactive repairs.
6dbe3af9 59.TP
158b8d69 60\fB\-a\fR, \fB\-\-auto\fR
e87a6ee0 61Perform automatic repairs. This option implies
158b8d69 62.B \-\-repair
e87a6ee0 63and serves to answer all of the questions asked with the default. Note
449a215f 64that this can be extremely dangerous in the case of extensive filesystem
6dbe3af9
KZ
65damage.
66.TP
158b8d69 67\fB\-v\fR, \fB\-\-verbose\fR
449a215f 68Be verbose.
6dbe3af9 69.TP
158b8d69 70\fB\-s\fR, \fB\-\-super\fR
449a215f 71Output super-block information.
6dbe3af9 72.TP
158b8d69 73\fB\-m\fR, \fB\-\-uncleared\fR
449a215f 74Activate MINIX-like "mode not cleared" warnings.
6dbe3af9 75.TP
158b8d69 76\fB\-f\fR, \fB\-\-force\fR
e87a6ee0
SK
77Force a filesystem check even if the filesystem was marked as valid.
78Marking is done by the kernel when the filesystem is unmounted.
158b8d69
SK
79.TP
80\fB\-V\fR, \fB\-\-version\fR
81Display version information and exit.
82.TP
83\fB\-h\fR, \fB\-\-help\fR
84Display help text and exit.
6dbe3af9
KZ
85.SH DIAGNOSTICS
86There are numerous diagnostic messages. The ones mentioned here are the
87most commonly seen in normal usage.
e87a6ee0 88.PP
6dbe3af9
KZ
89If the device does not exist,
90.B fsck.minix
91will print "unable to read super block". If the device exists, but is not
449a215f 92a MINIX filesystem,
6dbe3af9
KZ
93.B fsck.minix
94will print "bad magic number in super-block".
7e765c93 95.SH EXIT STATUS
a87f49f6 96The exit status returned by
6dbe3af9
KZ
97.B fsck.minix
98is the sum of the following:
e87a6ee0
SK
99.PP
100.RS
101.PD 0
102.TP
103.B 0
6dbe3af9 104No errors
e87a6ee0
SK
105.TP
106.B 3
449a215f 107Filesystem errors corrected, system should be rebooted if filesystem was
6dbe3af9 108mounted
e87a6ee0
SK
109.TP
110.B 4
449a215f 111Filesystem errors left uncorrected
e87a6ee0
SK
112.TP
113.B 7
a87f49f6 114Combination of exit statuses 3 and 4
e87a6ee0
SK
115.TP
116.B 8
6dbe3af9 117Operational error
e87a6ee0
SK
118.TP
119.B 16
6dbe3af9 120Usage or syntax error
e87a6ee0
SK
121.PD
122.RE
e87a6ee0
SK
123.SH AUTHORS
124.MT torvalds@\:cs.\:helsinki.\:fi
125Linus Torvalds
126.ME
6dbe3af9 127.br
a87f49f6 128Exit status values by
e87a6ee0
SK
129.MT faith@\:cs.\:unc.\:edu
130Rik Faith
131.ME
6dbe3af9 132.br
e87a6ee0
SK
133Added support for filesystem valid flag:
134.MT greg%\:wind.\:uucp@\:plains.\:nodak.\:edu
135Dr.\& Wettstein
136.ME .
726f69e2 137.br
e87a6ee0
SK
138Check to prevent fsck of mounted filesystem added by
139.MT quinlan@\:yggdrasil.\:com
140Daniel Quinlan
141.ME .
fd6b7a7f 142.br
e87a6ee0
SK
143Minix v2 fs support by
144.MT schwab@\:issan.\:informatik.\:uni-dortmund.\:de
145Andreas Schwab
146.ME ,
147updated by
148.MT janl@\:math.\:uio.\:no
149Nicolai Langfeldt
150.ME .
fd6b7a7f 151.br
e87a6ee0
SK
152Portability patch by
153.MT rmk@\:ecs.\:soton.\:ac.\:uk
154Russell King
155.ME .
5a829806 156.SH SEE ALSO
e87a6ee0
SK
157.BR fsck (8),
158.BR fsck.ext2 (8),
159.BR mkfs (8),
e87a6ee0 160.BR mkfs.ext2 (8),
f053ff1e 161.BR mkfs.minix (8),
e87a6ee0 162.BR reboot (8)
86d62711 163.SH AVAILABILITY
601d12fb 164The fsck.minix command is part of the util-linux package and is available from
d673b74e 165.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
e87a6ee0
SK
166Linux Kernel Archive
167.UE .