diff options
Diffstat (limited to 'sbin/fsck/fsck.8')
-rw-r--r-- | sbin/fsck/fsck.8 | 76 |
1 files changed, 44 insertions, 32 deletions
diff --git a/sbin/fsck/fsck.8 b/sbin/fsck/fsck.8 index fd3ff07..20c867f 100644 --- a/sbin/fsck/fsck.8 +++ b/sbin/fsck/fsck.8 @@ -1,3 +1,4 @@ +.\" .\" Copyright (c) 1980, 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -31,7 +32,7 @@ .\" .\" @(#)fsck.8 8.4 (Berkeley) 5/9/95 .\" -.Dd May 9, 1995 +.Dd November 15, 1996 .Dt FSCK 8 .Os BSD 4 .Sh NAME @@ -40,13 +41,15 @@ .Sh SYNOPSIS .Nm fsck .Fl p +.Op Fl f .Op Fl m Ar mode +.Op Ar filesystem +.Ar ... .Nm fsck +.Op Fl ny .Op Fl b Ar block# .Op Fl c Ar level .Op Fl l Ar maxparallel -.Op Fl y -.Op Fl n .Op Fl m Ar mode .Op Ar filesystem .Ar ... @@ -81,7 +84,8 @@ runs on them successfully. The kernel takes care that only a restricted class of innocuous filesystem inconsistencies can happen unless hardware or software failures intervene. These are limited to the following: -.Bl -item -compact +.Pp +.Bl -item -compact -offset indent .It Unreferenced inodes .It @@ -157,32 +161,6 @@ The following flags are interpreted by Use the block specified immediately after the flag as the super block for the filesystem. Block 32 is usually an alternate super block. -.It Fl l -Limit the number of parallel checks to the number specified in the following -argument. -By default, the limit is the number of disks, running one process per disk. -If a smaller limit is given, the disks are checked round-robin, one filesystem -at a time. -.It Fl m -Use the mode specified in octal immediately after the flag as the -permission bits to use when creating the -.Pa lost+found -directory rather than the default 1777. -In particular, systems that do not wish to have lost files accessible -by all users on the system should use a more restrictive -set of permissions such as 700. -.It Fl y -Assume a yes response to all questions asked by -.Nm fsck ; -this should be used with great caution as this is a free license -to continue after essentially unlimited trouble has been encountered. -.It Fl n -Assume a no response to all questions asked by -.Nm fsck -except for -.Ql CONTINUE? , -which is assumed to be affirmative; -do not open the filesystem for writing. .It Fl c Convert the filesystem to the specified level. Note that the level of a filesystem can only be raised. @@ -216,6 +194,40 @@ are being converted at once. The format of a filesystem can be determined from the first line of output from .Xr dumpfs 8 . +.It Fl f +Force +.Nm fsck +to check +.Sq clean +filesystems when preening. +.It Fl l +Limit the number of parallel checks to the number specified in the following +argument. +By default, the limit is the number of disks, running one process per disk. +If a smaller limit is given, the disks are checked round-robin, one filesystem +at a time. +.It Fl m +Use the mode specified in octal immediately after the flag as the +permission bits to use when creating the +.Pa lost+found +directory rather than the default 1777. +In particular, systems that do not wish to have lost files accessible +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 +except for +.Ql CONTINUE? , +which is assumed to be affirmative; +do not open the filesystem for writing. +.It Fl p +Preen filesystems (see above). +.It Fl y +Assume a yes response to all questions asked by +.Nm fsck ; +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 @@ -252,6 +264,8 @@ File pointing to unallocated inode. .It Inode number out of range. .It +Directories with unallocated blocks (holes). +.It Dot or dot-dot not the first two entries of a directory or having the wrong inode number. .El @@ -295,7 +309,5 @@ are fully enumerated and explained in Appendix A of .Sh SEE ALSO .Xr fstab 5 , .Xr fs 5 , -.Xr fsdb 8 , .Xr newfs 8 , -.Xr mkfs 8 , .Xr reboot 8 |