HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
f
fsck_hfs(1M) fsck_hfs(1M)
After fsck has checked and fixed the file system, it stores the correct
fs_clean flag in the superblock if
it is not already there. For a nonroot file system,
FS_CLEAN is stored there. For the root file system,
which is mounted at the time of the
fsck, no changes are required to the superblock if no problems were
found and
FS_OK was already set.
Checking the raw device is almost always faster.
RETURN VALUE
fsck returns the following values:
0 Either no errors were detected or all errors were corrected.
1 A syntax error or other operational error occurred when invoked with the -V option.
4 Root file system errors were corrected. The system must be rebooted.
8 Some uncorrected errors exist on one or more of the file systems checked, there was a syntax
error, or some other operational error occurred.
12 A signal was caught during processing.
31 The open of the device file failed.
32 The file system is unmounted and needs additional checking.
33 The file system is mounted.
34 The file system is damaged.
WARNINGS
fsck should not be run on mounted file systems or on the root device. If you do run on mounted file sys-
tems, be sure the system is in single-user state (see shutdown(1M)).
The special case of the -c option, -c 0, will disable all internal caches, which will reduce memory usage
but may impact performance.
The -F option, from prior releases, has been replaced by the -f option.
AUTHOR
fsck was developed by HP, AT&T, the University of California, Berkeley.
FILES
/etc/fstab Default list of file systems to check.
/var/adm/sbtab List of locations of the superblocks for file systems. The
mkfs command appends
entries to this file.
SEE ALSO
dumpfs(1M), fsck(1M), fsck_vxfs(1M), fsclean(1M), mkfs(1M), newfs(1M), shutdown(1M), fstab(4), acl(5),
fs_wrapper(5), disk(7).
STANDARDS CONFORMANCE
fsck: SVID3
244 Hewlett-Packard Company − 3 − HP-UX 11i Version 3: February 2007