Using the /dev/zero to erase an HDD is very slow, so I'm going to use a prepared file of 1GB with random or zeros.But how can I loop this File with dd?dd if=loopfile of /dev/sdx 
dd loop input File to output device?
dd