Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kikeenrique/72757bf538822ba127fde4ba3dcf080b to your computer and use it in GitHub Desktop.
Save kikeenrique/72757bf538822ba127fde4ba3dcf080b to your computer and use it in GitHub Desktop.
Clearing "purgeable" space on macOS High Sierra (e.g. before installing Windows 10 using BootCamp)
# 1. Check for any local time machine snapshots
tmutil listlocalsnapshots /
# 2. Ask time machine to free 100 GBs of local snapshots. Third parameter '1' probably means high priority (found that somewhere on the internet)
tmutil thinlocalsnapshots / 100000000000 1
# 3. Make sure that only a `(dataless)` snapshot exists
tmutil listlocalsnapshots /
# 4. List all mounted volumes and find the one mounted on '/' (probably '/dev/disk1s1')
df -h
# 5. Free space on the volume mounted on '/', e.g.:
diskutil secureErase freespace 0 /dev/disk1s1
# If this still does not work, disable automatic time machine backups and try steps 2. and 5. again...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment