LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2020, 05:50 PM   #1
snowmagician
Member
 
Registered: Sep 2016
Distribution: Kubuntu
Posts: 56

Rep: Reputation: Disabled
Post 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
 
Old 07-22-2020, 06:00 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,222
Blog Entries: 13

Rep: Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276Reputation: 4276
If you have a SMART capable disk smartctl(8) is one option.
 
Old 07-22-2020, 06:33 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Older: Coherent, MacOS, Red Hat, Big Iron IXs: AIX, Solaris, Tru64
Posts: 2,317

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
Quote:
Originally Posted by snowmagician View Post
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
check Negative egrep condition in an if condition novicunix Programming 5 02-02-2013 01:52 AM
how do I check my hard disk for errors. possible hard disk failure lgtrean Linux - Hardware 6 06-22-2011 05:06 PM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 07:44 AM
using OR condition in if condition Fond_of_Opensource Linux - Newbie 2 10-20-2006 01:34 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration