Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'Erase free disk space from the command line' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Erase free disk space from the command line
Authored by: mubarak on Thu, Apr 24 2008 at 4:46PM PDT
This command does exactly what Disk Utility does. If your computer crashes during a wipe of the free space, you will find that your hard disk space is reduced. Removing the zeroed file from /tmp (if I remember correctly) will restore the disk space. Try doing it in Disk Utility and watch your disk space shrink.

As others have pointed out, some disk space is reserved for root, and therefore the chance of a crash is minute.

Thanks, robdew, for pointing out the secureErase option of diskutil. Some how I missed that. It does exactly the same thing.

[ Reply to This | # ]