[Solved][Xiaomi Mi R 3G] uasp external usb hard disk drive

Hello,

I just bought an external box for my hard disk, problem is that it works in uasp, impossible to see it in /dev/sd*.

root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M

I wanted to know if this solution would be applicable with openwrt?

 echo options usb-storage quirks=[**ID of HDD**] | sudo tee /etc/modprobe.d/blacklist_uas_357d.conf
 sudo update-initramfs -u

Original topic : https://unix.stackexchange.com/questions/239782/connection-problem-with-usb3-external-storage-on-linux-uas-driver-problem

Disable uasp so that the disk is recognized as a simple external hdd.

And thank you in advance.

Ps : I allow myself to open another topic, a known problem, but I have not found anything conclusive.

To install support for UASP aka USB Attached SCSI (supported by many USB drives and drive enclosures, especially if USB 3.0. It enhances performance if it's supported by both the drive and the host controller in your device):

opkg install kmod-usb-storage-uas

Hey mbo2o,

I have already installed "kmod-usb-storage-uas", I didn't specify it.

If not installed, lsusb -t does not indicate anything in the driver part :

root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M

It's a known problem with the Xiaomi mi router 3G from what I've read.

I'm looking for a way to disable the uasp, so that the disk is recognized as a simple usb-storage.

Thank you for your help.

1 Like

I found a solution, so:

I edited /etc/modules.d/usb-storage

After: usb-storage, I added the line: quirks=[ID of HDD]:u, restart the routeur.

This gives: usb-storage quirks=[ID of HDD]:u

To find the[ID of HDD], use the lsusb command.

Sources : https://bbs.archlinux.org/viewtopic.php?id=204256

As a result, my uasp disk is now recognized as such:

root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
root@OpenWrt:~# ls -l /dev/sd*
brw-------    1 root     root        8,   0 Feb  7 08:39 /dev/sda
brw-------    1 root     root        8,   1 Feb  7 08:39 /dev/sda1
brw-------    1 root     root        8,   2 Feb  7 08:39 /dev/sda2
brw-------    1 root     root        8,   3 Feb  7 08:39 /dev/sda3
brw-------    1 root     root        8,   4 Feb  7 08:39 /dev/sda4
brw-------    1 root     root        8,   5 Feb  7 08:39 /dev/sda5
brw-------    1 root     root        8,   6 Feb  7 08:39 /dev/sda6
brw-------    1 root     root        8,   7 Feb  7 08:39 /dev/sda7
brw-------    1 root     root        8,   8 Feb  7 08:39 /dev/sda8

It's a piece of junk, but it works.

Have a good day.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.