Skip to content

Instantly share code, notes, and snippets.

@AGhost-7
Last active December 23, 2019 04:44
Show Gist options
  • Save AGhost-7/66031e5bff3bcf360b0a049058419e32 to your computer and use it in GitHub Desktop.
Save AGhost-7/66031e5bff3bcf360b0a049058419e32 to your computer and use it in GitHub Desktop.
How to clear your ssd

For some reason you need to set a password to use hdparm:

hdparm --user-master u --security-set-pass PASS /dev/sdx

And then the actual command:

hdparm --user-master u --security-erase PASS /dev/sdx

After that, you can just remove the password as it will just get in the way:

hdparm --user-master m --security-disable PASS /dev/sdx

reference: https://skrilnetz.net/the-truth-about-how-to-securely-erase-a-solid-state-drive-ssd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment