-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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