erase disk

badblocks -vs -p 2 -b 512 -t random -o badblocks.txt -w /dev/sdi
-p is number of passes, the more the better.
dd if=/dev/urandom of=/dev/sdi bs=512 conv=notrunc