Fill a device with zeros
dd if=/dev/zero of=/dev/sdb
Fill a device with 1024*10240 bytes of zeros
dd if=/dev/zero of=/dev/sdb count=10240 bs=1024
Create a random key file:
dd if=/dev/urandom of=key_file bs=1024 count=4 iflag=fullblock
Tips and Tricks
Fill a device with zeros
dd if=/dev/zero of=/dev/sdb
Fill a device with 1024*10240 bytes of zeros
dd if=/dev/zero of=/dev/sdb count=10240 bs=1024
Create a random key file:
dd if=/dev/urandom of=key_file bs=1024 count=4 iflag=fullblock