Prob' in adding a second USB drive
Hello all,
I've got a small embedded Linux box and a USB hub connected to it. If I plug one USB drive in I can mount it just fine as /dev/sda1. When I plug a second USB drive in I can't mount it as /dev/sdb1.
I created the nodes using these commands (from the root):
mknod dev/sda b 8 0
mknod dev/sda1 b 8 1
mknod dev/sdb b 9 0
mknod dev/sdb1 b 9 1
I then added these lines to:
/dev/sda1 /mnt/flasha vfat noauto,user 0 0
/dev/sdb1 /mnt/flashb vfat noauto,user 0 0
I then created both mnt directories. I restarted the board with out the usb drives plugged in. When I plug the first one in I get this:
# hub.c: new USB device builtin.OHC-1.4, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 0128
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 2001888 512-byte hdwr sectors (1025 MB)
sda: Write Protect is off
Partition check:
sda: sda1
Plugging in the second drive:
# hub.c: new USB device builtin.OHC-1.3, assigned address 4
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: SanDisk Model: Cruzer Mini Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 1000944 512-byte hdwr sectors (512 MB)
sdb: Write Protect is off
sdb: sdb1
When I mount the first usb drive it works the command line i use is:
# mount /dev/sda1
However when I mount the second drive I get this:
# mount /dev/sdb1
mount: Mounting /dev/sdb1 on /mnt/flashb failed: No such device or address
I've tried this plugging the drives in, in the other order. I've plugged in each drive seperately and each mounts as sda1 fine.
Can someone tell me what I'm doing wrong with the sdb1 mount?
-Jim
|