In El Capitan, in the Disk Utility app, I cannot find the option to rewrite bogus data (zeros or ones) across the entire drive multiple times.
I am using a spinning rust platter disk, not an SSD.
Some googling talks about doing this via command-line tools, and imply the feature has been removed from the Disk Utility app.
But the Disk Utility Help window includes step # 4 on the Erase a volume:
To prevent the erased files from being recovered, click Security Options, use the slider to choose how many times to write over the erased data, then click OK.
Where can I find that slider?
Best Answer
The secure erase feature indeed seems to be gone (or it's a bug).
Open Terminal and enter
diskutil list
to see a list of your attached drives. In the following example, notice a pair of drives are identified:/dev/disk0
(internal) and/dev/disk2
(external) - disk1 is related with the Apple CoreStorage partition disk0s2.Unmount the disk you want to erase with (below I assume the disk idenitifer is
disk2
:Then erase the disk with:
…where you replace that word
level
with one of the following:Level 0 should be sufficient to rewrite bogus data or map out bad blocks.
If you want to erase the free space on a volume use:
Ceterum autem censeo Disk Utility 15 esse delendam.