! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
No auto-unmounting of optical discs
Status:
RESOLVED: DUPLICATE
Product:
Thunar-vfs
Component:
General

Comments

Description i80and 2007-10-07 13:29:05 CEST
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
Comment 1 Tino Keitel 2007-10-15 13:55:59 CEST
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
Comment 2 Benedikt Meurer editbugs 2007-11-28 19:23:32 CET
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?
Comment 3 i80and 2007-11-29 03:07:31 CET
(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.
Comment 4 David Baggerman 2007-12-15 13:31:17 CET
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.
Comment 5 i80and 2008-01-07 14:34:24 CET
(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.
Comment 6 Nick Schermer editbugs 2009-10-09 19:08:57 CEST
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 ***

Bug #3593

Reported by:
i80and
Reported on: 2007-10-07
Last modified on: 2010-11-07

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Version:
unspecified

Attachments

hal-device command output (5.54 KB, text/plain)
2007-12-15 13:31 CET , David Baggerman
no flags

Additional information