How to get comprehensive information on HDD errors on Debian.

The smartmontools package for Debian allows the user to get comprehensive hard disk information. This is useful if the hard disk drive is behaving strangely. This might mean it is failing.

Install the smartmontools package.

[email protected]:/home/jason# apt install smartmontools

Now you may check your hard disk drive for any errors.

root@neo:/home/jason# smartctl -a /dev/sda | grep Error
Error logging capability:        (0x01)	Error logging supported.
  1 Raw_Read_Error_Rate     0x000f   117   099   006    Pre-fail  Always       -       143541000
  7 Seek_Error_Rate         0x000f   077   060   030    Pre-fail  Always       -       51741880
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       190
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
SMART Error Log Version: 1
No Errors Logged

This utility will also print comprehensive HDD information.

smartctl -a /dev/sda
Smartmontools HDD info.
Smartmontools HDD info.

You may also get the temperature of the HDD with this utility.

root@neo:/home/jason# smartctl -a /dev/sda | grep Temperature
190 Airflow_Temperature_Cel 0x0022   072   050   045    Old_age   Always       -       28 (Min/Max 23/28)
194 Temperature_Celsius     0x0022   028   050   000    Old_age   Always       -       28 (0 11 0 0 0)

A very useful utility for any Linux user. This allows the gathering of useful HDD information that could indicate your disk is failing. Good to use on a Linux live disk to check a computer before purchasing it.

No comments have been made. Use this form to start the conversation :)

Leave a Reply