From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 16 Nov 2005 23:44:28 +0000 Subject: Re: looking for udev rules to differentiate cdrom dvd Message-Id: <20051116234428.GA14126@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Nov 16, 2005 at 01:14:22PM -0800, Joseph Mack NA3T wrote: > > Thinkpad 600E, > 2.6.13, udev-062, sysfsutils-1.3.0, hotplug-2004_09_23 > > I have both a cdrom and dvd for this machine. I was hoping > to use systool and udevinfo to differentiate these two, and > allow me to set up udev rules to have /dev/cdrom or /dev/dvd > depending on which piece of hardward was in the machine. > > However both the cdrom and the dvd appear the same to > systool and udevinfo (/sys/block/hd{a,c}/...) > > Looking for alternatives, lspci doesn't see them at all, but > dmesg knows what I have. > > Should I be able to see the difference between the cdrom and > the dvd with udevinfo? No, but cdrom_id can do this for you. It's in the udev package, and most distros set this up to handle it automatically. Hope this helps, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id845&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