In need of shell scripts / bash commands to verify data integrity of local harddrives, usb-drives, etc, ...
Like the famous www.heise.de/download/h2testw; or something that is at least common within repositories. (h2testw writes a specific datastring over and over onto the medium, then reads it again to verify if it was written correctly and displays write/read time/speed.)
dd if=/dev/random of=/dev/sdx bs=1k && dd if=/dev/sdx of=/dev/null bs=1k
since it won't verify if everything was written correctly. It is only a test if read/write is successful to the device.
So far, I'm not too happy with
badblocks -w -v /dev/sdx1
either, since it seems rather slow and I don't know what it exactly writes, and if it considers wear-leveling on flash media.
There is also a program named F3 http://oss.digirati.com.br/f3/ that needs to be compiled. Designed after h2testw, the concept sounds interesting, i'd just rather have it as a ready to go bash script.