persistent-cd does not create /dev/dvd if dvd-drive is second
Hi there!
Does anyone already has a solution how to create /dev/dvd with persistent-cd-rules, even if first cd-drive does not support dvds.
I have two ideas (but no code):
1. Use new priorities for symlinks, and add rules like this for every dvd-capable device:
ENV{ID_CDROM}="?*", ENV{ID_SERIAL}="IDE_DVD-ROM_16X_00000000000000019138", SYMLINK+="dvd", OPTIONS="link_priority=PRIO"
with decreasing priority related to $link_num.
2. Everytime adding a dvd-device, let write_cd_rules scan for a rule setting the name dvd, and adding it for this one if nothing can be found.
What do you think is better/possible/sane solution.
Matthias
Signature · 11 lines
Matthias Schwarzott (zzam) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is
Quoted 1 line · Matthias Schwarzott
What do you think is better/possible/sane solution.
AFAIK there is no sane solution, so I choose to ignore the program in Debian.
Signature · 12 lines
ciao, Marco ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: [RFC] persistent-cd does not create /dev/dvd if dvd-drive is
In reply to Matthias SchwarzottQuoted 9 lines · Matthias Schwarzott
Hi there!
Does anyone already has a solution how to create
/dev/dvdwith persistent-cd-rules, even if first cd-drive does not support dvds.I have two ideas (but no code):
1. Use new priorities for symlinks, and add rules like this for every dvd-capable device:
Quoted 7 lines
ENV{ID_CDROM}="?*", ENV{ID_SERIAL}="IDE_DVD-ROM_16X_00000000000000019138", SYMLINK+="dvd", OPTIONS="link_priority=PRIO"
with decreasing priority related to $link_num.
2. Everytime adding a dvd-device, let
write_cd_rulesscan for a rule setting the name dvd, and adding it for this one if nothing can be found.
That's basically how we do it in Mandriva. We add a "dvd" alias if none is found, and always a "dvd<index>" alias.
Please see our cdrom helper scripts here:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOURCES/udev_cdrom_helper?view=markup
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/udev/current/SOURCES/udev_persistent_lib.sh?view=markup
Regards
Signature · 11 lines
Olivier Blin - Mandriva ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel