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:
# 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"
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
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
bus info: scsi@5:0.1.0
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 rules.d/ 60-persistent- storage. rules 2009-01-25 19:14:45.000000000 +0000 =="partition" , ENV{ID_PATH}=="?*", SYMLINK+ ="disk/ by-path/ $env{ID_ PATH}-part% n"
+++ /etc/udev/
@@ -51,7 +51,7 @@
ENV{DEVTYPE}
# skip unpartitioned removable media devices from drivers which do not send "change" events =="disk" , KERNEL!="sd*|sr*", ATTR{removable} =="1", GOTO="persisten t_storage_ end" =="disk" , KERNEL=="sd*|sr*", ATTR{removable} =="1", GOTO="persisten t_storage_ end" =="disk" , KERNEL=="sr*", ENV{ID_ CDROM_MEDIA_ TRACK_COUNT} !="?*", GOTO="persisten t_storage_ end"
-ENV{DEVTYPE}
+ENV{DEVTYPE}
# skip optical drives without media
ENV{DEVTYPE}