Skip to content

Instantly share code, notes, and snippets.

@oceanBT
Last active February 28, 2021 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oceanBT/255c52e8a157c7d92a4154e64b204ca9 to your computer and use it in GitHub Desktop.
Save oceanBT/255c52e8a157c7d92a4154e64b204ca9 to your computer and use it in GitHub Desktop.
secure delete devices
1. find best device speed
sudo bash -c 'pv < /dev/urandom > /dev/mmcblk0'
2. override with bs from 1.
sudo dd if=/dev/urandom of=/dev/mmcblk0 status=progress bs=39M conv=fdatasync
3. format disk via UI (create partition, in any filesystem)
4. create random file on partition
sudo cat /dev/urandom > /media/user/device/random_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment