I'm running OpenWRT 18.06.2. The hard drive in question is a Seagate Portable 2TB External Hard Drive USB 3.0 (STGX2000400). I've previously run Advanced Tomato on this same router and this same drive auto-mounted and I could read/write to it from network clients.
There's no /dev/sd* devices
Installed packages:
root@OpenWrt:~# opkg list-installed | grep usb
brcmfmac-firmware-usb - 2017-09-06-a61ac5cf-1
kmod-phy-bcm-ns-usb2 - 4.14.95-1
kmod-phy-bcm-ns-usb3 - 4.14.95-1
kmod-usb-bcma - 4.14.95-1
kmod-usb-core - 4.14.95-1
kmod-usb-ehci - 4.14.95-1
kmod-usb-ledtrig-usbport - 4.14.95-1
kmod-usb-ohci - 4.14.95-1
kmod-usb-storage - 4.14.95-1
kmod-usb-storage-uas - 4.14.95-1
kmod-usb2 - 4.14.95-1
kmod-usb3 - 4.14.95-1
libusb-1.0 - 1.0.22-1
usbutils - 007-9
lsusb output:
root@OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0bc2:2343 Seagate RSS LLC
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480
If I understand the output above it seems there isn't an appropriate driver loaded for this drive.
I unplugged and then plugged back in the drive and dmesg shows the following:
[ 2487.910738] usb 4-1: USB disconnect, device number 2
[ 2504.100681] usb 4-1: new SuperSpeed USB device number 3 using xhci-hcd
[ 2504.133006] xhci-hcd 18023000.xhci: ERROR: unexpected command completion code 0x11.
[ 2504.180742] uas: probe of 4-1:1.0 failed with error -12
I have confirmed the drive still mounts properly on my linux box.
There is kmod-scsi something which reads the partition table and creates the /dev/sdXn devices. Then you also need the kmod-fs- matching the filesystem on the partition you want to use.
You could also try it in USB2 mode, either plug into the other port that is USB2 only, or plug in a USB2 hub then plug drive into the hub.
I do not. I have a fairly vanilla install. Only added Adblock, a guest WLAN, and split off two of the four wired ports to their own VLAN. It took me a lot of RTFM to get that far.
I still think it's a driver issue since this drive works on this router using different firmware.
I'm not sure I'm following you. In a previous post I showed what happened when I attached to the USB2 port on the router. I don't know what you mean by USB 2.0 cable.
Thanks mk24. Mounting manually works when drive is on USB2 port. I can create, copy, delete files. This could be a temporary work-around while I continue to research the USB3 issue.
I had block-mount loaded. Still something weird going on here but at least mounting manually from the USB2 port gives me access. Been RTFM more... I used uci to update fstab, then the drive showed up under System->Mount Points->Mount Points. I updated enabled and fs type and seem to have a usable, if somewhat slow, NAS drive now.
I've successfully setup Samba and have both my and my wife's work computers connecting properly. The primary function of this drive is to receive automatic backups from both work computers, we work from home. Additionally our main home/play computers are linux based so I also want to setup NFS so I can auto-backup pictures and videos from them. I've done quite a bit of searching and reading and haven't come up with anything promising on the USB3 front. Kind of frustrating having a fast drive that I can't get out of 1st gear with. Keeping my fingers crossed that the next stable release has some fixes that solve my USB3 problem.
I appreciate all of the comments and suggestions above.
Or, for the transfer of large amount of data (e.g. hundred of GBs), you could unmount the disk, connect it directly to the PC, do the copy then plug again.
Make sure to unmount properly to avoid data loss
service samba stop
service minidlna stop
umount /dev/sda1