Opened 6 years ago

Last modified 21 months ago

#971 closed defect

UAS support for smartmontools — at Initial Version

Reported by: tgape Owned by:
Priority: minor Milestone:
Component: all Version: 6.6
Keywords: uas linux Cc:

Description

I have a 3 TB Seagate Expansion portable USB 3.0 hard disk:
https://usb-ids.gowdy.us/read/UD/0bc2/231a

, model should be STEA3000400 (as found in an XML file which came inside the hard disk when I bought it)
with the suffix SRD0NF1 I guess (from the sticker in the back of the hard disk)

With UAS enabled I can see info with -d scsi (-d sat{,12} doesn't work), but SMART info is not available:

# smartctl -d scsi -i /dev/sdb

smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.14.15-1-ARCH] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

START OF INFORMATION SECTION

Vendor: Seagate
Product: Expansion
Revision: 0708
Compliance: SPC-4
User Capacity: 3,000,592,981,504 bytes [3.00 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is fully provisioned
Logical Unit id: 0xXXXXXXXX
Serial number: XXXXXXXX
Device type: disk
Local Time is: Sun Jan 28 11:28:14 2018 WET
SMART support is: Unavailable - device lacks SMART capability.

If I blacklist UAS, then I get from smartctl:

# smartctl -i /dev/sdb

smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.14.15-1-ARCH] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

START OF INFORMATION SECTION

Model Family: Seagate Barracuda 2.5 5400
Device Model: ST3000LM024-2AN17R
Serial Number: XXXXXXXXX (Note from me: This serial number doesn't match the serial number retrieved with -d scsi and UAS enabled! The UAS enabled serial number is the correct one from the sticker.)
LU WWN Device Id: X XXXXXX XXXXXXXXXX
Firmware Version: 0001
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5526 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Jan 28 11:26:13 2018 WET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

I wonder if it's possible to get SMART access without blacklisting UAS. I don't like the "very big device" messages I receive in dmesg and I guess the device will perform better with UAS enabled (Kernel 4.14.15-1 from Archlinux X86_64).

kern :info : [ +4.501957] usbcore: registered new interface driver usb-storage
kern :info : [ +4.470776] usb 4-1.4: new high-speed USB device number 12 using ehci-pci
kern :warn : [ +0.179453] usb 4-1.4: UAS is blacklisted for this device, using usb-storage instead
kern :info : [ +0.000009] usb-storage 4-1.4:1.0: USB Mass Storage device detected
kern :info : [ +0.000262] usb-storage 4-1.4:1.0: Quirks match for vid 0bc2 pid 231a: 800000
kern :info : [ +0.000134] scsi host7: usb-storage 4-1.4:1.0
kern :info : [ +0.574103] usbcore: registered new interface driver uas
kern :notice: [ +0.437323] scsi 7:0:0:0: Direct-Access Seagate Expansion 0708 PQ: 0 ANSI: 6
kern :notice: [ +0.022529] sd 7:0:0:0: Attached scsi generic sg2 type 0
kern :notice: [ +4.367035] sd 7:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
kern :notice: [ +0.000439] sd 7:0:0:0: [sdb] 5860533167 512-byte logical blocks: (3.00 TB/2.73 TiB)
kern :notice: [ +0.000017] sd 7:0:0:0: [sdb] 4096-byte physical blocks
kern :notice: [ +0.001065] sd 7:0:0:0: [sdb] Write Protect is off
kern :debug : [ +0.000006] sd 7:0:0:0: [sdb] Mode Sense: 47 00 00 08
kern :notice: [ +0.001162] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
kern :notice: [ +0.001110] sd 7:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
kern :notice: [ +0.072621] sd 7:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
kern :notice: [ +0.002571] sd 7:0:0:0: [sdb] Attached SCSI disk

And just in case:
# lsusb -v -d 0bc2:231a
Bus 004 Device 010: ID 0bc2:231a Seagate RSS LLC Expansion Portable
Device Descriptor:

bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bc2 Seagate RSS LLC
idProduct 0x231a Expansion Portable
bcdDevice 7.08
iManufacturer 1 Seagate
iProduct 2 Expansion
iSerial 3 XXXXXXXX
bNumConfigurations 1
Configuration Descriptor:

bLength 9
bDescriptorType 2
wTotalLength 85
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80

(Bus Powered)

MaxPower 500mA
Interface Descriptor:

bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0

Change History (0)

Note: See TracTickets for help on using tickets.