I've been tearing my hair out trying to figure out why my new machine (Mac mini M1 2020, Monterey 12.6) is supposedly running out of space. Running du
/ncdu
is showing only a total of 100 GB disk space used on /Users
//System/Volumes/Data
while "About this Mac" is showing 100GB free.
df -h
output:
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk3s1s1 228Gi 14Gi 16Gi 48% 502068 168288000 0% /
devfs 201Ki 201Ki 0Bi 100% 694 0 100% /dev
/dev/disk3s6 228Gi 24Ki 16Gi 1% 0 168288000 0% /System/Volumes/VM
/dev/disk3s2 228Gi 407Mi 16Gi 3% 1120 168288000 0% /System/Volumes/Preboot
/dev/disk3s4 228Gi 6.9Mi 16Gi 1% 41 168288000 0% /System/Volumes/Update
/dev/disk1s2 500Mi 6.0Mi 482Mi 2% 1 4933840 0% /System/Volumes/xarts
/dev/disk1s1 500Mi 7.2Mi 482Mi 2% 25 4933840 0% /System/Volumes/iSCPreboot
/dev/disk1s3 500Mi 252Ki 482Mi 1% 36 4933840 0% /System/Volumes/Hardware
/dev/disk3s5 228Gi 197Gi 16Gi 93% 5820788 168288000 3% /System/Volumes/Data
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home
du -sh /Users
output:
89G /Users
diskutil apfs list
output:
APFS Containers (3 found)
|
+-- Container disk3 EC457189-DB50-4DC3-889A-5C3D3463A588
====================================================
APFS Container Reference: disk3
Size (Capacity Ceiling): 245107195904 B (245.1 GB)
Capacity In Use By Volumes: 227875799040 B (227.9 GB) (93.0% used)
Capacity Not Allocated: 17231396864 B (17.2 GB) (7.0% free)
[...]
+-> Volume disk3s5 482393B0-579F-4948-A2AB-DE38985B1C8C
| ---------------------------------------------------
| APFS Volume Disk (Role): disk3s5 (Data)
| Name: Data (Case-insensitive)
| Mount Point: /System/Volumes/Data
| Capacity Consumed: 211086553088 B (211.1 GB)
| Sealed: No
| FileVault: No (Encrypted at rest)
Disk Utility snapshot list shows nothing:
I've confirmed that the space is actually limited by running dd if=/dev/zero of=zeros status=progress
and confirming that it only takes a few GB to run out.
This new machine is a Jenkins build slave and, other than some utility installation and cloning of the (large) repository, has no extraneous files such as photos/videos.
What's taking so much space?
[EDIT] There's been some useful information from the questions asked that I think is relevant:
- Disk Utility and
df
say that only 17 GB are free - "About this mac" says that 99.54 GB are available
- 82.44 GB of space is marked as "Reclaimable" by Disk utility
- Time Machine/snapshotting is not active
- Rebooting does not reclaim the space, and
diskutil secureErase freespace 0 /System/Volumes/Data/
spits outError with secure disk erase: Secure erase by writing a run of bytes to an APFS Volume makes no sense due to its possibly-unbounded size (-69489)
Here is "About this mac" claiming that there's more space available:
The question could be better-phrased at this point to be "How can I reclaim the space marked as purgable?
du
/ncdu
was enough of scanning? There was the expected usage of ~100 GB. There's nothing to suggest 200 GB of usage anywhere.