LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > beachboy2
User Name
Password

Notices


Rate this Entry

Is my drive (HDD or SSD) about to fail?

Posted 10-26-2023 at 05:31 AM by beachboy2
Updated 10-26-2023 at 05:39 AM by beachboy2

If you have any doubts about the condition of your HDD or SSD, then first make sure that all your personal data is backed up to an external drive or elsewhere.

Next, install gsmartcontrol:

Code:
sudo apt install gsmartcontrol
If you have multiple drives, then identify the correct drive letter using:

Code:
lsblk
I recommend running the Long SMART test. This should take about 2 hours, but it may take longer depending on the size of the drive.

The Short SMART test should be ignored since it basically tells you nothing of real value.

To run the Long test on drive sda:

Code:
sudo smartctl -t long /dev/sda
The finishing time of the test will be stated.

To view the results of smartctl.log.txt:

Code:
sudo smartctl -a /dev/sda
How to interpret the SMART test results from smartctl.log.txt:

First of all, ignore this comment at the top of the SMART report, “SMART overall-health self-assessment test result: PASSED”.

Even a drive with multiple fail indicators will probably have this comment! Truly bizarre.

The following indicators should ideally be zero:

#5 Reallocated_Sector_Ct

#197 Current_Pending_Sector

#200 Multi_Zone_Error_Rate

If not, then your drive is probably in poor condition.

Below the main test report, there may be several read failures listed. These also indicate a drive which is likely to fail in the near future.
Posted in Uncategorized
Views 141 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
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