Skip to content

Instantly share code, notes, and snippets.

@brunneis
Created February 16, 2018 22:54
Show Gist options
  • Save brunneis/b2d484ca8db08f4bc16d1460ca410cc2 to your computer and use it in GitHub Desktop.
Save brunneis/b2d484ca8db08f4bc16d1460ca410cc2 to your computer and use it in GitHub Desktop.
Secure erase (overwrite all the blocks on the device with random data three times)
#!/bin/bash
DEVICE_ID=/dev/sdx
shred -v $DEVICE_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment