Hi all. I'm hoping to get some help as I have been working on this for days. I have added a 4 port USB hub to my Archer A7 v5 router with the latest firmware. 24.10.5. Here is the situation... I am new to openwrt and linux.
I plugged in the hub and have a USB dongle with 2 partitions 1 swap and one for overlay. I have them setup in Luci to mount the swap at /dev/sda1 /mnt/sda1 and the overlay at /dev/sda2 /mnt/sda2.
If I then hot plug or just reboot with the second usb, hard drive and setup the 2 partitions mounting /dev/sdb1 /mnt/sdb1 and the second one as /dev/sdb2 /mnt/sdb2.. These 2 partitions will be shared with windows so they are formatted as ntfs. I GAVE UP ON GETTING NTFS TO WORK NOW USING EXT4 with DISKGenios installed in windows .) I finally get all of this to work and I do a reboot and my mounts are messed up. What was dev/sda1 becomes /dev/sdb1 etc. No matter what I do I cannot keep them from changing on a reboot. I have tried putting the devices into different ports on the hub to no avail. Not sure what to provide here but let me try. Here is Luci mount points and FSTAB with 2 drives and lsusb. So what I end up with is the wrong device connected to the mount points.
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config swap
option uuid '8becd8d3-0196-4c07-8ad3-9f4b06b2b3eb'
option enabled '0'
config mount
option target '/overlay'
option uuid '41705ab3-5fa0-418a-b6f0-3d3ad141cdc6'
option enabled '1'
config mount
option target '/mnt/sdb1'
option uuid '77cb29d7-759f-dc01-704b-29d7759fdc01'
option enabled '1'
config mount
option target '/mnt/sdb2'
option uuid 'e6bff1d8-759f-dc01-60af-f1d8759fdc01'
option enabled '1''
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
ID 1d6b:0002
|__ Port 001: Dev 002, If 0, Class=[unknown], Driver=hub/4p, 480M
ID 2109:2812
|__ Port 003: Dev 006, If 0, Class=[unknown], Driver=usb-storage, 480M
ID 1908:1320
|__ Port 004: Dev 003, If 0, Class=[unknown], Driver=usb-storage, 480M
ID 058f:6387
After
Put the image in a reply as the system would not let me imbed it.
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config swap
option uuid '8becd8d3-0196-4c07-8ad3-9f4b06b2b3eb'
option enabled '0'
config mount
option target '/overlay'
option uuid '41705ab3-5fa0-418a-b6f0-3d3ad141cdc6'
option enabled '1'
config mount
option target '/mnt/sdb1'
option uuid '77cb29d7-759f-dc01-704b-29d7759fdc01'
option enabled '1'
config mount
option target '/mnt/sdb2'
option uuid 'e6bff1d8-759f-dc01-60af-f1d8759fdc01'
option enabled '1'
root@OpenWrt:~# lsusb -vt
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
ID 1d6b:0002
|__ Port 001: Dev 002, If 0, Class=[unknown], Driver=hub/4p, 480M
ID 2109:2812
|__ Port 003: Dev 003, If 0, Class=[unknown], Driver=usb-storage, 480M
ID 1908:1320
|__ Port 004: Dev 004, If 0, Class=[unknown], Driver=usb-storage, 480M
ID 058f:6387
Thanks in advance.

