I need to run a security erase tool on my drive
Solution 1:
If your SSD supports it, use the ATA Secure Erase
command; assuming that your drive is /dev/sda
:
- Boot
Ubuntu
from a Live DVD - Open a Terminal with Ctrl+Alt+t
- Check that your drive is not frozen:
hdparm -I /dev/sda
(look for thefrozen
ornot frozen
line) - If your device is frozen, you can try:
- Suspend and resume
- Hot replug the SATA cable (i.e. with the system loaded, unplug the SATA cable an plug it again)
- Set a user password:
hdparm --user-master u --security-set-pass <password> /dev/sda
(replace<password>
with the chosen password) - Check that security has been enabled:
hdparm -I /dev/sda
(look for theenabled
ornot enabled
line) - Issue the
Secure Erase
command:hdparm --user-master u --security-erase <password> /dev/sda
(replace<password>
with the chosen password) - Check that security has been disabled:
hdparm -I /dev/sda
(look for theenabled
ornot enabled
line)
This is the best method to wipe a SSD, since Secure Erase
runs at firmware level and has access to all the storage areas of the device, while regular software tools don't. For further reading: ATA Secure Erase - ata Wiki and SSD Data Wiping: Sanitize or Secure Erase SSDs? | Kingston Technology