Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


secure_wipe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
secure_wipe [2014/12/21 11:07] – created adminsecure_wipe [2014/12/21 11:17] admin
Line 3: Line 3:
 =====SSD - secure wipe===== =====SSD - secure wipe=====
 ~~TOC~~ ~~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:<code>
 +# echo -n mem > /sys/power/state
 +
 +# hdparm -I /dev/sdX | grep frozen
 +       not     frozen <-------------------- This drive is not frozen, continue.</code>
 +  * If SSD is still frozen, reseat SSD power connector (be sure hotplug is enabled) or try the following.:<code># 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
 +</code>
 +  * Set a User Password (this password is cleared too, the exact choice does not matter). <code># hdparm --user-master u --security-set-pass fj#sz2A /dev/sdX</code>
 +  * Issue the ATA Secure Erase command:<code># hdparm --user-master u --security-erase fj#sz2A /dev/sdX</code>
 +
 +==== gparted ====
 +
secure_wipe.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1