Secure erase - using hdparm

HD, SSD should be connected directly to the controller, not USB bridge or hardware RAID controller.

Use live Linux CD or USB with hdparm installed. CentOS 7 does not contain it so you can install hdparm with:

yum install hdparm -y

Boot to Linux and run the following commands as root (can use sudo if needed):

fdisk -l (then determine what disk should be sanitized, sda or sdb, etc.)

hdparm -I /dev/sda (if this should be sda, command displays disk status and you can determine if the drive is frozen or not)

If it is frozen, disconnect it for a moment and then reconnect and run:

hdparm -I /dev/sda

Then set temporary password "p" to issue the secure erase command.

hdparm --user-master u --security-set-pass p /dev/sda


hdparm -I /dev/sda

to see if the security level is high.

Issue secure erase command (for drives supporting nhanced Security Erase):

hdparm --user-master u --security-erase-enhanced p /dev/sda

If it does not support use:

hdparm --user-master u --security-erase p /dev/sda

Wait an estimated amount of time.

You can run:

hdparm -I /dev/sda

just to see if secure erase command did reset the password and the security back to the default level.