Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
Created August 9, 2019 15:22
Show Gist options
  • Save peteristhegreat/80512f4933735d6f463740a5b0b4a9a6 to your computer and use it in GitHub Desktop.
Save peteristhegreat/80512f4933735d6f463740a5b0b4a9a6 to your computer and use it in GitHub Desktop.
MacOS No space left unable to delete, unable to move to Trash, sudo rm fails

Per usual when the OS gives up you have to boot to the recovery partition, mount the problematic disk and work it from outside.

A hard shutdown was required, and held down the power button for 5+ seconds.

Right after pressing the power button, held down Cmd+R until the apple local and progress bar popped up.

After Recovery mode came into view, in Disk Utilities, mounted the "Mac Harddrive" partition.

Opened a terminal window, and cd into /Volumes/Mac Harddrive and then started stripping large files out of the downloads folder.

Removing old Parallels VMs helped. Cleaning up large movie files helped.

du -sh ./* # show folder's disk usage

du -sh ./* | sort -h

ls -lSr | tail -n 10

brew install baobab
baobab &

df -h

docker system prune

WinDirStat

CCleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment