Skip to content

Instantly share code, notes, and snippets.

@pykong
Last active April 26, 2020 08:51
Show Gist options
  • Save pykong/65b732fde36c921be9b5f1a5b4168742 to your computer and use it in GitHub Desktop.
Save pykong/65b732fde36c921be9b5f1a5b4168742 to your computer and use it in GitHub Desktop.

Erasing SSD

  1. Boot with a live USB stick.
  2. Get name of SSD by running lsblk
  3. Run this command:
sudo hdparm --user-master u --security-set-pass 1234 /dev/sda &&
sudo hdparm --user-master u --sanitize-crypto-scramble 1234 /dev/sda

Troubleshooting:

  • Eventually you may shneed to unfreeze drive by running:
sudo rtcwake -m disk -s 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment