A very good way to erase a SSD which have SED support is to change the password/key. But what to do with those that doesn't have SED support?
This article says
Fortunately it is possible to erase most SSDs, though this is closer to a “reset” than a wipe. The “ATA Secure Erase” command instructs the drive to flush all stored electrons, forcing the drive to “forget” all stored data. This command essentially resets all available blocks to the “erase” state, which is what TRIM uses for garbage collection purposes.
Question
I suppose it is something that can be done with hdparm
, so does anyone know what command that does this?
Here are the steps:
hdparm -I /dev/sdX
. If it is (usually by the BIOS), a good way to unfreeze it is to suspend the computer, and resume - then the drive gets powered up, but without BIOS.hdparm --user-master u --security-set-pass password /dev/sdX
hdparm --user-master u --security-erase password /dev/sdX
The procedure is described here in more detail: https://wiki.archlinux.org/index.php/SSD_memory_cell_clearing
Example from my drive:
So it is frozen... now I suspend... and...