fsck_apfs(8) BSD System Manager's Manual fsck_apfs(8)
NAME
fsck_apfs -- APFS consistency check
SYNOPSIS
fsck_apfs [-q | -n | -y] [-l] device
DESCRIPTION
The fsck_apfs utility verifies and repairs APFS containers and volumes. fsck_apfs checks the specified APFS containers and volumes and tries to repair all detected inconsistencies. Because of inconsistencies between the block device and the buffer cache, the raw device should always be used. In its current state, fsck_apfs checks the integrity of various container data structures. We do not check for overlapping allocations. The options are as follows: -l Lock down the file system for a verify-only check. This makes it possible to check a file system that is currently mounted, although no repairs can be made. -q Causes fsck_apfs to quickly check whether the volume is `clean'. -n Never attempt to repair any damage that is found. -y Always attempt to repair any damage that is found.
EXIT VALUES
fsck_apfs exits 0 on success, and >0 if error occurs.
SEE ALSO
fsck(8) Mac OS X December 3, 2015 Mac OS X
Mac OS X 10.13.1 - Generated Thu Nov 9 19:50:31 CST 2017