Skip to content

Instantly share code, notes, and snippets.

@ikorolev93
Created November 8, 2013 21:08
Show Gist options
  • Save ikorolev93/7377710 to your computer and use it in GitHub Desktop.
Save ikorolev93/7377710 to your computer and use it in GitHub Desktop.
Wiping /dev/sda
echo -n mem > /sys/power/state
hdparm --user-master u --security-set-pass 1 /dev/sda
hdparm --user-master u --security-erase 1 /dev/sda
hdparm -z /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment