]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/fsck.minix.8.adoc
Asciidoc: Import disk-utils man pages
[thirdparty/util-linux.git] / disk-utils / fsck.minix.8.adoc
1 ////
2 Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu)
3 May be freely distributed.
4 ////
5 = fsck.minix(8)
6 :doctype: manpage
7 :man manual: System Administration
8 :man source: util-linux {release-version}
9 :page-layout: base
10 :command: fsck.minix
11
12 == NAME
13
14 fsck.minix - check consistency of Minix filesystem
15
16 == SYNOPSIS
17
18 *fsck.minix* [_options_] _device_
19
20 == DESCRIPTION
21
22 *fsck.minix* performs a consistency check for the Linux MINIX filesystem.
23
24 The program assumes the filesystem is quiescent. *fsck.minix* should not be used on a mounted device unless you can be sure nobody is writing to it. Remember that the kernel can write to device when it searches for files.
25
26 The _device_ name will usually have the following form:
27
28 ____
29 [cols=",",]
30 |===
31 |/dev/hda[1-63] |IDE disk 1
32 |/dev/hdb[1-63] |IDE disk 2
33 |/dev/sda[1-15] |SCSI disk 1
34 |/dev/sdb[1-15] |SCSI disk 2
35 |===
36 ____
37
38 If the filesystem was changed, i.e., repaired, then *fsck.minix* will print "FILE SYSTEM HAS CHANGED" and will *sync*(2) three times before exiting. There is _no_ need to reboot after check.
39
40 == WARNING
41
42 *fsck.minix* should *not* be used on a mounted filesystem. Using *fsck.minix* on a mounted filesystem is very dangerous, due to the possibility that deleted files are still in use, and can seriously damage a perfectly good filesystem! If you absolutely have to run *fsck.minix* on a mounted filesystem, such as the root filesystem, make sure nothing is writing to the disk, and that no files are "zombies" waiting for deletion.
43
44 == OPTIONS
45
46 *-l*, *--list*::
47 List all filenames.
48
49 *-r*, *--repair*::
50 Perform interactive repairs.
51
52 *-a*, *--auto*::
53 Perform automatic repairs. This option implies *--repair* and serves to answer all of the questions asked with the default. Note that this can be extremely dangerous in the case of extensive filesystem damage.
54
55 *-v*, *--verbose*::
56 Be verbose.
57
58 *-s*, *--super*::
59 Output super-block information.
60
61 *-m*, *--uncleared*::
62 Activate MINIX-like "mode not cleared" warnings.
63
64 *-f*, *--force*::
65 Force a filesystem check even if the filesystem was marked as valid. Marking is done by the kernel when the filesystem is unmounted.
66
67 *-V*, *--version*::
68 Display version information and exit.
69
70 *-h*, *--help*::
71 Display help text and exit.
72
73 == DIAGNOSTICS
74
75 There are numerous diagnostic messages. The ones mentioned here are the most commonly seen in normal usage.
76
77 If the device does not exist, *fsck.minix* will print "unable to read super block". If the device exists, but is not a MINIX filesystem, *fsck.minix* will print "bad magic number in super-block".
78
79 == EXIT STATUS
80
81 The exit status returned by *fsck.minix* is the sum of the following:
82
83 ____
84 *0*::
85 No errors
86 *3*::
87 Filesystem errors corrected, system should be rebooted if filesystem was mounted
88 *4*::
89 Filesystem errors left uncorrected
90 *7*::
91 Combination of exit statuses 3 and 4
92 *8*::
93 Operational error
94 *16*::
95 Usage or syntax error
96 ____
97
98 == AUTHORS
99
100 mailto:torvalds@cs.helsinki.fi[Linus Torvalds]. Exit status values by mailto:faith@cs.unc.edu[Rik Faith] Added support for filesystem valid flag: mailto:greg%wind.uucp@plains.nodak.edu[Dr. Wettstein]. Check to prevent fsck of mounted filesystem added by mailto:quinlan@yggdrasil.com[Daniel Quinlan]. Minix v2 fs support by mailto:schwab@issan.informatik.uni-dortmund.de[Andreas Schwab], updated by mailto:janl@math.uio.no[Nicolai Langfeldt]. Portability patch by mailto:rmk@ecs.soton.ac.uk[Russell King].
101
102 == SEE ALSO
103
104 *fsck*(8),
105 *fsck.ext2*(8),
106 *mkfs*(8),
107 *mkfs.ext2*(8),
108 *mkfs.minix*(8),
109 *reboot*(8)
110
111 include::../man-common/bugreports.adoc[]
112
113 include::../man-common/footer.adoc[]
114
115 ifdef::translation[]
116 include::../man-common/translation.adoc[]
117 endif::[]