#/bin/bash

counter=1
echo "This script should be run as root from the same volume as the data you are attempting to wipe out."
echo "No warranty any kind!"
echo " "
while [ $counter -le 3 ] ; do
    echo "Building a large file this takes a few seconds..."
    head -500000 /dev/urandom > fill_unused_space 
    while [ 1 ] ; do
        echo " "
        echo "Making a copy of the large file on `date`"
        cp fill_unused_space fill_unused_space`date +%s` || break 
        echo " "
        echo "Pass $counter. Display how full the file systems are:"
        df
    done
    counter=$((counter+1))
    echo " "
    echo "Deleting all the files used to fill the the file system"
    rm fill_unused_space*
done
echo " "
echo "Thank you very much!"
