FSCK_HFS(8) | System Manager's Manual | FSCK_HFS(8) |
fsck.hfs
— HFS
file system consistency check
fsck.hfs |
-q [-df ]
special ... |
fsck.hfs |
-p [-df ]
special ... |
fsck.hfs |
[-n | -y |
-r ] [-dfgl ]
[-m mode]
[-c size]
special ... |
The fsck.hfs
utility verifies and repairs
standard HFS and HFS+ file systems.
The first form of fsck.hfs
quickly checks
the specified file systems to determine whether they were cleanly
unmounted.
The second form of fsck.hfs
preens the
specified file systems. It is normally started by fsck(8)
during systen boot, when a HFS file system is detected. When preening file
systems, fsck.hfs
will fix common inconsistencies
for file systems that were not unmounted cleanly. If more serious problems
are found, fsck.hfs
does not try to fix them,
indicates that it was not successful, and exits.
The third form of fsck.hfs
checks the
specified file systems and tries to repair all detected inconsistencies.
If no options are specified fsck.hfs
will
always check and attempt to fix the specified file systems.
The options are as follows:
-c
sizefsck.hfs
internally. Bigger
size can result in better performance but can result
in deadlock when used with -l
option. Size can be
specified as a decimal, octal, or hexadecimal number. If the number ends
with a ``k'', ``m'', or ``g'', the number is multiplied by 1024 (1K),
1048576 (1M), or 1073741824 (1G), respectively.-d
fsck.hfs
cannot repair a damaged file
system.-f
-p
option, force
fsck.hfs
to check `clean' file systems, otherwise
it means force fsck.hfs
to check and repair
journaled HFS+ file systems.-g
fsck.hfs
to generate its output strings in
GUI format. This option is used when another application with a graphical
user interface (like Mac OS X Disk Utility) is invoking the
fsck.hfs
tool.-l
-m
modefsck.hfs
places orphaned files and
directories into the lost+found directory (located at the root of the
volume). The default mode is 01777.-p
-q
fsck.hfs
to quickly check whether the
volume was unmounted cleanly. If the volume was unmounted cleanly, then
the exit status is 0. If the volume was not unmounted cleanly, then the
exit status will be non-zero. In either case, a message is printed to
standard output describing whether the volume was clean or dirty.-y
-n
-r
fsck.hfs
is not able to fix some
inconsistencies that it detects.
The fsck.hfs
command appeared in Mac OS X
Server 1.0 .
November 21, 2002 | Mac OS X |