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