Created
August 1, 2013 07:01
-
-
Save aim-up/6129033 to your computer and use it in GitHub Desktop.
This shell script will fill your hard drive with random bits, and then zeros. It will do this seven times. It works on UNIX, Linux, and Mac. Make sure to change /dev/sda1 to your desired drive. For the extra paranoid, run truecrypt afterwards and burn the password. Cheers!
This file contains hidden or 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/bash | |
echo "Beginning wipe" | |
for i in {1..7} | |
do | |
echo "Starting pass $i..." | |
dd if=/dev/urandom of=/sda1 bs=1M | |
dd if=/dev/zero of=/sda1 bs=1M | |
echo "Pass $i complete." | |
done | |
echo "Wipe complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment