January 2003
Intermediate to advanced
832 pages
32h 40m
English
fsck_hfs
fsck_hfs -u
fsck_hfs [-d] [ -r] {-q | -p | [-n | -y]} device
Performs a consistency check of HFS and HFS+ volumes, and attempts to fix any inconsistencies found.
-d
Enables debugging output.
-f
Forces check even if the volume is marked as clean.
-n
Automatically answers “no” whenever
fsck_hfs asks to resolve an inconsistency.
-p
Runs in preening mode, in which only purely innocuous inconsistencies are resolved.
-q
Checks the filesystem but does not resolve any inconsistencies. Returns filesystem status of clean, dirty, or failure to standard error.
-r
Causes a rebuild of the volume’s catalog btree to occur.
-u
Prints a usage statement to standard output.
-y
Automatically answers “yes”
whenever fsck_hfs asks to resolve an
inconsistency.
device
The volume’s device filename, e.g.,
/dev/disk1s2.