using multiple USB flash devices
I'm having an issue using 2 differnet USB flash drive devices on my Slack 10 system running the 2.4.26 kernel. If I just use one device, everything works fine with it mounting as /dev/sda1 on /mnt/usb.
If I use the 2nd device (not at the same time but alternately), it says no device found at /dev/sda1. To get around this I have to become root, modprobe -r usb-storage then modprobe usb-storage, in effect, reload this module. Then it mounts fine. As long as I keep mounting/unmounting this same device, cool. However, if I go back to use the first device, I get the same error and must do the same procedure to get around it. It seems the usb-storage module doesn't handle different devices without reloading. Is there a fix for this? Or, is there a way this manual workaround process can be automated? |
I have the same problem. The second device is recognized as /dev/sdb1. This is interesting as i'm developing a package which autoconfigure the automounter (submount for now) and many other things. And i didn't find an answer to this problem.
|
I've not had any issues.
Just added /dev/sda1 and /dev/sdb1 to my fstab with the /mnt/* directory for each. No need to modprobe or any of that. :? |
I hade the same situation with memory cards in my laptop PCMCIA slot. Discovered from /var/lib/pcmcia/stab that the first card inserted into the double slot (either slot) goes on /dev/hde1 and the second on hdg1. Like sporks I just mapped /dev/hde1 to /mnt/Card1 and /dev/hdg1 to /mnt/Card2.
|
The solution is to use udev and hotplug.
In fact, you can create a symlink of a device probed by hotplug. Then, you could use this symling in /etc/fstab to mount this device without knowing the real device name /dev/sd?1 A good tutorial : http://www.reactivated.net/udevrules.php My rules : Code:
yabon@yabon | 15:34 | ~ Code:
yabon@yabon | 15:34 | ~ |
Quote:
|
Hi!
When I'm trying to use udevinfo (for one of my usb sticks (which is either sdc or sdd)), I get the following message: user@box:~# udevinfo -q path -n /dev/sdc unable to open udev database I'm using kernel-2.4.26 with slack-10.0 (udev-026-i486-1.tgz package ist installed). Could it be that the udev rules could only be used with the 2.6.x kernel? |
Quote:
|
All times are GMT -5. The time now is 06:48 PM. |