os/linux/ SecurityStuff
Erasing an SSD
These steps must be performed as root
, where $device
is your device, e.g. /dev/sda
hdparm -I $device
and check device:- not frozen
- if frozen, suspend/sleep and then wake (if running ubuntu live cd, make a note of the username, e.g. ubuntu-studio, before this so that you can unlock)
- supports enhanced erase
- not frozen
- Set user password:
hdparm --user-master u --security-set-pass MrFlibble $device
- Security erase:
hdparm --user-master u --security-erase MrFlibble $device
- Check drive status
hdparm -I $device
, should benot locked
(Summarised from https://www.thomas-krenn.com/en/wiki/SSD_Secure_Erase)