I've still got a the problem with proposed enables (and upgraded). It did solve the closing when no disk was present, but when a disk was mounted it got closed right after opening. The fix thtat workes was to add
ENV{DEVTYPE}=="disk", KERNEL=="sr*", ATTR{removable}=="1", GOTO="persistent_storage_end"
in line 55 of /etc/udev/rules.d/60-persistent-storage.rules. Now it looks like this:
53 # skip unpartitioned removable media devices from drivers which do not send "change" events 54 ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end" 55 ENV{DEVTYPE}=="disk", KERNEL=="sr*", ATTR{removable}=="1", GOTO="persistent_storage_end" 56 # skip optical drives without media 57 ENV{DEVTYPE}=="disk", KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"
My drive is a (P)ATA drive from Samsung: product: DVD-ROM SH-D162D vendor: TSSTcorp
I'm on Intrepid 32bit with udev 124-9.
In the end I collapsed all three lines to
ENV{DEVTYPE}=="disk", ATTR{removable}=="1", GOTO="persistent_storage_end"
which seems to solve the problem too. (Proposed by Livid https://bugs.launchpad.net/ubuntu/+source/udev/+bug/283316/comments/49)
HTH, Michael
I've still got a the problem with proposed enables (and upgraded). It did solve the closing when no disk was present, but when a disk was mounted it got closed right after opening. The fix thtat workes was to add
ENV{DEVTYPE} =="disk" , KERNEL=="sr*", ATTR{removable} =="1", GOTO="persisten t_storage_ end"
in line 55 of /etc/udev/ rules.d/ 60-persistent- storage. rules. Now it looks like this:
53 # 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=="sr*", ATTR{removable} =="1", GOTO="persisten t_storage_ end" =="disk" , KERNEL=="sr*", ENV{ID_ CDROM_MEDIA_ TRACK_COUNT} !="?*", GOTO="persisten t_storage_ end"
54 ENV{DEVTYPE}
55 ENV{DEVTYPE}
56 # skip optical drives without media
57 ENV{DEVTYPE}
My drive is a (P)ATA drive from Samsung:
product: DVD-ROM SH-D162D
vendor: TSSTcorp
I'm on Intrepid 32bit with udev 124-9.
In the end I collapsed all three lines to
ENV{DEVTYPE} =="disk" , ATTR{removable} =="1", GOTO="persisten t_storage_ end"
which seems to solve the problem too. (Proposed by Livid https:/ /bugs.launchpad .net/ubuntu/ +source/ udev/+bug/ 283316/ comments/ 49)
HTH,
Michael