[smartmontools-support] Cannot read SMART data on Raspberry Pi, All good on Windows using different tools
Ertan Küçükoğlu
ertan at cronosmedikal.com
Tue May 28 03:53:28 CEST 2019
-----Original Message-----
From: Smartmontools-support [mailto:smartmontools-support-bounces at listi.jpberlin.de] On Behalf Of Eyal Lebedinsky
Sent: Tuesday, May 28, 2019 2:22 AM
To: smartmontools-support at listi.jpberlin.de
Subject: Re: [smartmontools-support] Cannot read SMART data on Raspberry Pi, All good on Windows using different tools
>[trimmed]
>
>You probably have the disk attached using USB and, in my experience, the USB<->SSD adapter often does not support smart too well.
>You may be able to get more results by specifying '--device=TYPE' (see smartctl manpage).
You are correct. I could start a short test and get results when I add "-d sat" parameter on top of my previous trials.
-----
root at raspberrypi:~# smartctl -d sat -a /dev/sda
smartctl 6.6 2016-05-31 r4324 [armv7l-linux-4.19.42-v7+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: CHN mSATAM3 128
Serial Number: M328CJ02260048
Firmware Version: Q1124A0
User Capacity: 128.035.676.160 bytes [128 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue May 28 04:48:30 2019 +03
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: (0x02) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Disabled.
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: ( 120) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0002) Does not save 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: ( 10) minutes.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0032 100 100 050 Old_age Always - 0
5 Reallocated_Sector_Ct 0x0032 100 100 050 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 050 Old_age Always - 805
12 Power_Cycle_Count 0x0032 100 100 050 Old_age Always - 185
160 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 0
161 Unknown_Attribute 0x0033 100 100 050 Pre-fail Always - 100
163 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 14
164 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 991
165 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 2
166 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 1
167 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 1
168 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 7000
169 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 100
175 Program_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
176 Erase_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
177 Wear_Leveling_Count 0x0032 100 100 050 Old_age Always - 0
178 Used_Rsvd_Blk_Cnt_Chip 0x0032 100 100 050 Old_age Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 050 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 050 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 050 Old_age Always - 108
194 Temperature_Celsius 0x0022 100 100 050 Old_age Always - 63
195 Hardware_ECC_Recovered 0x0032 100 100 050 Old_age Always - 0
196 Reallocated_Event_Count 0x0032 100 100 050 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 050 Old_age Always - 0
198 Offline_Uncorrectable 0x0032 100 100 050 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 050 Old_age Always - 0
232 Available_Reservd_Space 0x0032 100 100 050 Old_age Always - 100
241 Total_LBAs_Written 0x0030 100 100 050 Old_age Offline - 1155
242 Total_LBAs_Read 0x0030 100 100 050 Old_age Offline - 1251
245 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 0
SMART Error Log Version: 1
Warning: ATA error count 0 inconsistent with error log pointer 3
ATA Error Count: 0
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 -4 occurred at disk power-on lifetime: 0 hours (0 days + 0 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
-- -- -- -- -- -- --
00 00 00 00 00 00 00
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
b0 d0 01 00 4f c2 00 00 00:00:00.000 SMART READ DATA
b0 d1 01 01 4f c2 00 00 00:00:00.000 SMART READ ATTRIBUTE THRESHOLDS [OBS-4]
b0 da 00 00 4f c2 00 00 00:00:00.000 SMART RETURN STATUS
b0 d5 01 00 4f c2 00 00 00:00:00.000 SMART READ LOG
b0 d5 01 01 4f c2 00 00 00:00:00.000 SMART READ LOG
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 802 -
# 2 Short offline Completed without error 00% 802 -
Selective Self-tests/Logging not supported
root at raspberrypi:~#
-----
Would someone explain what that "Error -4" means? I cannot be sure is if reported error is something important. I do not even now what it mean.
Thanks & regards,
Ertan
More information about the Smartmontools-support
mailing list