Laptop is displaying hard disk error message during startup.

During startup my laptop Hp compact Presario CQ62 has been displaying an error message “smart hard disk error”. The smart hard disk check usually displays a message during startup that it has detected an imminent failure.
What could be the possible cause of this problem and how can I diagnosis it?
