[Bug 57958] Re: KDE 3.5.4 mounting using HAL gives "unknown error occured"
f.hackenberger at chello.at
Thu Sep 7 10:22:40 UTC 2006
I digged a little deeper and found out that the "unknown error" is the error message returned by the DBUS method call. I have tried to imitate KDE () and used dbus-send to send an Unmount message to hal. Here is the command (the id of the device is of course specific to my device):
$ dbus-send --system --print-reply --type=method_call --dest='org.freedesktop.Hal' '/org/freedesktop/Hal/devices/volume_uuid_4457_59A1' 'org.freedesktop.Hal.Device.Volume.Unmount' array:string:''
If the hal-system-storage-mount and the hal-system-storage-unmount hal
script is present and the device was mounted using the media io slave
(or pmount-hal, which even works without the hal-system-storage-mount
script), then the call succeeds. If the hal-system-storage-unmount
script is missing, the command returns "unknown error". This leads to
the conclusion, that the scripts have to be included in the hal package.
But even if these scripts are there, unmounting using the media io slave
still does not work.
Could someone please confirm this bug?
Here is the code from KDE (search for "QString HALBackend::unmount(const QString &_udi)")
KDE 3.5.4 mounting using HAL gives "unknown error occured"
More information about the kubuntu-bugs