The S.M.A.R.T. status is not a perfect measure of your hdd health but it can sometimes provide pre-failure notification. Here is how to check the S.M.A.R.T. status on Ubuntu:
Install the smartmontools using:
sudo aptitude install smartmontools
To display all the S.M.A.R.T. information for an IDE drive, run
sudo smartctl -a /dev/hda
To display all the S.M.A.R.T. information for an SATA drive, run
sudo smartctl -a -d ata /dev/sda
if the hard disc drive has S.M.A.R.T. switched off, then enable it using -s on:
sudo smartctl -s on -a -d ata /dev/sdb
help on the output:
http://en.wikipedia.org/wiki/S.M.A.R.T.#Known_ATA_S.M.A.R.T._attributes