Stress testing hard drives

Sometimes we need to test new types of hard drives that should replace existing types in our machinery. They can be in different formats (eSATA, M2, CF, …). To ensure it’s working well we perform a stress test whereby the remaining space is filled with a tool that fills the disk completely, then verifies the data that is written and then removes the test data. This test is performed with the disk-filltest tool .

Steps

  1. Obtain the disk-filltest tool 
  2. Start the machine which you want to perform a stress test on.
  3. Make a copy to an external device of the drive you want to change. In our case this is always the data-drive.
  4. Turn off the machine.
  5. Replace the hard drive
  6. Restart the machine
  7. Optionally restore the data you made in step 3.
  8. Copy the disk-filltest tool to the drive you want to test.
  9. Put a script like the one below in the folder where you placed this tool.
  10. Launch this script to perform the test.
  11. If the script was executed successfully turn off the machine and eventually switch back to the original hardware.

Script

Example batch file which will perform 7500 cycles with a write/verify/remove -action:

for /l %%x in (1, 1, 7500) do (

echo %%x
disk-filltest.exe -u
)

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.