fsck(1M) fsck(1M)
NAME
fsck (generic) - check and repair file systems
SYNOPSIS
fsck [-F FSType] [-V] [-m] [special . . .]
fsck [-F FSType] [-V] [current_options] [-o specific_options] [special . . .]
fsck [-F FSType] [-V] [-PLbyw] [special . . .]
DESCRIPTION
fsck audits and interactively repairs inconsistent conditions
for file systems. If the file system is inconsistent the user
is prompted for concurrence before each correction is
attempted. It should be noted that some corrective actions
will result in some loss of data. The amount and severity of
data loss may be determined from the diagnostic output. The
default action for each correction is to wait for the user to
respond yes or no.
The file system should be unmounted when fsck is used. If
this is not possible, care should be taken that the system is
quiescent and that it is rebooted immediately afterwards if
the file system is a critical one, for example root.
current_options are options supported by the s5-specific
module of fsck. Other FSTypes do not necessarily support
these options. specific_options indicate suboptions specified
in a comma-separated list of suboptions and/or keyword-
attribute pairs for interpretation by the FSType-specific
module of the command.
special represents a block or character special device (for
example, /dev/rdsk/*, where the value of * is machine
dependent). It is preferable that a character special device
be used. fsck will not work on a block device if it is
mounted. If special is not supplied, fsck looks through
/etc/vfstab and executes fsck for all character specials in
the fsckdev field of /etc/vfstab for which there is a numeric
entry in the fsckpass field.
The options are:
-F Specify the FSType on which to operate. If you are
uncertain about the FSType, use the fstyp command to
determine it, rather than looking it up in the
vfstab file.
Copyright 1994 Novell, Inc. Page 1
fsck(1M) fsck(1M)
-V Echo the complete command line, but do not execute
the command. The command line is generated by using
the options and arguments provided by the user and
adding to them information derived from /etc/vfstab.
This option should be used to verify and validate
the command line.
-m Check but don't repair. This option checks that the
file system is suitable for mounting.
-o Specify FSType-specific options.
-P Automatically audits and interactively repairs
inconsistent conditions for all filesystems in
/etc/vfstab in parallel. It uses the fsckpass field
of /etc/vfstab to create a list of filesystems that
need checking on separate disks. The filesystems are
then scheduled for checking such that each disk has
one filesystem being checked on that disk at a given
time. -P supports the following suboptions:
-L Requests that the ouput is arranged in order by
filesystem.
-b Prints the filesystem output in a brief terse
format. Upon success, the command prints one line,
per filesystem, which is a summary of fsck
information.
-y Assumes a "yes" response to all questions, and the
interactive mode is circumvented.
-w Averts confusion stemming from several different
filesystems requesting interactive responses. Runs
as expected upon success (either verbose or brief).
If it fails, the parent fsck process collects the
failure information, but defers any corrections
until the rest of the filesystems have been
checked.
NOTE
This command may not be supported for all FSTypes.
FILES
Copyright 1994 Novell, Inc. Page 2
fsck(1M) fsck(1M)
/etc/vfstab list of default parameters for each file system
REFERENCES
bfs-specific fsck(1M_BFS), s5-specific fsck(1M_S5), sfs-
specific fsck(1M_SFS), ufs-specific fsck(1M_UFS), vxfs-
specific fsck(1M_VXFS), fsck(1M_XNX), mkfs(1M), vfstab(4)
Copyright 1994 Novell, Inc. Page 3