I have an old MacBook Air running out of disk space, and DaisyDisk reports that 25 GB are taken by "still hidden". Following their suggestions, I've tried to run Disk Utility First Aid as well as a raw sudo fsck_apfs -ln /dev/rdisk1s1
, and both give me the following error:
...
** Checking the object map.
** Checking the snapshot metadata tree.
** Checking the snapshot metadata.
** Checking snapshot 1 of 1.
error: btn: invalid value (3808, 20)
Snapshot is invalid.
** The volume /dev/rdisk1s1 could not be verified completely.
I've checked both sudo tmutil listlocalsnapshots /
and sudo tmutil listlocalsnapshotdates /
, and both show no results. I've tried booting into recovery/single-user mode and running sudo fsck_apfs -y /dev/rdisk1s1
, but it fails with the same "snapshot is invalid" error.
Is there any way to get fsck_apfs
to successfully run and repair the disk? If not, as a last resort, would it make sense to fully delete this machine's Time Machine backup and recreate it from scratch as a way to try to get rid of this invalid snapshot?
Edit: I also forgot to mention, I have disabled Time Machine backups and restarted as well (in an attempt to get rid of all local snapshots).
sudo fsck_apfs -lnS /dev/rdisk1s1
to skip checking snapshots.warning: found orphan dstream id object (id ..., refcnt 1)
lines. Searching for that message shows other people having similar issues with a failed Time Machine backup. Any idea how to repair those without getting stuck at the invalid snapshot error?apfs-fuse
is able to read from the partition. You can boot Linux (e.g. from an Ubuntu USB) to try this.apfs_num_other_fsobjects (61) is not valid (62)
).