LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to check the thealth condition of the hard disk? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-check-the-thealth-condition-of-the-hard-disk-4175679189/)

snowmagician 07-22-2020 04:50 PM

Is there a way to check the thealth condition of the hard disk?
 
I use Kubuntu. Is there any way for me to tell it is time to get a new hard disk? I am aware hard disks must be replaced because they do not last forever. I better replace it before it becomes completely unusable and inaccessible

rtmistler 07-22-2020 05:00 PM

If you have a SMART capable disk smartctl(8) is one option.

rnturn 07-22-2020 05:33 PM

Quote:

Originally Posted by snowmagician (Post 6148218)
I use Kubuntu. Is there any way for me to tell it is time to get a new hard disk? I am aware hard disks must be replaced because they do not last forever. I better replace it before it becomes completely unusable and inaccessible

Yes... not forever but they can last a long time. I had a small SCSI drive (Seagate Hawk) that was ~15yo when it finally went to the big disk farm in the sky.

Try:
Code:

$ sudo smartctl --all /dev/sdX
to display the full list of parameters tracked by the SMART feature on most (if not all) disks.

A more brief report is available using:
Code:

$ sudo smartctl -l error /dev/sdX
There's a lot more information on the smartctl(8) manpage.

Note: smartctl(8) doesn't work with any USB-attached disks you're using. (Not talking about thumbdrives, BTW.)

HTH...


All times are GMT -5. The time now is 04:56 PM.