You’ve seen something like an error message when trying to save a file to disk that makes you wonder whether there might be a problem with that storage. You’re fairly confident that it wasn’t caused by privacy protection, and want to check whether there has been an error in the file system. This article describes what to do, and how to interpret the results from checking and repairing that disk.
If you can, before going any further, make a fresh backup of the affected volume. For the rest of this article, I’ll assume the most common and worst case, that your suspicions concern the Data volume in your Mac’s startup disk, on its internal SSD. You can reach for Disk Utility directly when an external disk is involved, but running Disk Utility’s First Aid on the Data volume is best performed in Recovery Mode. macOS can attempt that in normal running mode, which is quite a feat on a ‘live’ file system, but you’re much better off doing this in Recovery.
Disk Utility in Recovery
When ready, shut your Mac down, wait ten seconds, then start it up in Recovery Mode. For an Apple silicon Mac, that requires keeping the Power button pressed until the Mac reports it’s entering Options. Once that screen has loaded, select the Options icon on the right and click Continue underneath that. You’ll then be asked to authenticate before the main Recovery window appears. Select Disk Utility within that, and click Continue.
Take a couple of moments to set up Disk Utility properly to start with. Open the View tool at the top left and set it to Show All Devices. If you’re also going to check and perform surgery on snapshots, open the View menu and select Show APFS Snapshots so they’ll be listed as well.
As you suspect any problem is in the Data volume, check that first. Select it in the list in the sidebar.
You’ll notice the Data volume isn’t mounted. When you click on the First Aid tool, you’ll therefore be prompted to enter the FileVault password to unlock it.
First Aid report
Show Details in the First Aid report and read it carefully. Significant entries there might include:
- the command used to perform the check and repair, here
fsck_apfs -y -x /dev/rdisk4s5 - APFS version numbers for that volume’s formatting and last modification, such as
The volume Data was formatted by news_apfs (3288.41.1) and last modified by apfs_kext (3288.41.1). - warnings such as
inode (id 402194151): Resource Fork xattr is missing for compressed file - errors, usually giving id numbers where possible
- any deferred repairs performed by APFS
- attempts to perform other repairs
- an exit code, which should be 0.
APFS version numbers change with most updates to the current fully-supported version of macOS, but aren’t likely to change in the two older versions receiving security-only updates. The Appendix below provides details of version numbers for each macOS going back to Sierra’s initial beta-release.
Identify items by ID
Warnings and errors don’t give file or directory names or paths, but usually provide IDs, which are the item’s inode number. Although you can use my free utility Mints to convert those to file paths, you can only do that when back in normal user mode. The only way to convert them in Recovery is to write the number down, quit Disk Utility and open Terminal from the menu bar.
Assuming the ID was given when checking the Data volume, you can discover which path that converts to using the find command in
find /Volumes/Data -inum [ID]
where [ID] is the number given in the First Aid report. Unfortunately, the best tool for doing this, GetFileInfo, is deprecated and not available in Recovery.
To assemble the full volfs path for the file, first run
stat /Volumes/Data/Users/.localized
which should return something like
16777220 19066 -rw-r--r-- 1 root wheel […] /Volumes/Data/Users/.localized
where the first number is the volume number, and the second is the inode number of that item, which you replace with the inode number given in First Aid.
Further checks
In most cases, you should now either have established the health of the Data volume’s file system, or found a problem with it. Occasionally that report will advise you to check and repair the container next, or you might feel that is warranted anyway. With the boot volume group, this can be moot, as the other major volume in that container is the System volume, which is only mounted during macOS updates, and is unmounted during normal running.
You also shouldn’t need to check the Signed System Volume, the specially protected snapshot containing the regular system files. Every part of that is protected and validated by cryptographic hashes, so any errors should result in more serious consequences such as boot failure.
Check the container in the same way you checked the Data volume: select it in the sidebar first.
Click the First Aid tool, and prepare to read its long report, which repeats similar checks over each of the volumes in that container. Warnings or errors reported here can be harder to interpret. Any IDs given in the report will need to be converted to full paths using that volume’s ID number, obtained using an appropriate stat command.
Final checks can be performed with the disk selected in the sidebar. However, those primarily look at the partition map. If your Mac is having problems with that, the best way forward might well be a full Restore in DFU mode.
Data volume snapshots
If your Mac is making backups that create snapshots on the Data volume, as Time Machine does, this is a good time to take stock of them. They can sometimes become orphaned, when they’re left in place for longer than the 24 hours intended, and Time Machine can then fail to delete them, leaving them to grow in size.
Here the second snapshot is huge, with a private size of 53.3 GB, making it worth deleting to save all that space. Select the snapshot to be removed and open the contextual menu with Control-click.
Use the Delete command.
You’ll be asked to confirm.
With that snapshot gone, there was more than 50 GB of additional free space.
As with all potentially destructive actions, double-check you’re removing the right snapshot. Avoid deleting the most recent, as that will be used by Time Machine when making its next backup.
Once you’ve completed maintenance, restart your Mac back into normal mode.
Apple’s official account is given here.
Appendix: APFS version numbers
Public releases of major versions:
- macOS 10.12 has APFS version 0.3 or 249.x.x, which shouldn’t be used at all.
- 10.13 has 748.x.x, which doesn’t support Fusion Drives, but has basic support for volume roles.
- 10.14 has 945.x.x, the first version to support Fusion Drives.
- 10.15 has 1412.x.x, the first version to support the multi-volume boot group, and introduces extended support for volume roles, including Data, Backup and Prelogin.
- 11 has 1677.x.x, the first version to support the SSV and Apple silicon. On M1 Macs, it doesn’t support the paired Recovery volume.
- 12 has 1933.x.x until 12.2, thereafter 1934.x.x, which support the paired Recovery volume on Apple silicon.
- 13 has 2142.x.x, and is probably the first to support trimming of UDRW disk images and their storage as sparse files.
- 14 has 2235.x.x, until 14.3, thereafter 2236.x.x to 2236.141.1 in 14.6 onwards.
- 15 has 2313.x.x until 15.2, thereafter 2317.x.x until 15.4, thereafter 2332.x.x to 2332.140.13 in 15.6 onwards.
- 26 has 2632.x.x until 26.4, thereafter 2811.x.x, as detailed below.
- 27 has 3288.x.x, as detailed below.
Public releases of macOS 26 Tahoe:
- 26.0 and 26.0.1 have 2632.0.84
- 26.1 has 2632.40.15
- 26.2 has 2632.40.17
- 26.3 and 26.3.1 have 2632.80.1
- 26.4 and 26.4.1 have 2811.101.1
- 26.5 and 26.5.1 have 2811.120.14
- 26.5.2 has 2811.121.1.
- 26.6 has 2811.160.7.
Public releases of macOS 27 Golden Gate:
- 27.0 has 3288.1.3
- 27.2 has 3288.41.1.











