Opened 13 days ago

Closed 11 days ago

Last modified 9 days ago

#1479 closed enhancement (worksforme)

Add support for Realtek RTL9210B USB to SATA bridge

Reported by: David Owned by:
Priority: minor Milestone:
Component: all Version: 7.2
Keywords: realtek nvme ata Cc:

Description

I just bought a Sabrent USB adapter containing the RTL9210B which supports both NVME and SATA M.2 disks. I have a SATA disk installed but I can´t read any smart data. Would it be possible to add support for this chipset? I saw another ticket, 1315, asking for added support, but then for the chipset without B, which seems only NVME.
I now get (when using smartctl -d scsi -a /dev/sdb):

smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.11.16-1-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               Sabrent
Product:              
Revision:             1.00
Compliance:           SPC-4
User Capacity:        1.000.204.886.016 bytes [1,00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LB provisioning type: not reported [LBPME=1, LBPRZ=0]
Rotation Rate:        Solid State Device
Logical Unit id:      0x3001237923792379
Serial number:        0000000000000000
Device type:          disk
Local Time is:        Wed Apr 28 17:46:12 2021 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

Device does not support Self Test logging

If I execute: smartctl -d test -a /dev/sdb I get:

/dev/sdb [USB NVMe Realtek]: Device of type 'sntrealtek' [NVMe] detected
/dev/sdb [USB NVMe Realtek]: Device of type 'sntrealtek' [NVMe] opened

Thanks in advance.

Change History (7)

comment:1 Changed 11 days ago by Christian Franke

Keywords: realtek nvme ata added
Milestone: undecided

Please try smartctl -d sat -i /dev/sdb.

comment:2 Changed 11 days ago by David

Resolution: worksforme
Status: newclosed
smartctl -d sat -i /dev/sdb

Yes, that works! Wow! I had been trying many types, must have skipped this one. Thanks a lot.

Ps. I changed it to worksforme, if that´s ok

comment:3 Changed 11 days ago by Christian Franke

Milestone: undecided

Yes, worksforme is OK.

Most regular (non-NVMe) USB -> SATA bridges support the vendor independent SCSI/ATA Translation (SAT) ATA pass-through command. It is good that the RTL9210B also supports this if a SATA M.2 SSD is connected.

comment:4 Changed 11 days ago by Christian Franke

Does the RTL9210B behave sane if -d sntrealtek (or no -d option) is used and a SATA SSD is connected?

Also applies to the opposite case: If -d sat is used and a NVMe SSD is connected?

Smartctl should print ... scsi error unsupported field in scsi command or similar. This should not trigger any device hangs or disconnects.

A sane behavior would allow to implement auto-detection of the device type. Option -d sat would be no longer needed then.

comment:5 Changed 10 days ago by David

With the SATA disk:

smartctl -d sntrealtek -a /dev/sdb
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.12.0-1-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Read NVMe Identify Controller failed: scsi error unsupported scsi opcode

I don´t have a NVMe SSD so can´t test

Btw, lsusb shows "ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter"
which is the same as the RTL9210 as I saw in the ticket 1315

comment:6 in reply to:  3 Changed 10 days ago by David

Replying to Christian Franke:

Yes, worksforme is OK.

Most regular (non-NVMe) USB -> SATA bridges support the vendor independent SCSI/ATA Translation (SAT) ATA pass-through command. It is good that the RTL9210B also supports this if a SATA M.2 SSD is connected.

Good to know. I have another USB SSD, from Crucial, the X8, but I don´t know what kind of drive is in it, except for the size, and haven´t been able to get a smart read out except some basic knowledge when using -d scsi. Is there a way to get to the smart data? It is enabled and Crucial´s windows software can read it ok, but I would like to get the info in Linux.

comment:7 Changed 9 days ago by Christian Franke

See the USB wiki page for possible -d options. The specs of the Crucial X8 suggest that it might use a USB -> NVMe (instead of SATA) bridge internally. As this is outside the scope of this ticket, feel free to create a new ticket of you could provide further information.

Note: See TracTickets for help on using tickets.