bug: hal doesn't always detect my partition on sd card

Daniel Winter dw at danielwinter.de
Thu May 15 16:37:55 PDT 2008


i have a problem with hal here.

It doesn't always detect the volumes on my sd card after insertion. It shows 
the sd card itself in lshal but not the volume.   But udev/kernel does create 
the /dev node for the partition. 

In about 1 of 5 tries it works. 

OS: Archlinux
Hal-Version: 0.5.11rc2
Kernel-Version: 2.6.24-ARCH 
udev-version: 119

Output from 
hald --daemon=no --verbose=yes when inserting the card (and it gets not 

[13596]: 01:13:21.001 [I] addon-storage.c:355: Checking whether device 
/dev/sr0 is locked on HAL
[13596]: 01:13:21.002 [I] addon-storage.c:363: ... device /dev/sr0 is not 
locked on HAL
01:13:21.611 [I] device.c:1894: Removing locks from ':1.5'
01:14:13.726 [I] osspec.c:241: SEQNUM=2765, ACTION=add, SUBSYSTEM=block, 
DEVPATH=/sys/block/mmcblk0, DEVNAME=/dev/mmcblk0, IFINDEX=0
01:14:13.726 [I] osspec.c:966: hal_util_find_known_parent: 
01:14:13.726 [I] blockdev.c:874: block_add: sysfs_path=/sys/block/mmcblk0 
dev=/dev/mmcblk0 is_part=0, parent=0x080c8c00
01:14:13.726 [I] blockdev.c:1245: parent_bus is NULL - wrong parent?
01:14:13.726 [W] blockdev.c:1473: Not adding device object
01:14:13.727 [I] osspec.c:241: SEQNUM=2767, ACTION=add, SUBSYSTEM=mmc, 
01:14:13.727 [I] hotplug.c:138: 
/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.1/mmc_host/mmc0/mmc0:e624 is a 
device (subsystem)
01:14:13.727 [I] osspec.c:966: hal_util_find_known_parent: 
01:14:13.727 [I] device.c:4306: add_dev: subsys=mmc 
dev= parent_dev=0x080c8c00
01:14:13.732 [I] device.c:4154: Add callouts completed 
01:14:13.732 [D] device_store.c:516: adding 0x8115dc0 to 
01:14:13.732 [I] hald.c:108: Added device to GDL; 
01:14:13.770 [I] osspec.c:241: SEQNUM=2766, ACTION=add, SUBSYSTEM=block, 
DEVPATH=/sys/block/mmcblk0/mmcblk0p1, DEVNAME=/dev/mmcblk0p1, IFINDEX=0
01:14:13.770 [I] blockdev.c:874: block_add: 
sysfs_path=/sys/block/mmcblk0/mmcblk0p1 dev=/dev/mmcblk0p1 is_part=1, 
01:14:13.770 [I] blockdev.c:970: Ignoring hotplug event - no parent
01:14:13.770 [W] blockdev.c:1473: Not adding device object
[13596]: 01:14:15.000 [I] addon-storage.c:355: Checking whether device 
/dev/sr0 is locked on HAL
[13596]: 01:14:15.001 [I] addon-storage.c:363: ... device /dev/sr0 is not 
locked on HAL
01:14:57.127 [I] device.c:1894: Removing locks from ':1.45'

If you need anything else please write me (please CC me, as I am not on the 


More information about the hal mailing list