Linux check hard disk command?

I have been working with linux for a while now, but I still haven't figure out a way to check and see if a HD has failed/is failing. Does anyone knows a command to check that? I did at one point a found something, but it requires the disk to be unmounted, which was not acceptable for me, since my whole HD is partitioned as a single file system. Are there any command that doesn't require unmount? (like scandisk in windows).

Also, any other utilities for testing other system components? (network, CPU, memory?)

Thanks,

Peter

 

 

 

 

Top