This shows you the differences between two versions of the page.
| — | docu:csheet:sysadm:disks:shred_ssd [2023/03/12 19:06] (current) – created admin | ||
|---|---|---|---|
| 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 " | ||
| + | hdparm -I /dev/sdb | ||
| + | |||
| + | # if frozen, try the following: | ||
| + | systemctl suspend | ||
| + | # then, unsuspend. It should be "not frozen" | ||
| + | |||
| + | # now, erase the data | ||
| + | hdparm --security-set-pass NULL /dev/sdb # set the " | ||
| + | hdparm --security-erase NULL /dev/sda # run secure erase! | ||
| + | </ | ||
| + | |||
| + | Source: https:// | ||