How to wipe a hard drive
ATA/SATA Drive
use hdparm
command:
https://grok.lsu.edu/Article.aspx?articleid=16716
NVME Drive
use nvme
command:
http://blog.pythonaro.com/2018/05/how-to-securely-wipe-nvme-drive.html
- boot from a Ubuntu desktop live image
- run
apt update
and installnvme-cli
(may need to add additional repositories to/etc/apt/sources.list
) - put the computer to sleep for a few seconds:
systemctl suspend
- now wipe:
nvme format -s1 /dev/nvme0n1 (change to match your drive)