Check a hard disk by reading the internal counters and sensors, SMART attributes are important.

Know if a hard drive is going to fail, before it is.

Read the article:

Hard disk testing.