440Forums  |  MacMusic.org  |  PcMusic.org  |  440tv  |  Zicos  |  AudioLexic
erase   {key13}


Erase free disk space from the command line

MacOsxHints

Thursday April 24, 2008. 04:30 PM
MacOsxHints

It is possible to use Disk Utility to erase the free space on a disk. However, I had difficulty finding a command, such as hdiutil, to do it from the command line. One advantage of doing it from the command line is that it is easier to use cron or launchd to automate the process. It turns out the solution is relatively straightforward: cat /dev/zero > /private/tmp/junk; rm /private/tmp/junk The first part of the command will keep enlarging a file with zeros until disk space runs out. After an error, the second part will delete the empty file. Lather, rinse, repeat for extra security (7-pass, 35-pass Guttman). [robg adds: I haven't tested this one...however, I'd be somewhat cautious about using it on your boot drive. Running out of space on the boot drive -- even briefly -- may cause issues. If you know more about that possibility than I do, please comment!]
possible Disk Utility erase free space disk. However difficulty find Erase free disk space from command line
Erase free disk space from the command line Read more at MacOsxHints
feeds.macosxhints.com/~r/macosxhints/recent/~3/276939582/article.php

 

 Related News 
Apple seeking NYC office space Apple seeking NYC office space
 Macworld UK 05/01/08 02 PM 
Verbatim Adds Half-Terabyte Drive to 2.5” Portable ... Verbatim Adds Half-Terabyte Drive to 2.5” Portable ...
 AppleLinks 05/01/08 07 AM 
Emailchemy 9.7 adds command line support, more Emailchemy 9.7 adds command line support, more
 MacNN 04/28/08 05 PM 
Apple Updates iMac Line Apple Updates iMac Line
 InsideMacGames 04/28/08 05 PM 
Apple updates the iMac line Apple updates the iMac line
 Mac Merc 04/28/08 04 PM 
Apple refreshes iMac line, now up to 3.06GHz Apple refreshes iMac line, now up to 3.06GHz
 AppleInsider 04/28/08 03 PM 
LaCie launches 500GB Rugged Hard Disk LaCie launches 500GB Rugged Hard Disk
 MacNN 04/22/08 08 PM 
LaCie bumps Rugged Hard Disk up to 500GB LaCie bumps Rugged Hard Disk up to 500GB
 Mac Central 04/22/08 06 PM 
Too Many /dev/disk Devices in Tiger on a G5 Too Many /dev/disk Devices in Tiger on a G5
 MacSlash 04/21/08 03 PM 
Corsair Announces High-Density Memory Line for Mac Pro De... Corsair Announces High-Density Memory Line for Mac Pro De...
 AppleLinks 04/18/08 07 AM 
Drobo Robotic Disk Array and AirPort Extreme Drobo Robotic Disk Array and AirPort Extreme
 MacDevCenter 04/16/08 01 AM 
CTIA pushes for licensed white space CTIA pushes for licensed white space
 MacNN 04/14/08 10 PM 
First Look: Data Rescue II hard disk recovery First Look: Data Rescue II hard disk recovery
 MacNN 04/13/08 11 PM 
Lenovo's Air rival to expand to full line? Lenovo's Air rival to expand to full line?
 MacNN 04/11/08 05 PM 
HermitWorks Hoping To Bring Space Trader To iPhone, iPod HermitWorks Hoping To Bring Space Trader To iPhone, iPod
 InsideMacGames 04/11/08 03 PM 
3D-Space VFS 1.9.4 Three-dimensional Launcher Now Sup... 3D-Space VFS 1.9.4 Three-dimensional Launcher Now Sup...
 AppleLinks 04/11/08 07 AM 
iPodObserver - HermitWorks Plans Space Trader for iPhone/iPod... iPodObserver - HermitWorks Plans Space Trader for iPhone/iPod...
 TheMacObserver 04/10/08 08 PM 
Remix on line your song with zvlivemix... Remix on line your song with zvlivemix...
 Mac Megasite 04/10/08 05 PM 
Apple says Time Machine over AirPort Disk is unsupported feature Apple says Time Machine over AirPort Disk is unsupported feature
 AppleInsider 04/08/08 10 PM 
Apple: Time Machine via AirPort Disk unsupported Apple: Time Machine via AirPort Disk unsupported
 Mac Daily News 04/07/08 09 PM 
Understanding Hard Disk Failure Rates Understanding Hard Disk Failure Rates
 TheMacObserver 04/07/08 07 PM 

Search

Mac Zicos
Sat October 11, 09:20 PM
erase   {key13}