Badblocks

Recommended read
Checking whether a new hard drive is safe under Linux

Testing your hard drive in Linux