This is currently best accomplished by restarting in Recovery Mode, thus booting from the Recovery Volume, or an external bootable disk and performing the check and repair from there. ![]() Whether you decide to do it the easy way using Disk Utility or run fsck_apfs at the command line, the volume to be checked and repaired must normally be unmounted beforehand, something which Disk Utility handles for you. You can see the full list of options available with the commandĪs the man page may not be as accurate as its usage information. perform just a quick check to see if the superblock and checkpoint superblock are valid, -q.Other options which are available in fsck_apfs and might warrant calling it directly from the command line include: The -y option ensures that fsck_apfs performs all the repairs which it thinks it can, and the -x option returns its output in XML format, which is then displayed in the dropdown in Disk Utility, so that you can see the results of the test and repair. Where rdiskname is something like /dev/rdisk3s1. In most circumstances, it is therefore simpler and just as effective to use Disk Utility to check and repair APFS volumes, as it handles their unmounting, calls fsck_apfs, then remounts them without your having to call any additional actions or commands. The only advantage in using fsck or calling fsck_apfs direct is in the other options available. When you run either the command tool fsck or the First Aid action in Disk Utility on an APFS volume, they simply call on the tool fsck_apfs to perform the work. There is now at least one third party utility which can attempt to recover the contents of APFS volumes, as I describe below. The sole exception is for volume recovery, a feature not offered in Disk Utility or fsck. Apple’s tools remain the only serious options for APFS. As a result, several vendors have announced their intended support for APFS, but as far as I am aware at present, only limited functions are available in third party products at present. This has changed with the arrival of Apple File System, APFS, largely because Apple has still failed to provide sufficiently detailed documentation to enable third parties to develop their own utilities to maintain or repair APFS volumes. ![]() Many Mac users have successfully recovered damaged disks which Disk Utility or fsck have declared were unrepairable, which tools like Drive Genius and DiskWarrior have been able to repair. Although they’ve been reasonably useful and reliable for much of the history of the Mac Extended or HFS+ file system, third-party tools have often outperformed Apple’s. Bundled disk checking and repair tools have something of a chequered history.
0 Comments
Leave a Reply. |