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?
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?
# 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.
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.