USB 3 SSD mounting as USB 2

I have a M.2 to USB 3.1 adaptor that I leave plugged into my PC but when I boot with it attached it shows up as USB 2 but if I pull it out and reattach it it will mount as USB 3, I have tried the drive with both the onboard USB 3 ports and a PCIE USB 3 card with the same results. Does anyone have any ideas or suggestions for this?

@3vilg3nius Hi and welcome to the Forum :smile:
Maybe disable USB Legacy support in the system BIOS?

I have an nvme USB device, it pops up as uas driver and 3.0 speed…

lsusb | grep NVME
Bus 004 Device 002: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter

usb-devices
T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=0bda ProdID=9210 Rev=20.01
S:  Manufacturer=SSK
S:  Product=SSK Storage
...
I:  If#= 0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=uas
...

Thanks for the idea but no change to the drives behaviour.

Bus 003 Device 002: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter

@3vilg3nius So you device is the same as mine…

Maybe journalctl might indicate something further, for example;

journalctl -b | grep "/dev/sdb"

May 19 06:55:14 grover smartd[1320]: Device: /dev/sdb [USB NVMe Realtek], opened
May 19 06:55:14 grover smartd[1320]: Device: /dev/sdb [USB NVMe Realtek], SPCC M.2 PCIe SSD, S/N:AA000000000001000162, FW:T0918A0L, 256 GB
May 19 06:55:14 grover smartd[1320]: Device: /dev/sdb [USB NVMe Realtek], is SMART capable. Adding to "monitor" list.
May 19 06:55:14 grover smartd[1320]: Device: /dev/sdb [USB NVMe Realtek], state read from /var/lib/smartmontools/smartd.SPCC_M_2_PCIe_SSD-AA000000000001000162.nvme.state
May 19 06:55:14 grover smartd[1320]: Device: /dev/sdb [USB NVMe Realtek], state written to /var/lib/smartmontools/smartd.SPCC_M_2_PCIe_SSD-AA000000000001000162.nvme.state
May 19 06:55:31 grover udisksd[2152]: Mounted /dev/sdb1 at /run/media/username/f6c22b3a-06dd-4e1a-b7a8-3e032135b4e3 on behalf of uid 1000

Check journal for messages from usb subsystem:

3400G:~ # journalctl --since 8:09:30 _KERNEL_SUBSYSTEM=usb
May 20 08:09:54 3400G kernel: usb 2-4: USB disconnect, device number 2
May 20 08:09:58 3400G kernel: usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd
May 20 08:09:58 3400G kernel: usb 2-4: New USB device found, idVendor=1058, idProduct=1078, bcdDevice=10.65
May 20 08:09:58 3400G kernel: usb 2-4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
May 20 08:09:58 3400G kernel: usb 2-4: Product: Elements 1078
May 20 08:09:58 3400G kernel: usb 2-4: Manufacturer: Western Digital
May 20 08:09:58 3400G kernel: usb 2-4: SerialNumber: 575844314133364E38365032
May 20 08:09:58 3400G kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
3400G:~ # 

I have just got a different NVME enclosure and it is always mounting in USB 3.2 mode so I am now thinking the problem might be with the controller that the original enclosure uses.

@3vilg3nius could very well be…