I know I can use Disk Utility to secure erase a disk.
My question is: I have a disk half empty. I would like to know if there's a way to secure erase the empty part of the disk. I mean, an app/command that can identify those empty sectors of the disk and give them a secure erase treatment.
thanks.
diskutil secureErase freespace level device
. Seeman diskutil
for what the parameters mean. - Unformatted disks can be overwritten with random data withdiskutil randomDisk [times] device
or zeroes withdiskutil zeroDisk device
or just use good olddd
. – MacLemon Sep 29 '12 at 18:42