Am 10.10.2013 19:08, schrieb Michael Biebl: > Unfortunately this will not fix any existing > /etc/udev/rules.d/70-persistent-cd.rules, and the result would most > likely be that the symlinks are then named cdrw2, dvd2 etc. > > I don't see a good way to fixup existing entries in > /etc/udev/rules.d/70-persistent-cd.rules aside from nuking the file and > letting it be recreated. But that opens another can of worms.
I updated 70-persistent-cd.rules to call write_cd_rules with by-id as parameter. This resulted in $ cat /etc/udev/rules.d/70-persistent-cd.rules # This file was automatically generated by the /lib/udev/write_cd_rules # program, run by the cd-aliases-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and set the $GENERATED variable. # DVD_RW_AD-7930H (pci-0000:00:1f.2-scsi-1:0:0:0) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1" # File-CD_Gadget (pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:2) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:2", SYMLINK+="cdrom1", ENV{GENERATED}="1" # File-CD_Gadget (pci-0000:00:1d.0-usb-0:1.2:1.0-scsi-0:0:0:2) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Linux_File-CD_Gadget_78F5FD2FAB42-0:2", SYMLINK+="cdrom2", ENV{GENERATED}="1" # Optiarc_DVD_RW_AD-7930H (pci-0000:00:1f.2-scsi-0:0:0:0) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrom3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrw3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvd3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvdrw3", ENV{GENERATED}="1" # File-CD_Gadget (pci-0000:0e:00.0-usb-0:1:1.0-scsi-0:0:0:2) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:0e:00.0-usb-0:1:1.0-scsi-0:0:0:2", SYMLINK+="cdrom4", ENV{GENERATED}="1" # File-CD_Gadget (pci-0000:0e:00.0-usb-0:1:1.0-scsi-0:0:0:2) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Linux_File-CD_Gadget_78F5FD310FB6-0:2", SYMLINK+="cdrom5", ENV{GENERATED}="1" # Optiarc_DVD_RW_AD-7930H () SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Optiarc_DVD_RW_AD-7930H", SYMLINK+="cdrom6", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Optiarc_DVD_RW_AD-7930H", SYMLINK+="cdrw6", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Optiarc_DVD_RW_AD-7930H", SYMLINK+="dvd6", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Optiarc_DVD_RW_AD-7930H", SYMLINK+="dvdrw6", ENV{GENERATED}="1" I now do have /dev/dvd6 symlinks etc., but this is obviously very ugly. The old entries (cdrom5 and older) were created with the old udev (v175). This is a huge mess and imho one more reason to just drop this feature. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature