For simple devices, you all seem to be trying too hard. Just autoload the
modules (all the ones you need) when the computer boots. Then you don't need
a) kernel hotplug support or b) any userland tools.
Once you plug in the usb device, you should be able to mount it.
The exceptions are non-mountable devices (cameras in PTP mode, for example),
where you use libusb and other libs to talk to the device directly. Then, you
might need hotplug but not to load the module (if it has already been loaded
upon startup) but rather to automagically assing proper permissions to the
current user.
So, in general, for mountable things, just load all the modules (or compile
them as Y), and once you plug in, they should work and be able to be mounted
normally. 2.6 adds, over 2.4, that you no longer need to rescan the bus. This
was a pain in the ass since I had to rmmod/insmod usb-storage with 2.4. Now,
in 2.6, this is gone. So, theoretically -and so far always for me- you can
unplug/plug anything any time you want and it will be recognized.
ml
On Friday 27 February 2004 08:57 am, Mark A. Hershberger wrote:
> Ron Johnson <ron.l.johnson@cox.net> writes:
> > What's the point of usbmgr? Modules get loaded automatically.
>
> Where do you get this information from? I admit to not being
> extremely knowledgeable about 2.6, but it seems to fly in the face of
> reason that the kernel would automagically recognise all device-types,
> classes, etc.
>
> Try hot-plugging a new device without usbmgr, hotplug, or a similar
> daemon running. And by new, I mean one that was created after your
> current kernel version. If it uses a different combination from
>
> FWIW, the incorrect USB driver is loaded by default on my laptop. I
> have to manually specify the correct driver. Which leads me to
> believe that this autoloading hasn't been fully debugged.
>
> > Also, is it "2.6-safe"? After all, it uses /proc/bus/usb.
>
> Again, I'm not familiar with 2.6 enough to know what you mean by
> this. Could you give a reference?
>
> The changelog for usbmgr contains the following note:
>
> - added for new modutils which is used on Kernel 2.5 and later.
>
> So I imagine it is.
>
> Mark.
___________________
Nolug mailing list
nolug@nolug.org
Received on 02/27/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST