SSD problem: Xiaomi Mi Router 3 Pro (R3P)

According this info below, I have wrong driver usb (SSD Kingdian 480 GB) mounted using lsusb -t:

https://openwrt.org/docs/guide-user/storage/usb-drives

6. This will output a list of device USB hub ports and connected external storage devices:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
    |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M

My config is inverted, then, my /mnt/sda1 show internal memory (overlay)

root@Openwrt_Mi_router_3Pro:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
root@Openwrt_Mi_router_3Pro:~# ls -l /dev/sd*
brw-------    1 root     root        8,   0 Dec 31  1969 /dev/sda
brw-------    1 root     root        8,   1 Dec 31  1969 /dev/sda1
root@Openwrt_Mi_router_3Pro:~# block info | grep "/dev/sd"
/dev/sda1: UUID="588481C48481A4DA" LABEL="SSD_480" TYPE="ntfs"
root@Openwrt_Mi_router_3Pro:~# uci show fstab
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.@mount[0]=mount
fstab.@mount[0].target='/mnt/sda1'
fstab.@mount[0].uuid='588481C48481A4DA'
fstab.@mount[0].enabled='0'
root@Openwrt_Mi_router_3Pro:~#

root@Openwrt_Mi_router_3Pro:~# ls -l /mnt/sda1

root@Openwrt_Mi_router_3Pro:~# block info
/dev/ubiblock0_0: UUID="f2f586a9-300f0c66-d5743748-6fe9282b" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/ubi0_1: UUID="19a485c3-60a7-4d38-add9-fc150ae442a9" VERSION="w5r0" MOUNT="/overlay" TYPE="ubifs"
/dev/sda1: UUID="588481C48481A4DA" LABEL="SSD_480" TYPE="ntfs"
root@Openwrt_Mi_router_3Pro:~#
root@Openwrt_Mi_router_3Pro:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.0M      1.0M    216.0M   0% /tmp
/dev/ubi0_1             209.1M     10.1M    194.2M   5% /overlay
overlayfs:/overlay      209.1M     10.1M    194.2M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@Openwrt_Mi_router_3Pro:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.150 xhci-hcd xHCI Host Controller
Bus 002 Device 002: ID 152d:0578 JMicron USB to ATA/ATAPI Bridge
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.150 xhci-hcd xHCI Host Controller
root@Openwrt_Mi_router_3Pro:~# dmesg | grep usb
[   13.484506] usbcore: registered new interface driver usbfs
[   13.490146] usbcore: registered new interface driver hub
[   13.495654] usbcore: registered new device driver usb
[   13.512136] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[   13.582924] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   14.763365] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[   18.130422] usb 2-1: USB controller 1e1c0000.xhci does not support streams, which are required by the UAS driver.
[   18.140728] usb 2-1: Please try an other USB controller if you wish to use UAS.
[   18.148025] usb-storage 2-1:1.0: USB Mass Storage device detected
[   18.154891] usb-storage 2-1:1.0: Quirks match for vid 152d pid 0578: 1000000
[   18.162222] scsi host0: usb-storage 2-1:1.0
[   18.167392] usbcore: registered new interface driver usb-storage
[   18.178842] usbcore: registered new interface driver uas
root@Openwrt_Mi_router_3Pro:~# ls -l /sys/block
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock0 -> ../devices/platform/1e003000.nand/mtd/mtd0/mtdblock0
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock1 -> ../devices/platform/1e003000.nand/mtd/mtd1/mtdblock1
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock2 -> ../devices/platform/1e003000.nand/mtd/mtd2/mtdblock2
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock3 -> ../devices/platform/1e003000.nand/mtd/mtd3/mtdblock3
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock4 -> ../devices/platform/1e003000.nand/mtd/mtd4/mtdblock4
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock5 -> ../devices/platform/1e003000.nand/mtd/mtd5/mtdblock5
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock6 -> ../devices/platform/1e003000.nand/mtd/mtd6/mtdblock6
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock7 -> ../devices/platform/1e003000.nand/mtd/mtd7/mtdblock7
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock8 -> ../devices/platform/1e003000.nand/mtd/mtd8/mtdblock8
lrwxrwxrwx    1 root     root             0 Oct 28 13:50 mtdblock9 -> ../devices/platform/1e003000.nand/mtd/mtd9/mtdblock9
lrwxrwxrwx    1 root     root             0 Oct 28 12:39 sda -> ../devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx    1 root     root             0 Dec 31  1969 ubiblock0_0 -> ../devices/virtual/block/ubiblock0_0
root@Openwrt_Mi_router_3Pro:~#

