Ubuntu ata secure erase

From richud.com
Jump to: navigation, search

BIOS ATA Erase Drive

Use the drives inbuilt BIOS function to securely erase it.

  • Need BIOS setting IDE mode set to AHCI to hot plug

Read this first for full story

Example - Erase secondary drive /dev/sdb

HOT PLUG the target drive once Ubuntu is loaded so it isn't 'frozen'

1234 is the password but can be anything, don't use NULL !

sudo hdparm --security-set-pass 1234 /dev/sdb
sudo hdparm --security-erase 1234 /dev/sdb

then shutdown/reboot or unplug it - password will have been removed at end of erase.