----- Forwarded message from Josselin Mouette <joss@xxxxxxxxxx> ----- Subject: Bug#551448: udev: Persistent CD rules not very persistent Reply-To: Josselin Mouette <joss@xxxxxxxxxx>, 551448@xxxxxxxxxxxxxxx From: Josselin Mouette <joss@xxxxxxxxxx> To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx> Package: udev Version: 146-5 Severity: normal Hi, here are the current contents of my 70-persistent-cd.rules: # _NEC_DVD_RW_ND-3540A (pci-0000:00:14.1-ide-0:1) ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1-ide-0:1", SYMLINK+="cdrom", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1-ide-0:1", SYMLINK+="cdrw", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1-ide-0:1", SYMLINK+="dvd", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1-ide-0:1", SYMLINK+="dvdrw", ENV{GENERATED}="1" # U3_Cruzer_Micro (pci-0000:00:13.5-usb-0:4:1.0-scsi-0:0:0:1) ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:13.5-usb-0:4:1.0-scsi-0:0:0:1", SYMLINK+="cdrom1", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:13.5-usb-0:4:1.0-scsi-0:0:0:1", SYMLINK+="cdrw1", ENV{GENERATED}="1" # U3_Cruzer_Micro (pci-0000:00:13.5-usb-0:4:1.0-scsi-0:0:0:1) ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="SanDisk_U3_Cruzer_Micro_0000060509007986-0:1", SYMLINK+="cdrom2", ENV{GENERATED}="1" ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="SanDisk_U3_Cruzer_Micro_0000060509007986-0:1", SYMLINK+="cdrw2", ENV{GENERATED}="1" # _NEC_DVD_RW_ND-3540A (pci-0000:00:14.1) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1", SYMLINK+="cdrom3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1", SYMLINK+="cdrw3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1", SYMLINK+="dvd3", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:14.1", SYMLINK+="dvdrw3", ENV{GENERATED}="1" I see two problems with it: * First, the SanDisk stuff has nothing to do here, since it is about a USB key, not a CD drive. However I know SanDisk does crap with their identifiers, and their keys are often recognised as CDs, even on Windoze. So this is not really serious, and the rules are harmless anyway. * The NEC drive, however, seems to have changed its ID_PATH, and a new persistence rule was generated. I don???t know whether it is possible, especially now that the problem has happened, but it would be nice if the device name could have been kept to cdrom across upgrades. Thanks for your work on udev. -- Package-specific info: -- /etc/udev/rules.d/: /etc/udev/rules.d/: total 12 lrwxrwxrwx 1 root root 19 Mar 26 2009 025_libgphoto2.rules -> ../libgphoto2.rules -rw-r--r-- 1 root root 220 Mar 27 2009 65-drbd.rules -rw-r--r-- 1 root root 1791 Sep 29 11:46 70-persistent-cd.rules -rw-r--r-- 1 root root 324 Sep 28 15:01 70-persistent-net.rules lrwxrwxrwx 1 root root 15 Mar 26 2009 z60_hdparm.rules -> ../hdparm.rules -- /sys/: /sys/dev /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event4/dev /sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input5/event5/dev /sys/devices/pci0000:00/0000:00:01.0/0000:01:05.0/drm/card0/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-0:1.0/usb_endpoint/usbdev2.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.0/0003:045E:00DB.0001/hidraw/hidraw0/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.0/input/input1/event1/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.0/usb_endpoint/usbdev2.2_ep81/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.1/0003:045E:00DB.0002/hidraw/hidraw1/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.1/input/input2/event2/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.1/usb_endpoint/usbdev2.2_ep82/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/usb_device/usbdev2.2/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/2-1/usb_endpoint/usbdev2.2_ep00/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/usb_device/usbdev2.1/dev /sys/devices/pci0000:00/0000:00:13.0/usb2/usb_endpoint/usbdev2.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.0/usbmon/usbmon2/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-0:1.0/usb_endpoint/usbdev3.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/0003:046D:C00B.0003/hidraw/hidraw2/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/input/input3/event3/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/input/input3/mouse1/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/3-1:1.0/usb_endpoint/usbdev3.2_ep81/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/usb_device/usbdev3.2/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/3-1/usb_endpoint/usbdev3.2_ep00/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/usb_device/usbdev3.1/dev /sys/devices/pci0000:00/0000:00:13.1/usb3/usb_endpoint/usbdev3.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.1/usbmon/usbmon3/dev /sys/devices/pci0000:00/0000:00:13.2/usb4/4-0:1.0/usb_endpoint/usbdev4.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.2/usb4/dev /sys/devices/pci0000:00/0000:00:13.2/usb4/usb_device/usbdev4.1/dev /sys/devices/pci0000:00/0000:00:13.2/usb4/usb_endpoint/usbdev4.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.2/usbmon/usbmon4/dev /sys/devices/pci0000:00/0000:00:13.3/usb5/5-0:1.0/usb_endpoint/usbdev5.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.3/usb5/dev /sys/devices/pci0000:00/0000:00:13.3/usb5/usb_device/usbdev5.1/dev /sys/devices/pci0000:00/0000:00:13.3/usb5/usb_endpoint/usbdev5.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.3/usbmon/usbmon5/dev /sys/devices/pci0000:00/0000:00:13.4/usb6/6-0:1.0/usb_endpoint/usbdev6.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.4/usb6/dev /sys/devices/pci0000:00/0000:00:13.4/usb6/usb_device/usbdev6.1/dev /sys/devices/pci0000:00/0000:00:13.4/usb6/usb_endpoint/usbdev6.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.4/usbmon/usbmon6/dev /sys/devices/pci0000:00/0000:00:13.5/usb1/1-0:1.0/usb_endpoint/usbdev1.1_ep81/dev /sys/devices/pci0000:00/0000:00:13.5/usb1/dev /sys/devices/pci0000:00/0000:00:13.5/usb1/usb_device/usbdev1.1/dev /sys/devices/pci0000:00/0000:00:13.5/usb1/usb_endpoint/usbdev1.1_ep00/dev /sys/devices/pci0000:00/0000:00:13.5/usbmon/usbmon1/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda1/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda2/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda3/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda4/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda5/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda6/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.0/block/hda/hda7/dev /sys/devices/pci0000:00/0000:00:14.1/ide0/0.1/block/hdb/dev /sys/devices/pci0000:00/0000:00:14.2/input/input7/event7/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/controlC0/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/hwC0D0/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/pcmC0D0c/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/pcmC0D0p/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/pcmC0D1c/dev /sys/devices/pci0000:00/0000:00:14.2/sound/card0/pcmC0D1p/dev /sys/devices/platform/floppy.0/block/fd0/dev /sys/devices/platform/pcspkr/input/input6/event6/dev /sys/devices/platform/serial8250/tty/ttyS1/dev /sys/devices/platform/serial8250/tty/ttyS2/dev /sys/devices/platform/serial8250/tty/ttyS3/dev /sys/devices/pnp0/00:03/rtc/rtc0/dev /sys/devices/pnp0/00:0c/ppdev/parport0/dev /sys/devices/pnp0/00:0c/printer/lp0/dev /sys/devices/pnp0/00:0e/tty/ttyS0/dev /sys/devices/virtual/block/ram0/dev /sys/devices/virtual/block/ram1/dev /sys/devices/virtual/block/ram10/dev /sys/devices/virtual/block/ram11/dev /sys/devices/virtual/block/ram12/dev /sys/devices/virtual/block/ram13/dev /sys/devices/virtual/block/ram14/dev /sys/devices/virtual/block/ram15/dev /sys/devices/virtual/block/ram2/dev /sys/devices/virtual/block/ram3/dev /sys/devices/virtual/block/ram4/dev /sys/devices/virtual/block/ram5/dev /sys/devices/virtual/block/ram6/dev /sys/devices/virtual/block/ram7/dev /sys/devices/virtual/block/ram8/dev /sys/devices/virtual/block/ram9/dev /sys/devices/virtual/input/input0/event0/dev /sys/devices/virtual/input/input0/mouse0/dev /sys/devices/virtual/input/mice/dev /sys/devices/virtual/mem/full/dev /sys/devices/virtual/mem/kmem/dev /sys/devices/virtual/mem/kmsg/dev /sys/devices/virtual/mem/mem/dev /sys/devices/virtual/mem/null/dev /sys/devices/virtual/mem/port/dev /sys/devices/virtual/mem/random/dev /sys/devices/virtual/mem/urandom/dev /sys/devices/virtual/mem/zero/dev /sys/devices/virtual/misc/cpu_dma_latency/dev /sys/devices/virtual/misc/fuse/dev /sys/devices/virtual/misc/hpet/dev /sys/devices/virtual/misc/mcelog/dev /sys/devices/virtual/misc/network_latency/dev /sys/devices/virtual/misc/network_throughput/dev /sys/devices/virtual/misc/psaux/dev /sys/devices/virtual/misc/snapshot/dev /sys/devices/virtual/sound/seq/dev /sys/devices/virtual/sound/timer/dev /sys/devices/virtual/tty/console/dev /sys/devices/virtual/tty/ptmx/dev /sys/devices/virtual/tty/tty/dev /sys/devices/virtual/tty/tty0/dev /sys/devices/virtual/tty/tty1/dev /sys/devices/virtual/tty/tty10/dev /sys/devices/virtual/tty/tty11/dev /sys/devices/virtual/tty/tty12/dev /sys/devices/virtual/tty/tty13/dev /sys/devices/virtual/tty/tty14/dev /sys/devices/virtual/tty/tty15/dev /sys/devices/virtual/tty/tty16/dev /sys/devices/virtual/tty/tty17/dev /sys/devices/virtual/tty/tty18/dev /sys/devices/virtual/tty/tty19/dev /sys/devices/virtual/tty/tty2/dev /sys/devices/virtual/tty/tty20/dev /sys/devices/virtual/tty/tty21/dev /sys/devices/virtual/tty/tty22/dev /sys/devices/virtual/tty/tty23/dev /sys/devices/virtual/tty/tty24/dev /sys/devices/virtual/tty/tty25/dev /sys/devices/virtual/tty/tty26/dev /sys/devices/virtual/tty/tty27/dev /sys/devices/virtual/tty/tty28/dev /sys/devices/virtual/tty/tty29/dev /sys/devices/virtual/tty/tty3/dev /sys/devices/virtual/tty/tty30/dev /sys/devices/virtual/tty/tty31/dev /sys/devices/virtual/tty/tty32/dev /sys/devices/virtual/tty/tty33/dev /sys/devices/virtual/tty/tty34/dev /sys/devices/virtual/tty/tty35/dev /sys/devices/virtual/tty/tty36/dev /sys/devices/virtual/tty/tty37/dev /sys/devices/virtual/tty/tty38/dev /sys/devices/virtual/tty/tty39/dev /sys/devices/virtual/tty/tty4/dev /sys/devices/virtual/tty/tty40/dev /sys/devices/virtual/tty/tty41/dev /sys/devices/virtual/tty/tty42/dev /sys/devices/virtual/tty/tty43/dev /sys/devices/virtual/tty/tty44/dev /sys/devices/virtual/tty/tty45/dev /sys/devices/virtual/tty/tty46/dev /sys/devices/virtual/tty/tty47/dev /sys/devices/virtual/tty/tty48/dev /sys/devices/virtual/tty/tty49/dev /sys/devices/virtual/tty/tty5/dev /sys/devices/virtual/tty/tty50/dev /sys/devices/virtual/tty/tty51/dev /sys/devices/virtual/tty/tty52/dev /sys/devices/virtual/tty/tty53/dev /sys/devices/virtual/tty/tty54/dev /sys/devices/virtual/tty/tty55/dev /sys/devices/virtual/tty/tty56/dev /sys/devices/virtual/tty/tty57/dev /sys/devices/virtual/tty/tty58/dev /sys/devices/virtual/tty/tty59/dev /sys/devices/virtual/tty/tty6/dev /sys/devices/virtual/tty/tty60/dev /sys/devices/virtual/tty/tty61/dev /sys/devices/virtual/tty/tty62/dev /sys/devices/virtual/tty/tty63/dev /sys/devices/virtual/tty/tty7/dev /sys/devices/virtual/tty/tty8/dev /sys/devices/virtual/tty/tty9/dev /sys/devices/virtual/usbmon/usbmon0/dev /sys/devices/virtual/vc/vcs/dev /sys/devices/virtual/vc/vcs1/dev /sys/devices/virtual/vc/vcs2/dev /sys/devices/virtual/vc/vcs3/dev /sys/devices/virtual/vc/vcs4/dev /sys/devices/virtual/vc/vcs5/dev /sys/devices/virtual/vc/vcs6/dev /sys/devices/virtual/vc/vcs7/dev /sys/devices/virtual/vc/vcsa/dev /sys/devices/virtual/vc/vcsa1/dev /sys/devices/virtual/vc/vcsa2/dev /sys/devices/virtual/vc/vcsa3/dev /sys/devices/virtual/vc/vcsa4/dev /sys/devices/virtual/vc/vcsa5/dev /sys/devices/virtual/vc/vcsa6/dev /sys/devices/virtual/vc/vcsa7/dev -- Kernel configuration: isapnp_init not present. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages udev depends on: ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy ii libc6 2.9-26 GNU C Library: Shared libraries ii libselinux1 2.0.85-4 SELinux runtime shared libraries ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip ii util-linux 2.16.1-3 Miscellaneous system utilities Versions of packages udev recommends: ii pciutils 1:3.1.4-1 Linux PCI Utilities ii usbutils 0.86-2 Linux USB utilities udev suggests no packages. -- debconf information: udev/new_kernel_needed: false udev/reboot_needed: -- .''`. Josselin Mouette : :' : `. `' ???I recommend you to learn English in hope that you in `- future understand things??? -- Jörg Schilling ----- End forwarded message ----- -- ciao, Marco -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html