On Wed, Feb 11, 2015 at 02:35:31PM -0600, Bruce Dubbs wrote:
> 
> I suspect it would be be more proper to use
> 
> sed '1d;/SYMLINK.*cdrom/ a\
> 
> KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", \
> SYMLINK+="dvd", OPTIONS+="link_priority=-100"' \
> /lib/udev/rules.d/60-cdrom_id.rules > /etc/udev/rules.d/60-cdrom_id.rules
> 
> The place to override system rules is /etc/udev/rules.d/.
> 

 I was only noting what works for me.  I do not recall our users
complaining that they were having difficulty playing DVDs.  Maybe
people today just download.

 OTOH, I suppose that making it easier for people is a good thing.

> Is there a program that detects whether an inserted disk is a cd or dvd?
> Looking at cdrom_id, it may do what we want.  Looking...
> 
> It looks like there are a variety of vars set for DVD:
> ID_CDROM_DVD
> ID_CDROM_DVD_R
> ID_CDROM_DVD_RW
> ID_CDROM_DVD_RAM
> ID_CDROM_DVD_PLUS_R
> ID_CDROM_DVD_PLUS_RW
> ID_CDROM_DVD_PLUS_R_DL
> ID_CDROM_DVD_PLUS_RW_DL
> 
> The command is ioctl(fd, CDROM_GET_CAPABILITY, NULL);  That would be driver
> dependent.  Looking there, this seems to be just a drive capability, not a
> media one.
> 
> Google says to use cdrecord to determine media type.
> 
> I'll note that the above rule works for the normal case where there is only
> one DVD device, but one would need to do some special things if there were
> multiple devices in a system.  For our purposes, that would be a manual
> task.
> 
>   -- Bruce
> 

 That looks like the sort of thing that the old example was for - I
never paid it any attention because I haven't had other than a combi
drive for many years, so maybe there was a good reason why it was
removed.  OTOH, google found it in clfs-3.0 yesterday.  But equally,
the removal of the various cd* dvd* links upstream was because in
some circumstances they symlinks went to the wrong devices.  It
looks very much as if one size does not fit all.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to