Disk utility write zeros

I have a 8 disk box which I want to wipe by writing zeros via disk utility... seems to be about 3hours for first disk

Is there a way of automating this so that once disk 002 is 'zeroed', disk 003 begins the process?

Posted on Jul 13, 2010 9:09 AM

Reply
4 replies

Jul 13, 2010 9:19 AM in response to DaiVernon

You can do it via a shell command, but not via the GUI.

Just open /Applications/Utilities/Terminal.app

You'll need to know the disk IDs of the appropriate disks, which you can get via diskutil list - they'll be something like disk1, disk2, etc. (just make sure you get the right numbers!

Then string together a series of diskutil command:

sudo -s
diskutil zerodisk disk2; diskutil zerodisk disk3; diskutil zerodisk disk4; exit


The first command elevates your privileges to confirm you have the rights to erase the disk (you'll need to enter your password after issuing this command). The second line is just a series of diskutil zerodisk commands, one per disk to erase.
Just repeat the diskutil zerodisk commands for each disk to erase.

Jul 18, 2010 3:28 PM in response to Camelot

+zeroDisk (Erase a disk, writing zeros to the media)+
+randomDisk (Erase a disk, writing random data to the media)+
+secureErase (Securely erase a disk or freespace on a volume)+



+randomDisk (Erase a disk, writing random data to the media)+
Is this equal to 7-pass ease in Disk utility?



+secureErase (Securely erase a disk or freespace on a volume)+
Is this equal to 35-pass ease in Disk utility?

Jul 18, 2010 3:57 PM in response to DaiVernon

Single-pass zero is sufficient for most anything - unless your site security officer or HIPAA officer tells you otherwise and requires multi-pass pattern overwrites, and if you don't have or know what an SSO or HIPPA is - then single-pass zero erasure is just fine.

As for your question, it's answered in the man page:


secureErase [freespace] level device
Securely erase a disk or freespace on a mounted volume.
Ownership of the affected disk is required.
Level should be one of the following:
o 1 - Single pass randomly erase the disk.
o 2 - US DoD 7 pass secure erase.
o 3 - Gutmann algorithm 35 pass secure erase.


If you're dealing with floppy disks or disks from the megabyte era, then positioning was a little sloppy and you could pick off data by mis-positioning the heads. These days? Barring a really valuable target, the likelihood that anyone would fund the recovery effort from a single-pass erase is unlikely.

And data in the bad blocks generally won't get zonked, regardless.

On the other hand, if you're storing anything that could lead to public embarrassment or legal action or Elvis's home telephone number or such, you might want to just slag the disk.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disk utility write zeros

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.