User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.6) Gecko/20070723 Iceweasel/2.0.0.6 (Debian-2.0.0.6-0etch1+lenny1) Build Identifier: When a optical disc is mounted and I attempt to remove the disc using the tray button without first unmounting the drive, I get a rather ugly HAL error that says: "Failed to eject "/org/freedesktop/Hal/devices/storage_serial_KX575U31715 Given device "/org/freedesktop/Hal/devices/storage_serial_KX575U31715" is not a volume or drive." It would be excellent if the driver were unmounted when the disc tray is opened, and if that's not desirable behavior, at least the error should be more informative. Reproducible: Always Steps to Reproduce: 1.Insert an optical disc 2.Attempt to remove disc with tray button before unmounting Actual Results: Slightly cryptic HAL error appears. Expected Results: The drive should be unmounted automatically and ejected. If this isn't optimum, then the error should be more descriptive and not name D-BUS paths. AMD64, Debian lenny
AFAIK KDE handles it this way: - the drive tray is locked while the disc is mounted - when the user presses the open/close button, a HAL event is generated - KDE handles this event by umounting the disc and then opening the tray
Same in Xfce. HAL tells Thunar to eject the device with the UDI "/org/freedesktop/Hal/devices/storage_serial_KX575U31715", but for some reason, this device does not exist in HAL. Weird. What version of HAL do you use?
(In reply to comment #2) > Same in Xfce. HAL tells Thunar to eject the device with the UDI > "/org/freedesktop/Hal/devices/storage_serial_KX575U31715", but for some reason, > this device does not exist in HAL. Weird. What version of HAL do you use? > I've switched to Fedora 8 with GNOME since I filed this bug, but I was running Debian lenny at the time, which makes it slightly tricky to pinpoint exactly what it was. But according to the Debian HAL developer information, I was probably using HAL 0.5.9.1. Sometime in the next few days I'll try and see if it works right with HAL 0.5.10.
Created attachment 1468 hal-device command output I get this as well. I'm running HAL 0.5.9.1. Pressing the eject button gives the message: Failed to eject "/org/freedesktop/Hal/devices/storage_model_ASUS_DRW_1608P3S". Given device "/org/freedesktop/Hal/devices/storage_model_ASUS_DRW_1608P3S" is not a volume or drive. I had a look at the output from running 'hal-devices', and there is a line: 6: udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DRW_1608P3S' but also: 0: udi = '/org/freedesktop/Hal/devices/volume_label_Gentoo_Linux_2007_0_x86_LiveCD' The thunar code looked like it was using exo-eject to eject the drive, so I tried it out: exo-eject -e -h '/org/freedesktop/Hal/devices/storage_model_ASUS_DRW_1608P3S' gave the same error dialog. exo-eject -e -h '/org/freedesktop/Hal/devices/volume_label_Gentoo_Linux_2007_0_x86_LiveCD' ejected the disc properly. I'll attach the hal-device output from both, in case it's useful.
(In reply to comment #3) > Sometime in the next few days I'll try and see if it works right with HAL > 0.5.10. Ok, now I'm using Slackware-current with HAL 0.5.10, and I'm still getting that same error.
Probably the same issue as in bug #2968. Please re-open if you think its not... *** This bug has been marked as a duplicate of bug 2968 ***