aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/fsck_ffs.8
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1998-12-03 02:41:11 +0000
committerJulian Elischer <julian@FreeBSD.org>1998-12-03 02:41:11 +0000
commit6b100474f7c528056b7c9320de2f8e6eff29326a (patch)
treeaf6d3dddf19db8642b0eafc9f6f8a4cc43dc63aa /sbin/fsck_ffs/fsck_ffs.8
parent1ec712bb646ab6085e9901d632dce850ea410c90 (diff)
downloadsrc-6b100474f7c528056b7c9320de2f8e6eff29326a.tar.gz
src-6b100474f7c528056b7c9320de2f8e6eff29326a.zip
Cosmetic and documentation changes brought from earlier FreeBSD versions.
(e.g. RCS Id:)
Notes
Notes: svn path=/head/; revision=41477
Diffstat (limited to 'sbin/fsck_ffs/fsck_ffs.8')
-rw-r--r--sbin/fsck_ffs/fsck_ffs.844
1 files changed, 26 insertions, 18 deletions
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8
index 20c867fcf715..5ce5e0f681da 100644
--- a/sbin/fsck_ffs/fsck_ffs.8
+++ b/sbin/fsck_ffs/fsck_ffs.8
@@ -11,7 +11,7 @@
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
+.\" must display the following acknowledgment:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
@@ -31,6 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)fsck.8 8.4 (Berkeley) 5/9/95
+.\" $Id: fsck.8,v 1.11 1998/06/15 07:07:12 charnier Exp $
.\"
.Dd November 15, 1996
.Dt FSCK 8
@@ -55,13 +56,13 @@
.Ar ...
.Sh DESCRIPTION
The first form of
-.Nm fsck
+.Nm
preens a standard set of filesystems or the specified filesystems.
It is normally used in the script
.Pa /etc/rc
during automatic reboot.
Here
-.Nm fsck
+.Nm
reads the table
.Pa /etc/fstab
to determine which filesystems to check.
@@ -74,12 +75,18 @@ running one process per disk drive.
The disk drive containing each filesystem is inferred from the longest prefix
of the device name that ends in a digit; the remaining characters are assumed
to be the partition designator.
-In preening mode,
-filesystems that are marked clean are skipped.
+.Pp
+In "preen" mode the clean flag of each filesystem's superblock is examined
+and only those filesystems that
+are not marked clean are checked.
Filesystems are marked clean when they are unmounted,
when they have been mounted read-only, or when
-.Nm fsck
+.Nm
runs on them successfully.
+If the
+.Fl f
+option is specified, the filesystems
+will be checked regardless of the state of their clean flag.
.Pp
The kernel takes care that only a restricted class of innocuous filesystem
inconsistencies can happen unless hardware or software failures intervene.
@@ -99,7 +106,7 @@ Counts in the super-block wrong
.El
.Pp
These are the only inconsistencies that
-.Nm fsck
+.Nm
with the
.Fl p
option will correct; if it encounters other inconsistencies, it exits
@@ -107,7 +114,7 @@ with an abnormal return status and an automatic reboot will then fail.
For each corrected inconsistency one or more lines will be printed
identifying the filesystem on which the correction will take place,
and the nature of the correction. After successfully correcting a filesystem,
-.Nm fsck
+.Nm
will print the number of files on that filesystem,
the number of used and free blocks,
and the percentage of fragmentation.
@@ -115,7 +122,7 @@ and the percentage of fragmentation.
If sent a
.Dv QUIT
signal,
-.Nm fsck
+.Nm
will finish the filesystem checks, then exit with an abnormal
return status that causes an automatic reboot to fail.
This is useful when you want to finish the filesystem checks during an
@@ -125,7 +132,7 @@ but do not want the machine to come up multiuser after the checks complete.
Without the
.Fl p
option,
-.Nm fsck
+.Nm
audits and interactively repairs inconsistent conditions for filesystems.
If the filesystem is inconsistent the operator is prompted for concurrence
before each correction is attempted.
@@ -141,7 +148,7 @@ is to wait for the operator to respond
or
.Li no .
If the operator does not have write permission on the filesystem
-.Nm fsck
+.Nm
will default to a
.Fl n
action.
@@ -155,7 +162,7 @@ and
combined.
.Pp
The following flags are interpreted by
-.Nm fsck .
+.Nm Ns .
.Bl -tag -width indent
.It Fl b
Use the block specified immediately after the flag as
@@ -181,7 +188,7 @@ If maxcontig is equal to one, delete any existing segment maps.
.El
.Pp
In interactive mode,
-.Nm fsck
+.Nm
will list the conversion to be made
and ask whether the conversion should be done.
If a negative answer is given,
@@ -216,7 +223,7 @@ by all users on the system should use a more restrictive
set of permissions such as 700.
.It Fl n
Assume a no response to all questions asked by
-.Nm fsck
+.Nm
except for
.Ql CONTINUE? ,
which is assumed to be affirmative;
@@ -225,13 +232,13 @@ do not open the filesystem for writing.
Preen filesystems (see above).
.It Fl y
Assume a yes response to all questions asked by
-.Nm fsck ;
+.Nm Ns ;
this should be used with great caution as this is a free license
to continue after essentially unlimited trouble has been encountered.
.El
.Pp
If no filesystems are given to
-.Nm fsck
+.Nm
then a default list of filesystems is read from
the file
.Pa /etc/fstab .
@@ -301,13 +308,14 @@ contains default list of filesystems to check.
.El
.Sh DIAGNOSTICS
The diagnostics produced by
-.Nm fsck
+.Nm
are fully enumerated and explained in Appendix A of
.Rs
.%T "Fsck \- The UNIX File System Check Program"
.Re
.Sh SEE ALSO
-.Xr fstab 5 ,
.Xr fs 5 ,
+.Xr fstab 5 ,
+.Xr fsdb 8 ,
.Xr newfs 8 ,
.Xr reboot 8