2006-12-06 17:25:32 -06:00
|
|
|
.\" Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu)
|
|
|
|
.\" May be freely distributed.
|
2015-06-24 03:15:18 -05:00
|
|
|
.TH FSCK.MINIX 8 "June 2015" "util-linux" "System Administration"
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH NAME
|
2011-08-18 15:18:34 -05:00
|
|
|
fsck.minix \- check consistency of Minix filesystem
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH SYNOPSIS
|
2009-07-22 04:29:04 -05:00
|
|
|
.B fsck.minix
|
2015-06-24 03:15:18 -05:00
|
|
|
[options]
|
2009-07-22 04:29:04 -05:00
|
|
|
.I device
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B fsck.minix
|
2015-06-24 03:15:18 -05:00
|
|
|
performs a consistency check for the Linux MINIX filesystem.
|
2015-06-24 03:15:19 -05:00
|
|
|
.PP
|
|
|
|
The program assumes the filesystem is quiescent.
|
2006-12-06 17:25:32 -06:00
|
|
|
.B fsck.minix
|
|
|
|
should not be used on a mounted device unless you can be sure nobody is
|
2015-06-24 03:15:19 -05:00
|
|
|
writing to it. Remember that the kernel can write to device when it
|
|
|
|
searches for files.
|
|
|
|
.PP
|
2011-08-28 04:14:42 -05:00
|
|
|
The \fIdevice\fR name will usually have the following form:
|
2006-12-06 17:25:32 -06:00
|
|
|
.RS
|
2015-06-24 03:15:19 -05:00
|
|
|
.TS
|
|
|
|
tab(:);
|
|
|
|
left l l.
|
|
|
|
/dev/hda[1\(en63]:IDE disk 1
|
|
|
|
/dev/hdb[1\(en63]:IDE disk 2
|
|
|
|
/dev/sda[1\(en15]:SCSI disk 1
|
|
|
|
/dev/sdb[1\(en15]:SCSI disk 2
|
|
|
|
.TE
|
2006-12-06 17:25:32 -06:00
|
|
|
.RE
|
2015-06-24 03:15:19 -05:00
|
|
|
.PP
|
|
|
|
If the filesystem was changed, i.e., repaired, then
|
2006-12-06 17:25:32 -06:00
|
|
|
.B fsck.minix
|
|
|
|
will print "FILE SYSTEM HAS CHANGED" and will
|
|
|
|
.BR sync (2)
|
2015-06-24 03:15:19 -05:00
|
|
|
three times before exiting. There is
|
2006-12-06 17:25:32 -06:00
|
|
|
.I no
|
2015-06-24 03:15:19 -05:00
|
|
|
need to reboot after check.
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH WARNING
|
|
|
|
.B fsck.minix
|
|
|
|
should
|
|
|
|
.B not
|
|
|
|
be used on a mounted filesystem. Using
|
|
|
|
.B 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
|
|
|
|
.B fsck.minix
|
2015-06-24 03:15:19 -05:00
|
|
|
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.
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-l\fR, \fB\-\-list\fR
|
2011-08-28 04:14:42 -05:00
|
|
|
List all filenames.
|
2006-12-06 17:25:32 -06:00
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-r\fR, \fB\-\-repair\fR
|
2011-08-28 04:14:42 -05:00
|
|
|
Perform interactive repairs.
|
2006-12-06 17:25:32 -06:00
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-a\fR, \fB\-\-auto\fR
|
2015-06-24 03:15:19 -05:00
|
|
|
Perform automatic repairs. This option implies
|
2015-06-24 03:15:18 -05:00
|
|
|
.B \-\-repair
|
2015-06-24 03:15:19 -05:00
|
|
|
and serves to answer all of the questions asked with the default. Note
|
2011-08-28 04:14:42 -05:00
|
|
|
that this can be extremely dangerous in the case of extensive filesystem
|
2006-12-06 17:25:32 -06:00
|
|
|
damage.
|
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
2011-08-28 04:14:42 -05:00
|
|
|
Be verbose.
|
2006-12-06 17:25:32 -06:00
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-s\fR, \fB\-\-super\fR
|
2011-08-28 04:14:42 -05:00
|
|
|
Output super-block information.
|
2006-12-06 17:25:32 -06:00
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-m\fR, \fB\-\-uncleared\fR
|
2011-08-28 04:14:42 -05:00
|
|
|
Activate MINIX-like "mode not cleared" warnings.
|
2006-12-06 17:25:32 -06:00
|
|
|
.TP
|
2015-06-24 03:15:18 -05:00
|
|
|
\fB\-f\fR, \fB\-\-force\fR
|
2015-06-24 03:15:19 -05:00
|
|
|
Force a filesystem check even if the filesystem was marked as valid.
|
|
|
|
Marking is done by the kernel when the filesystem is unmounted.
|
2015-06-24 03:15:18 -05:00
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
Display version information and exit.
|
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
Display help text and exit.
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH DIAGNOSTICS
|
|
|
|
There are numerous diagnostic messages. The ones mentioned here are the
|
|
|
|
most commonly seen in normal usage.
|
2015-06-24 03:15:19 -05:00
|
|
|
.PP
|
2006-12-06 17:25:32 -06:00
|
|
|
If the device does not exist,
|
|
|
|
.B fsck.minix
|
|
|
|
will print "unable to read super block". If the device exists, but is not
|
2011-08-28 04:14:42 -05:00
|
|
|
a MINIX filesystem,
|
2006-12-06 17:25:32 -06:00
|
|
|
.B fsck.minix
|
|
|
|
will print "bad magic number in super-block".
|
|
|
|
.SH "EXIT CODES"
|
|
|
|
The exit code returned by
|
|
|
|
.B fsck.minix
|
|
|
|
is the sum of the following:
|
2015-06-24 03:15:19 -05:00
|
|
|
.PP
|
|
|
|
.RS
|
|
|
|
.PD 0
|
|
|
|
.TP
|
|
|
|
.B 0
|
2006-12-06 17:25:32 -06:00
|
|
|
No errors
|
2015-06-24 03:15:19 -05:00
|
|
|
.TP
|
|
|
|
.B 3
|
2011-08-28 04:14:42 -05:00
|
|
|
Filesystem errors corrected, system should be rebooted if filesystem was
|
2006-12-06 17:25:32 -06:00
|
|
|
mounted
|
2015-06-24 03:15:19 -05:00
|
|
|
.TP
|
|
|
|
.B 4
|
2011-08-28 04:14:42 -05:00
|
|
|
Filesystem errors left uncorrected
|
2015-06-24 03:15:19 -05:00
|
|
|
.TP
|
|
|
|
.B 7
|
2012-12-16 04:44:00 -06:00
|
|
|
Combination of exit codes 3 and 4
|
2015-06-24 03:15:19 -05:00
|
|
|
.TP
|
|
|
|
.B 8
|
2006-12-06 17:25:32 -06:00
|
|
|
Operational error
|
2015-06-24 03:15:19 -05:00
|
|
|
.TP
|
|
|
|
.B 16
|
2006-12-06 17:25:32 -06:00
|
|
|
Usage or syntax error
|
2015-06-24 03:15:19 -05:00
|
|
|
.PD
|
|
|
|
.RE
|
2006-12-06 17:25:32 -06:00
|
|
|
.PP
|
2015-06-24 03:15:19 -05:00
|
|
|
.SH AUTHORS
|
|
|
|
.MT torvalds@\:cs.\:helsinki.\:fi
|
|
|
|
Linus Torvalds
|
|
|
|
.ME
|
2006-12-06 17:25:32 -06:00
|
|
|
.br
|
2015-06-24 03:15:19 -05:00
|
|
|
Error code values by
|
|
|
|
.MT faith@\:cs.\:unc.\:edu
|
|
|
|
Rik Faith
|
|
|
|
.ME
|
2006-12-06 17:25:32 -06:00
|
|
|
.br
|
2015-06-24 03:15:19 -05:00
|
|
|
Added support for filesystem valid flag:
|
|
|
|
.MT greg%\:wind.\:uucp@\:plains.\:nodak.\:edu
|
|
|
|
Dr.\& Wettstein
|
|
|
|
.ME .
|
2006-12-06 17:25:33 -06:00
|
|
|
.br
|
2015-06-24 03:15:19 -05:00
|
|
|
Check to prevent fsck of mounted filesystem added by
|
|
|
|
.MT quinlan@\:yggdrasil.\:com
|
|
|
|
Daniel Quinlan
|
|
|
|
.ME .
|
2006-12-06 17:25:34 -06:00
|
|
|
.br
|
2015-06-24 03:15:19 -05:00
|
|
|
Minix v2 fs support by
|
|
|
|
.MT schwab@\:issan.\:informatik.\:uni-dortmund.\:de
|
|
|
|
Andreas Schwab
|
|
|
|
.ME ,
|
|
|
|
updated by
|
|
|
|
.MT janl@\:math.\:uio.\:no
|
|
|
|
Nicolai Langfeldt
|
|
|
|
.ME .
|
2006-12-06 17:25:34 -06:00
|
|
|
.br
|
2015-06-24 03:15:19 -05:00
|
|
|
Portability patch by
|
|
|
|
.MT rmk@\:ecs.\:soton.\:ac.\:uk
|
|
|
|
Russell King
|
|
|
|
.ME .
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR fsck (8),
|
|
|
|
.BR fsck.ext2 (8),
|
|
|
|
.BR mkfs (8),
|
|
|
|
.BR mkfs.minix (8),
|
|
|
|
.BR mkfs.ext2 (8),
|
|
|
|
.BR reboot (8)
|
2007-07-02 18:17:04 -05:00
|
|
|
.SH AVAILABILITY
|
2010-11-30 04:41:59 -06:00
|
|
|
The fsck.minix command is part of the util-linux package and is available from
|
2015-06-24 03:15:19 -05:00
|
|
|
.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
|
|
|
|
Linux Kernel Archive
|
|
|
|
.UE .
|