You are not logged in.

#1 2023-11-04 11:30:44

Colonel Panic
Member
Registered: 2018-11-13
Posts: 1,429

Hard disk diagnostic utilities

If you want to test the health of your hard drive but don't want to shell out the $90 or so that a copy of Gibson Research's SpinRite costs, I've been impressed by a program called Hard Disk Sentinel which I've just used. It runs from the hard drive if required and produces a listing of important information concerning the drive;

HDD Device  0: /dev/sda             
HDD Model ID : TOSHIBA DT01ACA050
HDD Serial No: 86LXA2VAS
HDD Revision : MS1OA800
HDD Size     : 476940 MB
Interface    : S-ATA Gen3, 6 Gbps
Temperature  : 32 °C
Highest Temp.: 40 °C
Health       : 100 %
Performance  : 100 %
Power on time: 442 days, 9 hours
Est. lifetime: more than 1000 days

The hard disk status is PERFECT. Problematic or weak sectors were not found and there are no spin up or data transfer errors.
No actions needed.

HDD Device  1: /dev/sdb
HDD Model ID : USB SanDisk 3.2Gen1
HDD Serial No: 01016d34ea1aaa06abdf
HDD Revision : 1.00
HDD Size     : 238559 MB
Interface    : SCSI
Temperature  : Unknown °C
Highest Temp.: Unknown °C
Health       : Unknown %
Performance  : Unknown %
Power on time:
Est. lifetime:

And also, unlike most such utilities, it has a Linux version.

https://www.hdsentinel.com/index.php

Last edited by Colonel Panic (2023-11-04 11:33:18)

Offline

#2 2023-11-04 15:23:39

Martin
Member
From: Stockholm, Sweden
Registered: 2015-10-01
Posts: 800
Website

Re: Hard disk diagnostic utilities

What about smartctl?

/Martin


"Problems worthy of attack
prove their worth by hitting back."
Piet Hein

Offline

#3 2023-11-04 18:01:28

Colonel Panic
Member
Registered: 2018-11-13
Posts: 1,429

Re: Hard disk diagnostic utilities

Hi Martin,

Hard Disk Sentinel is very succinct and also gives me all the information I really need about my hard drive.

I've tried smartctl and it is much more verbose; I almost feel I should apologise in advance for posting this;


localhost:/home/graham # smartctl --all /dev/sda
smartctl 7.2 2021-09-14 r5237 [x86_64-linux-5.14.21-150500.55.28-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, [url=http://www.smartmontools.org]www.smartmontools.org[/url]

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 3.5" DT01ACA... Desktop HDD
Device Model:     TOSHIBA DT01ACA050
Serial Number:    86LXA2VAS
LU WWN Device Id: 5 000039 feadaf7c7
Firmware Version: MS1OA800
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov  4 17:56:54 2023 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84)	Offline data collection activity
					was suspended by an interrupting command from host.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		( 3668) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 (  62) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   097   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0027   141   100   054    Pre-fail  Always       -       73
  3 Spin_Up_Time            0x0023   129   100   024    Pre-fail  Always       -       178 (Average 177)
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       1310
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002f   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   115   100   020    Pre-fail  Offline      -       34
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       10623
 10 Spin_Retry_Count        0x0033   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1305
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
185 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       65535
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       98798010368
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   068   060   000    Old_age   Always       -       32 (Min/Max 29/32)
192 Power-Off_Retract_Count 0x0032   099   099   000    Old_age   Always       -       1346
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       1346
194 Temperature_Celsius     0x0022   187   150   000    Old_age   Always       -       32 (Min/Max 14/40)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       1

SMART Error Log Version: 1
ATA Error Count: 1
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 6376 hours (265 days + 16 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 d1 2f 9b 5e 05  Error: ICRC, ABRT 209 sectors at LBA = 0x055e9b2f = 90086191

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  35 00 00 00 9b 5e e0 00      00:18:58.832  WRITE DMA EXT
  35 00 00 00 9a 5e e0 00      00:18:58.831  WRITE DMA EXT
  35 00 00 00 99 5e e0 00      00:18:58.829  WRITE DMA EXT
  35 00 00 00 98 5e e0 00      00:18:58.829  WRITE DMA EXT
  35 00 00 00 97 5e e0 00      00:18:58.828  WRITE DMA EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     10622         -
# 2  Short offline       Completed without error       00%     10576         -
# 3  Short offline       Completed without error       00%     10525         -
# 4  Short offline       Completed without error       00%     10504         -
# 5  Short offline       Completed without error       00%     10488         -
# 6  Short offline       Completed without error       00%     10486         -
# 7  Short offline       Completed without error       00%     10474         -
# 8  Short offline       Completed without error       00%     10465         -
# 9  Short offline       Completed without error       00%     10446         -
#10  Short offline       Completed without error       00%     10444         -
#11  Short offline       Completed without error       00%     10310         -
#12  Short offline       Completed without error       00%     10278         -
#13  Short offline       Completed without error       00%     10271         -
#14  Short offline       Completed without error       00%     10259         -
#15  Short offline       Completed without error       00%     10244         -
#16  Short offline       Completed without error       00%     10232         -
#17  Short offline       Completed without error       00%     10217         -
#18  Short offline       Completed without error       00%     10179         -
#19  Short offline       Completed without error       00%     10162         -
#20  Short offline       Completed without error       00%     10114         -
#21  Short offline       Completed without error       00%     10112         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

-mod edit by hhh @CPanic, I wrapped your output in code /code tags. wink

Last edited by hhh (2023-11-05 13:54:22)

Offline

#4 2023-11-06 09:13:46

Colonel Panic
Member
Registered: 2018-11-13
Posts: 1,429

Re: Hard disk diagnostic utilities

Thanks, I'll try and remember to do that myself next time.

Offline

Board footer

Powered by FluxBB