openSuse 13.2
and this might be related to my troubles with keeping a USB connected, external HDD drive, connected.
I have been hearing weird thumping sounds at a regular frequency coming from somewhere near my PC and I suspect the external drive.
Are there any utilities or commands that can report on disk failures so that I can check it ?
thanks
Hi,
you could use the smart tools, e.g.:
smartctl -a /dev/sdb
if your external drive is sdb.
Hendrik
Thank you Hendrik and this is what it says !
My word, but there is a lot of stuff there and I don’t have a clue as to if what it says is serious or not.
hexdump@Corky-PC:~> sudo smartctl -a /dev/sdd
root's password:
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.16.7-7-desktop] (SUSE RPM)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Blue (SATA)
Device Model: WDC WD5000AAKS-00TMA0
Serial Number: WD-WMAPW1200500
LU WWN Device Id: 5 0014ee 0aab5e39c
Firmware Version: 12.01C01
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 (minor revision not indicated)
Local Time is: Sat Mar 21 05:10:21 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error medium or hardware error (serious)
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
See vendor-specific Attribute list for marginal Attributes.
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: (12000) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
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: ( 150) minutes.
Conveyance self-test routine
recommended polling time: ( 6) minutes.
SCT capabilities: (0x103f) 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 0x000f 200 200 051 Pre-fail Always - 79
3 Spin_Up_Time 0x0003 182 157 021 Pre-fail Always - 5883
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 151
5 Reallocated_Sector_Ct 0x0033 178 178 140 Pre-fail Always - 175
7 Seek_Error_Rate 0x000e 200 200 051 Old_age Always - 0
9 Power_On_Hours 0x0032 027 027 000 Old_age Always - 53944
10 Spin_Retry_Count 0x0012 100 100 051 Old_age Always - 1
11 Calibration_Retry_Count 0x0012 100 253 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 91
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 113
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 137
194 Temperature_Celsius 0x0022 127 087 000 Old_age Always - 23
196 Reallocated_Event_Count 0x0032 026 026 000 Old_age Always - 174
197 Current_Pending_Sector 0x0012 195 193 000 Old_age Always - 471
198 Offline_Uncorrectable 0x0010 200 193 000 Old_age Offline - 2
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 064 001 051 Old_age Offline In_the_past 9134
SMART Error Log Version: 1
ATA Error Count: 1432 (device log contains only the most recent five errors)
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 1432 occurred at disk power-on lifetime: 53754 hours (2239 days + 18 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
-- -- -- -- -- -- --
40 51 08 f0 5c ec 40 Error: UNC 8 sectors at LBA = 0x00ec5cf0 = 15490288
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 03 08 f0 5c ec 00 00 2d+12:14:03.895 READ DMA EXT
25 03 08 e8 5c ec 00 00 2d+12:14:03.894 READ DMA EXT
25 03 08 e0 5c ec 00 00 2d+12:14:03.893 READ DMA EXT
25 03 08 d8 5c ec 00 00 2d+12:14:03.892 READ DMA EXT
25 03 08 d0 5c ec 00 00 2d+12:14:03.891 READ DMA EXT
Error 1431 occurred at disk power-on lifetime: 53754 hours (2239 days + 18 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
-- -- -- -- -- -- --
01 51 08 f8 fb e0 40 Error: AMNF 8 sectors at LBA = 0x00e0fbf8 = 14744568
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 03 08 f8 fb e0 00 00 2d+12:12:49.133 READ DMA EXT
25 03 08 f8 fb e0 00 00 2d+12:12:46.637 READ DMA EXT
25 03 08 f0 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
25 03 08 e8 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
25 03 08 e0 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
Error 1430 occurred at disk power-on lifetime: 53754 hours (2239 days + 18 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
-- -- -- -- -- -- --
01 51 08 f8 fb e0 40 Error: AMNF 8 sectors at LBA = 0x00e0fbf8 = 14744568
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 03 08 f8 fb e0 00 00 2d+12:12:46.637 READ DMA EXT
25 03 08 f0 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
25 03 08 e8 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
25 03 08 e0 fb e0 00 00 2d+12:12:46.636 READ DMA EXT
25 03 08 d8 fb e0 00 00 2d+12:12:46.635 READ DMA EXT
Error 1429 occurred at disk power-on lifetime: 53754 hours (2239 days + 18 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
-- -- -- -- -- -- --
01 51 08 38 1d e0 40 Error: AMNF 8 sectors at LBA = 0x00e01d38 = 14687544
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 03 08 38 1d e0 00 00 2d+12:12:37.809 READ DMA EXT
25 03 08 30 1d e0 00 00 2d+12:12:37.809 READ DMA EXT
25 03 08 28 1d e0 00 00 2d+12:12:37.807 READ DMA EXT
25 03 08 20 1d e0 00 00 2d+12:12:37.807 READ DMA EXT
25 03 08 18 1d e0 00 00 2d+12:12:37.806 READ DMA EXT
Error 1428 occurred at disk power-on lifetime: 53754 hours (2239 days + 18 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
-- -- -- -- -- -- --
01 51 08 d0 11 e0 40 Error: AMNF 8 sectors at LBA = 0x00e011d0 = 14684624
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 03 08 d0 11 e0 00 00 2d+12:12:32.856 READ DMA EXT
25 03 08 c8 11 e0 00 00 2d+12:12:32.856 READ DMA EXT
25 03 08 c0 11 e0 00 00 2d+12:12:32.856 READ DMA EXT
25 03 08 b8 11 e0 00 00 2d+12:12:32.855 READ DMA EXT
25 03 08 b0 11 e0 00 00 2d+12:12:32.855 READ DMA EXT
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
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.
hexdump@Corky-PC:~>
It says:
ATTENTION: Quick. If you have anything of value on this drive, get it off of here before it is too late!
On 2015-03-21 11:26, hextejas wrote:
>
> Thank you Hendrik and this is what it says !
> My word, but there is a lot of stuff there and I don’t have a clue as to
> if what it says is serious or not.
YES.
Replace disk.
> Code:
> --------------------
> 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
> 5 Reallocated_Sector_Ct 0x0033 178 178 140 Pre-fail Always - 175
That’s bad. The disk is reallocating bad sectors.
> 9 Power_On_Hours 0x0032 027 027 000 Old_age Always - 53944
Very old disk.
> 197 Current_Pending_Sector 0x0012 195 193 000 Old_age Always - 471
And that is bad.
> SMART Error Log Version: 1
…
> No self-tests have been logged. [To run self-tests, use: smartctl -t]
And you have never tested it. Don’t test it before backing it up
completely somewhere else, because your disk is very probably damaged.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))