Check how long a HDD has been used in LINUX

8,401

Solution 1

# smartctl --attributes "${disk}" | grep Power_On_Hours

Or

# smartctl -A "${disk}" | grep Power_On_Hours

Replace "${disk}" with your disk (for example /dev/sda).

You need to install smartmontools.

Solution 2

The tool is called smartctl if you are searching for CLI.

If you prefer graphical application, you can read SMART data using Disks (gnome-disks), where you navigate to your disk, click on the menu and select SMART Data and Self-tests option. You are interested in Power-On Hours row.

The gnome-disks application is part of gnome-disk-utility package in CentOS/RHEL/Fedora.

Share:
8,401

Related videos on Youtube

Ryan
Author by

Ryan

Updated on September 18, 2022

Comments

  • Ryan
    Ryan almost 2 years

    Under Linux, is it possible to check how much hours a HDD has been used? and how much hours are left for that HDD?

    So yes, how?

    • MatthewRock
      MatthewRock over 8 years
      What do you mean? What does it mean for HDD to be "used", what does it mean for HDD to have "n hours left"?
    • Ryan
      Ryan over 8 years
      I want to see/check the lifetime of my HARD DISK DRIVE .. How much hours he has spinnend AND how much hours he have left ... @MatthewRock
  • Ryan
    Ryan over 8 years
    Thanks for you answer, but the smartctl gives me a error in terminal, where can i find Disks? ( gnome-disks ) ? i.imgur.com/TCtdnM2.png
  • Jakuje
    Jakuje over 8 years
    It is not an error, but usage information, you should read if you want to use it. Just write gnome-disks into terminal.
  • Ryan
    Ryan over 8 years
    bash: gnome-disks: command not found and if i want to download : yum install gnome-disks - i get this : No package gnome-disks available. Error: Nothing to do
  • Jakuje
    Jakuje over 8 years
    sudo you install gnome-disk-utility