Wipe SSD/HDD
March 19, 2012 — 12:27

Author: silver  Category: linux other windows  Comments: Off

Linux:

First check the drive (see if erase operations are supported):

# hdparm -I /dev/X 
# hdparm --user-master u --security-set-pass Password /dev/X
# time hdparm --user-master u --security-erase Password /dev/X

or (if supported):

# time hdparm --user-master u --security-erase-enhanched Passwrd /dev/X

Works also for HDD’s.

More info:
https://ata.wiki.kernel.org/articles/a/t/a/ATA_Secure_Erase_936d.html
https://www.thomas-krenn.com/en/wiki/SSD_Secure_Erase

Alternatively boot into Parted Magic and use GUI.

Windows/DOS:

http://cmrr.ucsd.edu/people/Hughes/SecureErase.shtml