Erase Drives in Linux

21 Jun

How to secure erase in Linux via terminal:

apt-get install hdparam

hdparm –user-master u –security-set-pass password123 /dev/sdX
time hdparm –user-master u –security-erase password123 /dev/sdX

Where “X” is the media.

If you just want to erase a HDD’s file system assets then:

wipefs -a /dev/sdX

Where”X” is the media.

Leave a Reply

Your email address will not be published.