OpenWrt Forum Archive

Topic: About the USB HUB

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi?
My router connected to the HUB.The above plug two USB disk. I want them to have a fixed number.
example, port 1 sda, port 2 sdb. More should be done?



hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device number 2 using ar71xx-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new high speed USB device number 3 using ar71xx-ehci
scsi0 : usb-storage 1-1.2:1.0
usb 1-1.3: new high speed USB device number 4 using ar71xx-ehci
scsi1 : usb-storage 1-1.3:1.0
scsi 0:0:0:0: CD-ROM            USB      DISK CD          PMAP PQ: 0 ANSI: 0 CCS
scsi 0:0:0:1: Direct-Access     USB      DISK CD          PMAP PQ: 0 ANSI: 0 CCS
scsi 1:0:0:0: Direct-Access     Kingston DT Mini Fun G2   PMAP PQ: 0 ANSI: 0 CCS
sd 1:0:0:0: [sdb] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 0:0:0:1: [sda] 15187968 512-byte logical blocks: (7.77 GB/7.24 GiB)
sdb: sdb1
sd 0:0:0:1: [sda] Write Protect is off
sd 0:0:0:1: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:1: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
sd 0:0:0:1: [sda] Assuming drive cache: write through
sda:
sd 0:0:0:1: [sda] Assuming drive cache: write through
sd 0:0:0:1: [sda] Attached SCSI removable disk

Nice post! This post is about hardware hacking. I am really in need of the solution of this problem. Thanks for this post.


drug tests

(Last edited by shahanu on 23 Mar 2012, 13:54)

what type of hub are you using ? are you able to mount the 2 disks ?

I have a small usb hub that I have opened up and wanting to 'merge' that hub (I removed the plastic shell)
with the router - just need to do some testing before the creation of the frakenrouter

Hi, it's fixed using uuid on fstab, that avoid any mistake with different /dev/sdX. Standard syntax is UUID=some-uuid instead of /dev/sdx, but fstab in OpenWrt have also uuid option (I suppose that the uuid has preference if present). Regards.

The discussion might have continued from here.