smartctl

To check hard disk for errors, run

Here is an example of HDD with errors

To get detailed, result, run

hdd