how to check health of hard drives?

15,226

smartmontools is the package you are looking for. Using the smartctl command you could try:

sudo smartctl -a /dev/sda

Of course as mentioned below the drive needs to support SMART for information to be available, but whether it is supported/enabled will be in the output of the above command. If you look at the man page for smartctl, there are also various options for running self tests and enabling/disabling SMART etc.

Share:
15,226

Related videos on Youtube

Gilles 'SO- stop being evil'
Author by

Gilles 'SO- stop being evil'

Updated on September 18, 2022

Comments

  • Gilles 'SO- stop being evil'
    Gilles 'SO- stop being evil' over 1 year

    How do I check the health of my hard drives? I know that you can do it with system rescue, but is there a way to do it from root without booting onto system rescue?

  • Ludwig Schulze
    Ludwig Schulze about 10 years
    Please, note that through most modern HDD's include SMART, some old ones may not. There's also the issue with SSD
  • Graeme
    Graeme about 10 years
    @Braiam, what is the issue with SSD?