How to wipe a hard drive

From Wiki
Revision as of 15:56, 27 May 2020 by Scott (talk | contribs) (Created page with " == ATA/SATA Drive == use <code>hdparm</code> command: https://grok.lsu.edu/Article.aspx?articleid=16716 == NVME Drive == use <code>nvme</code> command: http://blog.pyth...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 install nvme-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)