linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* looking for udev rules to differentiate cdrom dvd
@ 2005-11-16 21:14 Joseph Mack NA3T
  2005-11-16 23:44 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Mack NA3T @ 2005-11-16 21:14 UTC (permalink / raw)
  To: linux-hotplug


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?

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml 
Homepage http://www.austintek.com/ It's GNU/Linux!


-------------------------------------------------------
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_id\x16845&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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: looking for udev rules to differentiate cdrom dvd
  2005-11-16 21:14 looking for udev rules to differentiate cdrom dvd Joseph Mack NA3T
@ 2005-11-16 23:44 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-11-16 23:44 UTC (permalink / raw)
  To: linux-hotplug

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_id\x16845&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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-16 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 21:14 looking for udev rules to differentiate cdrom dvd Joseph Mack NA3T
2005-11-16 23:44 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).