HAL problems when unmounting after physical removal of usb key
danny.kukawka at web.de
Thu Feb 8 10:24:54 PST 2007
On Thursday 08 February 2007 18:57, kareemy wrote:
> I've built my system using Linux From Scratch and
> dbus 1.0.2
> hal 0.5.8.1
> udev 104
> pmount 0.9.13
> ivman 0.6.13
> My goal is to be able to insert a usb key and have it mounted
> automatically, then remove the key and have it automatically unmounted. I
> use ivman to mount the device and then a udev rule to unmount it once its
> removed. I copied the rule from both knoppix 5.1.1 and debian. Here is my
> /etc/udev/rules.d/90-hal.rules file:
> # pass all events to the HAL daemon
> # unmount block devices when they are removed
> SUBSYSTEM=="block", ACTION=="remove", RUN+="/usr/lib/hal/hal-unmount.sh"
Is this really needed? IIRC hal umount the device automatically if the device
get removed (or not?).
> [E] addon-storage.c:423: open failed for /dev/sdb: No such file or
This problem is known and IMO there is a easy fix for this message (see
> and HAL never removes the device entry from its GDL, so when I reinsert it,
> HAL does not generate any events, so ivman cannot automatically mount it
> again. Here are links to the full debug logs from hald. The first log is
> from what I described above, the second is from when I unmount the device
> manually first then remove it to show hal operating correctly.
Also this is known (at least on openSUSE 10.2) e.g. for the case that
pam_mount mount before hal can check a crypted device:
This all looks like a ugly race and maybe some unclear states in HAL, but I
could not find the reason for the problem. Maybe this problem is not present
in current HAL git, since there changed very much in the last time. Have to
recheck with a actual HAL.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 400 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070208/c85cc6bf/hal-fix-linux-storage-addon.bin
More information about the hal