A long time ago, there was a program called Spinrite put out by the Gibson Company which would check every byte on a hard drive, writing and rewriting it. I'm looking for something similar, I still have spinrite, but it only works for PATA drives not SATA. I bought a used laptop, and it has a couple of times done something WEIRD. I have lost some data (nothing important committed here yet) but can't tell exactly what happened.
Once it wouldn't boot up, and advised me to run fsck, which I did and fixed some lost inodes. But it has been running just fine for several days now, still I'm not sure if I had a temporary glitch, or it's ready to bite me in the backside.
Is there a program for linux preferably in the repos that can check the health of a hard drive.