Enable S.M.A.R.T. for Seagate USB

Rim13

Cadet
Joined
Jun 11, 2022
Messages
3
I have Seagate Expansion portable drive 2TB (1TEAP6-500)(ST2000LM007-1R8174)

In TrueNAS-SCALE-22.02.1 I got error when system try test SMART at this drive.
I found this article. I add grub option and now for this disk SMART work.

Can I have another way to enable S.M.A.R.T. for Seagate USB?

My steps to resolve this problem:
  1. Go to System settings / shell
  2. Using dmesg | grep -E "(scsi|usb 3-)" I got that disk using uas and idVendor=0bc2, idProduct=231a
  3. In grub file config nano /etc/default/grub.d/truenas.cfg add option usb_storage.quirks=0bc2:231a: to GRUB_CMDLINE_LINUX= . Save file.
  4. Run command update-grub
  5. Restart system
  6. Then in Storage / Disks / Disks - Manual test SHORT work without error.
[ 2.317046] scsi host0: ahci
[ 2.317749] scsi host1: ahci
[ 2.640305] scsi 1:0:0:0: Direct-Access ATA Hitachi HDS72302 A800 PQ: 0 ANSI: 5
[ 3.332133] usb 3-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 3.353094] usb 3-1: New USB device found, idVendor=152d, idProduct=1576, bcdDevice=81.01
[ 3.353573] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.353984] usb 3-1: Product: USB to ATA/ATAPI Bridge
[ 3.354290] usb 3-1: Manufacturer: JMicron
[ 3.354550] usb 3-1: SerialNumber: 98000032100C
[ 4.516186] usb 3-4: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 4.537317] usb 3-4: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.12
[ 4.537860] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.538316] usb 3-4: Product: Expansion
[ 4.538597] usb 3-4: Manufacturer: Seagate
[ 4.538891] usb 3-4: SerialNumber: NAA00DVR
[ 4.696540] scsi host2: uas
[ 4.697273] scsi 2:0:0:0: Direct-Access ADATA SU 650 8101 PQ: 0 ANSI: 6
[ 4.699999] scsi host3: uas
[ 4.701486] scsi 3:0:0:0: Direct-Access Seagate Expansion 0712 PQ: 0 ANSI: 6
[ 22.621542] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 22.634205] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 22.639081] sd 3:0:0:0: Attached scsi generic sg2 type 0

GRUB_DISTRIBUTOR="TrueNAS Scale"
GRUB_CMDLINE_LINUX_DEFAULT="libata.allow_tpm=1 systemd.unified_cgroup_hierarchy=0 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1"
GRUB_SERIAL_COMMAND="serial --speed=9600 --word=8 --parity=no --stop=1"
GRUB_TERMINAL="console serial"
GRUB_CMDLINE_LINUX="console=ttyS0,9600 console=tty1 usb_storage.quirks=0bc2:231a:"

root@truenas[/dev]# smartctl -d sat -a /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.109+truenas] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Mobile HDD
Device Model: ST2000LM007-1R8174
Serial Number: NAA00DVR
LU WWN Device Id: 5 000c50 0d50b37be
Firmware Version: EB01
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
TRIM Command: Available
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 3b
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Jun 11 19:00:37 2022 MSK
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: (0x00) Offline data collection activity
was never started.
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: ( 0) seconds.
Offline data collection
capabilities: (0x71) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 324) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x3035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
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 079 064 006 Pre-fail Always - 79565927
3 Spin_Up_Time 0x0003 100 100 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 109
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 072 061 045 Pre-fail Always - 14927644
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4959 (243 12 0)
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 63
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 094 000 Old_age Always - 4295032839
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 056 046 040 Old_age Always - 44 (Min/Max 41/44)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 13
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 4093
194 Temperature_Celsius 0x0022 044 054 000 Old_age Always - 44 (0 19 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 134 (99 127 0)
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 249721802
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 4020039735
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

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% 4958 -
# 2 Short offline Completed without error 00% 4957 -

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.

2022-06-11 184838.png
2022-06-11 184738.png
 
Top