]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/fsck.minix.8
wipefs: add --lock and LOCK_BLOCK_DEVICE
[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
6dbe3af9 123.PP
e87a6ee0
SK
124.SH AUTHORS
125.MT torvalds@\:cs.\:helsinki.\:fi
126Linus Torvalds
127.ME
6dbe3af9 128.br
a87f49f6 129Exit status values by
e87a6ee0
SK
130.MT faith@\:cs.\:unc.\:edu
131Rik Faith
132.ME
6dbe3af9 133.br
e87a6ee0
SK
134Added support for filesystem valid flag:
135.MT greg%\:wind.\:uucp@\:plains.\:nodak.\:edu
136Dr.\& Wettstein
137.ME .
726f69e2 138.br
e87a6ee0
SK
139Check to prevent fsck of mounted filesystem added by
140.MT quinlan@\:yggdrasil.\:com
141Daniel Quinlan
142.ME .
fd6b7a7f 143.br
e87a6ee0
SK
144Minix v2 fs support by
145.MT schwab@\:issan.\:informatik.\:uni-dortmund.\:de
146Andreas Schwab
147.ME ,
148updated by
149.MT janl@\:math.\:uio.\:no
150Nicolai Langfeldt
151.ME .
fd6b7a7f 152.br
e87a6ee0
SK
153Portability patch by
154.MT rmk@\:ecs.\:soton.\:ac.\:uk
155Russell King
156.ME .
5a829806 157.SH SEE ALSO
e87a6ee0
SK
158.BR fsck (8),
159.BR fsck.ext2 (8),
160.BR mkfs (8),
e87a6ee0 161.BR mkfs.ext2 (8),
f053ff1e 162.BR mkfs.minix (8),
e87a6ee0 163.BR reboot (8)
86d62711 164.SH AVAILABILITY
601d12fb 165The fsck.minix command is part of the util-linux package and is available from
d673b74e 166.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
e87a6ee0
SK
167Linux Kernel Archive
168.UE .