The 'df' has been my tool of choice to investigate how much free space I have on my disk. But with APFS, TimeMachine local snapshots and all that, it has become unreliable.
I.e. after removing a lot of files and folders, thus freeing up 100GB, it is of course not yet freed up as it is still part of TimeMachine's local snapshots (I really wish Apple would return to us the possibility to turn local snapshots off, it plays havoc with your control over storage use and it comes with risks). Commands like tmutil deletelocalsnapshots 2019-11-23-180038
seem not to delete anything, as the local snapshot keeps being listed.
Only Storage of System Information now says there is 100GB extra free space. df
still reports the space is not free, so Storage of System Information apparently has access to underlying info that makes it report 'virtual free space'.
Deleting local snapshots doesn't do a thing, it seems:
bash-3.2# tmutil listlocalsnapshotdates
Snapshot dates for all disks:
2019-11-23-180038
2019-11-23-192007
2019-11-23-210050
2019-11-23-220637
2019-11-24-100307
2019-11-24-110637
2019-11-24-122648
2019-11-24-165006
bash-3.2# tmutil deletelocalsnapshots 2019-11-23-180038
Deleted local snapshot '2019-11-23-180038'
bash-3.2# tmutil listlocalsnapshotdates
Snapshot dates for all disks:
2019-11-23-180038
2019-11-23-192007
2019-11-23-210050
2019-11-23-220637
2019-11-24-100307
2019-11-24-110637
2019-11-24-122648
2019-11-24-165006
To be honest, I just want to be able to simply free up space and really have it freed up, not linger around in local snapshots. Is that at all possible? Why does Apple makes this simple task so incredibly hard?
tmutil thinlocalsnapshots / 9999999999 1
, df reported 30GB more free, after then deleting the last snapshot (which could be deleted successfully after thinning) it reported 70GB more free. System Information used to report 100GB more free thandf
, this is now back to 20GB.