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 ...]
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. If the user does not have
write permission fsck defaults to a no action.
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 (e.g.,
/dev/dsk/c8d062). 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. The FSType should
either be specified here or be determinable from
/etc/vfstab by matching the special with an entry in the
table.
-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.
7/91 Page 1
fsck(1M) fsck(1M)
-m Check but don't repair. This option checks that the file
system is suitable for mounting.
-o Specify FSType-specific options.
NOTE
This command may not be supported for all FSTypes.
FILES
/etc/vfstab list of default parameters for each file system
SEE ALSO
checkfsys(1M), mkfs(1M), vfstab(4).
Manual pages for the FSType-specific modules of fsck.
Page 2 7/91