Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


secure_wipe

SSD - secure wipe

hdparm

  • Check if SSD is frozen. If it is, try suspend/wake or hotplug SSD. You might need a Linux ISO with suitable kernel:
    # echo -n mem > /sys/power/state
    
    # hdparm -I /dev/sdX | grep frozen
           not     frozen <-------------------- This drive is not frozen, continue.
  • If SSD is still frozen, reseat SSD power connector (be sure hotplug is enabled) or try the following.:
    # readlink /sys/block/sda
    ../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
    
    # echo 1 > /sys/block/sda/device/delete
    # echo "- - -" > /sys/class/scsi_host/host0/scan
  • Set a User Password (this password is cleared too, the exact choice does not matter).
    # hdparm --user-master u --security-set-pass fj#sz2A /dev/sdX
  • Issue the ATA Secure Erase command:
    # hdparm --user-master u --security-erase fj#sz2A /dev/sdX
secure_wipe.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1