Disk utility free space doesn't match Apple > About this Mac > Storage [duplicate]

Solution 1:

Another option to flush purgeable disk space is to manually create empty disk images, either from Disk Utility (with Cmd+N) or from the terminal, like this:

$ hdiutil create -size 25g empty.dmg
created: /Users/enekoalonso/empty.dmg

This command takes a few seconds, using the default image parameters.

As a note, we cannot create an image larger than the free space available, but using a value close to that will trigger macOS to release a good amount of purgeable space.

This process can easily be repeated as needed, until almost all purgeable space has been released.

Solution 2:

You can create a huge file that will force macOS to clean purgeable files to free you space. Do do so, type this command in a terminal:

dd if=/dev/zero of=~/hugefile bs=15m

It will create a file called hugefile in your home folder, which you can check the size with Get Info and stop when it's big enough for you, using ControlC. Or you can simply let it run until you are out of space in the disk and things start to stop working.

This command takes a long time to allocate the memory, you can also stop it when it's 5~10GB and duplicate the file CommandD to create copies and speed up the process.

Then, you just need to delete the files, obviously.

In your case, you already have the file you want to copy, so you could split it into 50 GB chunks and copy one chunk over. Then let the system purge files and repeat. Once you have all the data over, you can combine them - adding the second file to the first, deleting the second file, etc...

  • How to merge files after using split command from terminal?

The main problem is that “purgeable” space is not one monolithic item - it is potentially local time machine or filesystem snapshots, cached data, derived data, iCloud photos at full resolution that will be downsampled as you start to get closer to no free space available.

The system will self correct if you can bring the data over in two pieces in your case, or in n-pieces in the general case.

Solution 3:

If time machine is the taking the space, than using tmutil can help. List of snapshots can be checked using:

tmutil listlocalsnapshots /

And cleanup upto 100GiB using:

tmutil thinlocalsnapshots / $((100 * 1024 * 1204 * 1024)) 4

Last two arguments are:

  • amount of space to try to reclaim (using $(( )) to calculate 100 GiB)
  • urgency, 1 is default, 4 is highest (didn't find better description)

There is a mention of tmutil in a comment, but not of thinlocalsnapshots.