From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Drake Date: Sun, 08 Feb 2004 21:11:16 +0000 Subject: udev/hotplug success story Message-Id: <4026A5F4.1000901@reactivated.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Greg, Thought you might be interested to know that I've got my setup working great with udev controlling /dev. I'm running a gentoo based system, kernel 2.6.2-mm1, udev 016, hotplug 20040105 A few comments: With the default devfs-like config, udev correctly places a symlink to /dev/hdc as /dev/cdroms/cdrom0. With devfs, I had it setup so that I could also use /dev/dvd there. Writing a rule for udev to do that is no problem. I told it to name the device "hdc" and SYMLINK "dvd". The only thing there, is that it then overwrote the devfs-like rule, and /dev/cdroms/cdrom0 no longer existed. In the end I just added another SYMLINK to cdroms/cdrom0, but I was wondering, is there a better way - are there rules that I can pass that append SYMLINKs onto other ones? Hotplug is doing a good job of managing my usb modules. When I plug my camera in, it loads usb-storage as expected. However, it doesnt load sd_mod, meaning that no /dev/sda1 is created, and I can't access my pictures. I could easily get around this by writing a script to "modprobe sd_mod", and then adding a line to /etc/hotplug/usb.usermap. To better fit in with the purpose of hotplugging, I would think that this module should be loaded automatically after usb-storage. Is this a bug/missing-feature, or intentional? Final comment: I think that the documentation for hotplug is a little lacking. In particular, I had trouble finding out what the match_flags column in usb.usermap does, I eventually found the answer by looking through the code of usb.agent cheers, Daniel ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel