From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Tue, 20 Jul 2004 14:45:33 +0000 Subject: Re: Some strange configuration behaviour using USB mass storage Message-Id: <20040720144533.GA16481@beaverton.ibm.com> List-Id: References: <20040717192950.GA24198@csbd.org> In-Reply-To: <20040717192950.GA24198@csbd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Jul 17, 2004 at 12:29:50PM -0700, Alexander Poquet wrote: > At any rate, I naively wrote the following rule: > BUS="scsi", SYSFS{vendor}="Slimtype", SYSFS{model}="COMBO LSC-24082K", NAME="%k", SYMLINK="cdrom dvd", OWNER="root", GROUP="cdrom", MODE="0660" Both the sg and sr use the above rule, but the sg one is applied last, overriding what you really wanted. Try adding KERNEL="sr*" to the above. > I restarted udev and it dutifully created cdrom and dvd links, pointing > to /dev/sg0. A character device. Unmountable. In restrospect, the > fact that all that information came from the second "block" output by > udevinfo should have rung a few bells. > > Unfortunately, the actual block device, sr0, has essentially no features > that uniquely distinguish it, making it a poor candidate for a simple > persistant rule. So I wrote the following hack, weird-hack.sh: I don't understand the above comment, it has the vendor and model as in the rule above, and is sr compared to sg. -- Patrick Mansfield ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ 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