manpagez: man pages & more
man fsck_apfs(8)
Home | html | info | man

fsck_apfs(8)              BSD System Manager's Manual             fsck_apfs(8)


     fsck_apfs -- APFS consistency check


     fsck_apfs [-q | -n | -y] [-l] device


     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

           -n      Never attempt to repair any damage that is found.

           -y      Always attempt to repair any damage that is found.


     fsck_apfs exits 0 on success, and >0 if error occurs.



Mac OS X                       December 3, 2015                       Mac OS X

Mac OS X 10.13.1 - Generated Thu Nov 9 19:50:31 CST 2017
© 2000-2024
Individual documents may contain additional copyright information.