User Tools

Site Tools


docu:csheet:sysadm:disks:shred_ssd

Differences

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

Link to this comparison view

docu:csheet:sysadm:disks:shred_ssd [2023/03/12 19:06] (current)
admin created
Line 1: Line 1:
 +====  Securely erase an SSD with hdparm ====
  
 +SSD drives need different way of erasing data. We will cover how to do this on Linux without proprietary software.
 +
 +<code bash>
 +# show drive Infos and lock for "frozen" state!!! shoud be not frozen/locked
 +hdparm -I /dev/sdb
 +
 +# if frozen, try the following:
 +systemctl suspend
 +# then, unsuspend. It should be "not frozen" after that
 +
 +# now, erase the data
 +hdparm --security-set-pass NULL /dev/sdb # set the "NULL" password to UNLOCK the Controller
 +hdparm --security-erase NULL /dev/sda # run secure erase!
 +</code>
 +
 +Source: https://www.linuxonlinehelp.eu/ubuntu-debian-samsung-ssd-secure-erase-with-linux/
docu/csheet/sysadm/disks/shred_ssd.txt · Last modified: 2023/03/12 19:06 by admin