Created
December 30, 2016 10:23
-
-
Save StefanLiebenberg/ad010f80245208ef46d35bb6e39fd3d1 to your computer and use it in GitHub Desktop.
Bash script to dump filesystem with urandom data.
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 | |
i=0; | |
while [ "$(df -P . | awk 'NR==2 {print $4}')" -gt 0 ]; do | |
i=$((i+1)); | |
file=temp$i.dump; | |
echo writing $file; | |
if [ ! -e $file ]; then | |
dd if=/dev/urandom of=$file bs=1MB count=1024; | |
fi; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment