fsck(1M) fsck(1M)
NAME [Toc] [Back]
fsck - file system consistency check and interactive repair
SYNOPSIS [Toc] [Back]
/usr/sbin/fsck [-F FSType] [-m] [-s] [-V] [special ...]
/usr/sbin/fsck [-F FSType] [-o FSspecific-options] [-s] [-V]
[special ...]
DESCRIPTION [Toc] [Back]
The fsck command audits and interactively repairs inconsistent
conditions for HP-UX file systems on mass storage device files
identified by special. If the file system is consistent, the number
of files on that file system and the number of used and free blocks
are reported. If the file system is inconsistent, fsck provides a
mechanism to fix these inconsistencies, depending on which form of the
fsck command is used.
special represents a special device (e.g., /dev/rdsk/c1d0s8).
Options [Toc] [Back]
fsck recognizes the following options:
-F FStype Specify the file system type on which to operate
(see fstyp(1M) and fs_wrapper(5)). If this option
is not included on the command line, then the file
system type is determined from the file /etc/fstab
by matching special with an entry in that file.
If there is no entry in /etc/fstab, then the file
system type is determined from the file
/etc/default/fs.
-m Perform a sanity check only. fsck will return 0
if the file system is suitable for mounting. If
the file system needs additional checking, the
return code is 32. If the file system is mounted,
the return code is 33. Error codes larger than 33
indicate that the file system is badly damaged.
-o FSspecific-options
Specify options specific to each file system type.
FSspecific-options is a list of suboptions and/or
keyword/attribute pairs intended for a filesystem-specific
version of the command. See the
file-system-specific manual entries for a
description of the specific_options supported, if
any.
-s Safe performance mode. To improve performance, a
system wide sync(2) will not be issued. This
feature is underlying file system dependent.
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
fsck(1M) fsck(1M)
-V Echo the completed command line, but perform no
other action. The command line is generated by
incorporating the user-specified options and other
information derived from /etc/fstab. This option
allows the user to verify the command line.
RETURN VALUE [Toc] [Back]
The following values are returned by the -m option to fsck:
0 Either no errors were detected or all errors were corrected.
32 The file system needs additional checking.
33 The file system is mounted.
Return values greater that 33 indicate that file system is badly
corrupted. File system specific versions of fsck will have their own
additional return values (see fsck_cachefs(1M), fsck_hfs(1M), or
fsck_vxfs(1M)).
WARNINGS [Toc] [Back]
This command may not be supported for all file system types.
FILES [Toc] [Back]
/etc/default/fs Specifies the default file system type
/etc/fstab Default list of file systems to check
SEE ALSO [Toc] [Back]
fsck_cachefs(1M), fsck_hfs(1M), fsck_vxfs(1M), mkfs(1M), newfs(1M),
fstab(4), fs_wrapper(5).
STANDARDS CONFORMANCE [Toc] [Back]
fsck: SVID3
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ] |