A small selection of flowers wild and cultivated
A small selection of flowers wild and cultivated
I had a lot of trouble on my Mac with Time Machine telling me the disk was full and yet I could not find huge wins just by inspection and deleting things that looked too big. I drafted ChatGPT in to help diagnose the problem and it had me jump through all sorts of hoops, which did eventually recover the space I needed.
Rather than repeating all those steps as an aide-memoire, I asked ChatGPT to go through the entire exchange and prioritise the various steps. This (lightly edited) is what I received.
Retrospective: Better Process for Identifying the Missing Disk Space
Yes. In hindsight, once we saw the large df vs du discrepancy, rebooting should have moved much higher in the priority list.
A better priority order would have been:
Confirm real free space with df
df -h /System/Volumes/Data
Compare with visible file usage
sudo du -xhd 1 /System/Volumes/Data 2>/dev/null | sort -h
If df says \~203 GB used but du only finds \~119 GB, stop hunting normal folders
That discrepancy was the crucial clue. At that point, deleting
caches, MobileSync backups, and Homebrew files was secondary.
Check for snapshots and open deleted files
sudo diskutil apfs listSnapshots /System/Volumes/Data
sudo lsof +L1
If snapshots are mounted/protected/busy, reboot early
The moment we saw: /Volumes/com.apple.TimeMachine.localsnapshots/... and later Snapshot ... Purgeable: Yes a reboot should have been recommended as the quickest practical next step.
So yes: once the evidence showed \~80--100 GB missing from normal filesystem accounting, the best path was:
df/du discrepancy → check snapshots/open files → reboot → recheck df
rather than continuing to inspect ordinary folders.
The cache/MobileSync/Homebrew cleanup advice was still safe and useful, but it was not the main solution. The decisive clue was the df/du gap, and the decisive fix was rebooting to release mounted Time Machine local snapshots.
I'm sure this will help future me. May it also help present you.
Webmentions
Webmentions allow conversations across the web, based on a web standard. They are a powerful building block for the decentralized social web.
If you write something on your own site that links to this post, you can send me a Webmention by putting your post's URL in here:
Comments
I very much regret that Russian spammers have made my comment system unusable. If you want to email me a comment, it is easy enough to find the address and I will be happy to do the needful behind the scenes. Webmentions remain available (for now).