FSCK_APFS(8) | System Manager's Manual | FSCK_APFS(8) |
fsck_apfs
— APFS
consistency check
fsck_apfs |
[-n | -y ]
[-q ] [-l ]
[-s ] [-S ]
[-o ] [-b
num] [-c ]
[-C ] [-d ]
[-E path]
[-F | -M ]
[-g | -x ]
[-W ] [-T ]
[-D ] 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.
The options are as follows:
-q
fsck_apfs
to quickly check whether the
device is `clean'. If device is an APFS volume,
fsck_apfs
will quickly check the APFS container
and the specified APFS volume. If device is an APFS
container, fsck_apfs
will quickly check the APFS
container and all the APFS volumes in it. By default, no repairs are
attempted during a quick check.-n
-y
-l
fsck_apfs
completes.-s
-S
-o
-b
<num>-c
-C
-d
-E
<path>-F
-M
-g
-x
-W
fsck_apfs
will exit with a return code of 0 if there are warnings but no errors.
This option will cause it to exit with an appropriate error code in that
situation.-T
-y
must be present, or both
-n
and -q
must be
absent.-D
-T
option as well.fsck_apfs
exits with 0 on success, and
>0 if error occurs.
March 6, 2018 | Mac OS X |