- Boot into any kind of Linux
- Run hdparm -I /dev/sda where /dev/sda is the device to be wiped
- At the end of the output, look for this:
Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase
- If you see frozen, this process will not work. Try putting the system to sleep and then waking it up again, then run the above command again. If it says NOT frozen, then you’re good to go.
- Run this command to set the password
sudo hdparm --user-master u --security-set-pass Password /dev/sda
Bold text is a password you create.
- As long as you don’t see SECURITY_SET_PASS: Input/output error, it worked.
time hdparm --user-master u --security-erase Password /dev/sda
to start the process.
- Once it’s done, you’ll see the time listed afterwards, i.e.
Run gparted and make sure there are no partitions listed to be certain that the erasure was successful.