What's wrong?

When add some files to /mnt/sda1, I see all space in /overlay (max size 209,1 MB)

Before add files:

root@Openwrt_Mi_router_3Pro:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.0M      3.3M    213.7M   2% /tmp
/dev/ubi0_1             209.1M     23.0M    181.4M  11% /overlay
overlayfs:/overlay      209.1M     23.0M    181.4M  11% /
tmpfs                   512.0K         0    512.0K   0% /dev

After add files:

root@Openwrt_Mi_router_3Pro:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.0M      3.3M    213.7M   2% /tmp
/dev/ubi0_1             209.1M    200.4M      4.0M  98% /overlay
overlayfs:/overlay      209.1M    200.4M      4.0M  98% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@Openwrt_Mi_router_3Pro:~# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>

Sometimes, using same USB port and pcsc/smartreader, I lose the info lsusb from devices, then I need reinstall the system to get the info again.

Thanks

Two devices draw too much power from USB.

Read the guide 2 more times and run uci command to enable auto-mount.

I did the steps, but wrong device:

block detect | uci import fstab
uci set fstab.@mount[-1].enabled='1'
uci commit fstab
uci set fstab.@global[0].check_fs='1'
uci commit fstab
uci show fstab
root@Openwrt_Mi_router_3Pro:/mnt# uci show fstab
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='1'
fstab.@mount[0]=mount
fstab.@mount[0].target='/mnt/sda1'
fstab.@mount[0].uuid='588481C48481A4DA'
fstab.@mount[0].enabled='1'
root@Openwrt_Mi_router_3Pro:/mnt#

Same problem: /mnt/sda1 show as /overlay

Somethings wrong when show this command (inverted):

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

Why this

Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M

I see from lsusb Bus 02. Port1? Correct is Bus 01.Port 1????

Maybe incorrect drivers?

You have to mount it maybe? Or you think router reads your intent from your eyes?

What do you see the picture posted before about mount points?

UUID: 588481c48481a4da (/dev/sda1, 447.13 GiB) /mnt/sda1 auto (ntfs) defaults

What is in system log? ntfs often becomes unmountable on linux.

I don't see nothing about mount points or usb recognition....

image

root@OpenWrt_Mi_router_3Pro:~# service fstab boot
block: check_filesystem: /usr/bin/ntfsfix not found
block: No "mount.ntfs3" utility available
block: No "mount.ntfs-3g" utility available
block: No "mount.antfs" utility available
block: No "mount.ntfs" utility available
block: mounting /dev/sda1 (ntfs) as /mnt/sda1 failed (2) - No such file or directory
root@OpenWrt_Mi_router_3Pro:~#

After install ntfs-3g and ntfs-3g-utils, I have ALL OK.

Thanks

root@OpenWrt_Mi_router_3Pro:~# df -h

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   217.0M      4.2M    212.8M   2% /tmp
/dev/ubi0_1             209.0M     21.7M    182.6M  11% /overlay
overlayfs:/overlay      209.0M     21.7M    182.6M  11% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               447.1G    531.7M    446.6G   0% /mnt/sda1
root@OpenWrt_Mi_router_3Pro:~#

Need add this info about NTFS systems.

Or put clickable cherries across wiki page so you focus till the last command?

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