babuvenki_ay
10-24-2007, 09:17 AM
Hi,
As per hotplug project in sourceforge.net I tried to add entries in usb.usermap. I have place corresponding script file in the /etc/hotplug/usb directory. But it is not detecting the device. How to debug this .
Please do the needful.
Venkatesh
saikee
10-24-2007, 10:25 AM
Welcome to JustLinux.
What kind of USB device are you working on?
On USB storage media, be it a flash drive or a hard disk, the command "fdisk -l" is usually good enough to see it detected with a modern kernel. Unless you are using a very old kernel the USB devices should be automatically detected whenever you hotplug it, no different to a Win2k, XP or Vista.
bwkaz
10-24-2007, 06:51 PM
First, you should probably know that hotplug is deprecated. It's been entirely replaced by udev (udev can do more, can do it better, and can do it faster ;)). So you probably need to write a udev rule, not stick a script in the hotplug directory. :)
But second and third, to know what you need to put into this rule, we need to know what USB devices or interfaces your script is trying to match, and also what the script is trying to do. With that info (and perhaps a bit more), I can probably come up with a valid udev rule. (Although you may have to update your kernel and udev version, too, as some older versions of those packages don't have all the device recognition features of newer versions. So what version of both of those do you have?)