Comment 135 for bug 283316

Revision history for this message
Graham Bleach (graham-launchpad) wrote :

I still have this problem after applying all the Intrepid recommended updates, including udev-124-9

ii udev 124-9 rule-based device node and kernel event mana

This is the drive I am using:

           *-cdrom
                description: DVD writer
                product: DVDRW SHW-1635S
                vendor: LITE-ON
                physical id: 0.1.0
                bus info: scsi@5:0.1.0
                logical name: /dev/cdrom
                logical name: /dev/cdrw
                logical name: /dev/dvd
                logical name: /dev/dvdrw
                logical name: /dev/scd0
                logical name: /dev/sr0
                version: YS0N
                capabilities: removable audio cd-r cd-rw dvd dvd-r
                configuration: ansiversion=5 status=ready
              *-medium
                   physical id: 0
                   logical name: /dev/cdrom

If the drive is empty when I eject it will then stay open, if the drive has a disc in when I eject, it will immediately close. Problem occurs no matter how I eject (using the button, right clicking on the desktop icon, or typing eject with any of the device names shown above).

However, making this change followed by sudo kill -HUP $(pidof udevd) seems to do the trick:

--- backups/60-persistent-storage.rules 2009-01-25 19:14:33.000000000 +0000
+++ /etc/udev/rules.d/60-persistent-storage.rules 2009-01-25 19:14:45.000000000 +0000
@@ -51,7 +51,7 @@
 ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"

 # skip unpartitioned removable media devices from drivers which do not send "change" events
-ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
+ENV{DEVTYPE}=="disk", KERNEL=="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
 # skip optical drives without media
 ENV{DEVTYPE}=="disk", KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"