Posted: . At: 3:37 PM. This was 8 years ago. Post ID: 9457
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

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.

root@neo:/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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.