revlis.nl
Stash of notes about OSS, OSes, virtualization, dev hobby projects &c
March 19, 2012 — 12:27
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.