What do you do when you want to test a shiny new disk drive? After using dd and tar and so forth, we decided to write a more strenuous test for new drives.

This program does a random walk over the entire (raw) disk, reading a 4K block. This provides several exercises of the disk and the I/O layers. If nothing else, it makes lots of noise and heat, and the all-important blinking lights that show the boss that you're getting lots of work done.

I had a mode in place to do write-after-read, and then realized that I'd have to check and see if the device was mounted to avoid evil race condition errors, and then decided to skip the idea for now. I figure, the read-only mode is a pretty good test, at least for now.


This program operates on the raw device file, requiring root access or comparable device permissions. This is not without significant risk. The program carries no guarantees, etc, etc. If it breaks, you get the pieces.


See the header of the code. Examples: -d /dev/sdd -n 4096 -d /dev/hda

Get The Code


    Navigation Links

  • Back to code page
  • Back to home page