SMART tools can give you the health status of the drives.


smartctl is a command line utility designed to perform SMART tasks


Make sure S.M.A.R.T. support is enabled in the BIOS.


Getting Hard drive details in Linux


disk free will give you the information about space distribution


#df -h

Fdisk will show the partitions and file system types


#fdisk -l

Hard disk parameter will give you model, serial number, capabilities etc


#hdparm -I /dev/sda

Next run following command to see if your hard disks support S.M.A.R.T technology:


# smartctl -i /dev/sda

enable SMART:


# smartctl -s on -d ata /dev/sda

Run overall-health self-assessment test:


# smartctl -d ata -H /dev/sda

Start a quick offline test with


#smartctl -t offline /dev/sda

If you get errors on any of the test backup and replace the disk.


Intense short test with


#smartctl -t short /dev/sda

Extended self-test of drive


# smartctl -d ata -t long /dev/sda