Where can I find storage integrity (write/read) test tools?
up vote
0
down vote
favorite
|
I am in need of tools to verify data integrity of local harddrives, usb-drives, etc. I am looking for a solution 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.) I am not looking for
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
either, since it seems very slow, and I don't know what it exactly writes, and if it considers wear-leveling on flash media. There is a program named F3 oss.digirati.com.br/f3/ that needs to be compiled. Designed after h2testw, the concept sounds interesting, I'd just rather have it a pre-packaged binary.
storage flash-memory testing
|
|||
| show 1 more comment
|
1 Answer
up vote
1
down vote
|
The following script creates a random file (around 100M) in shared memory, calculates its checksum, then copy it to the given block device several times so that the whole device is filled with copies of the random data, while reading it again and calculating its checksum to check if it does match the original one. It produces output like:
It requires dd, blockdev, cut, sha1sum, /dev/urandom and /dev/shm. It requires access to the device (usually root). This has been tested on Linux 2.6.3x. It is slow. You can modify it to do several passes or to do all writing then all checking or wait sometime before checking (a "fade" test).
|
||||||||
add a comment |
|
Your Answer
Sign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
required, but not shown
|
By posting your answer, you agree to the privacy policy and terms of service.
badblocks
seems unbelievably slow. Maybe something that writes a random block of xMB over and over, then verifies each copy via md5? no idea if that would be practical... – Mr. Bash May 3 '12 at 19:14