Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


secure_wipe

This is an old revision of the document!


SSD - secure wipe

~~TOC~~

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

parted magic

  • Payed software, might work if above does not work.
secure_wipe.1419160780.txt.gz · Last modified: 2014/12/21 11:19 by admin