hal doesn't mount removable usb storage device when plugged in (debian)

Johannes Zellner johannes at zellner.org
Wed Nov 23 13:08:21 PST 2005


Hi,

I just tried hal (as it comes with debain unstable) but it doesn't mount
my removable usb storage device automatically when plugged in. I'd have
expected it to appear under /media/<label> but nothing is there. Hal
doesn't even create the mount root /media as I would have expected from
/usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi. Everything else
seems to be ok, after plugging in the storage device it appears corretly
in hal-device-manager. Here's the relevant lshal output:

udi = '/org/freedesktop/Hal/devices/block_0218e450-b3a3-4953-bacb-5398c1db850c'
  volume.mount_point = ''  (string)
  volume.policy.mount_option.noatime = true  (bool)
  volume.policy.mount_option.sync = false  (bool)
  volume.policy.desired_mount_point = 'my_label'  (string)
  volume.policy.mount_filesystem = 'ext3'  (string)
  volume.policy.should_mount = true  (bool)
  info.udi = '/org/freedesktop/Hal/devices/block_0218e450-b3a3-4953-bacb-5398c1db850c'  (string)
  volume.partition.msdos_part_table_type = 131  (0x83)  (int)
  volume.size = 2078311424  (0x7be08400)  (uint64)
  volume.block_size = 512  (0x200)  (int)
  volume.num_blocks = 4059202  (0x3df042)  (int)
  volume.partition.number = 1  (0x1)  (int)
  volume.is_partition = true  (bool)
  volume.is_mounted = false  (bool)
  volume.is_disc = false  (bool)
  volume.uuid = '0218e450-b3a3-4953-bacb-5398c1db850c'  (string)
  volume.label = 'my_label'  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  info.product = 'my_label'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  block.minor = 1  (0x1)  (int)
  block.major = 8  (0x8)  (int)
  info.capabilities = 'block volume'  (string)
  info.category = 'volume'  (string)
  info.parent = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  block.device = '/dev/sda1'  (string)
  block.is_volume = true  (bool)
  block.have_scanned = false  (bool)
  block.no_partitions = false  (bool)
  linux.sysfs_path_device = '/sys/block/sda/sda1'  (string)
  linux.sysfs_path = '/sys/block/sda/sda1'  (string)
  info.bus = 'block'  (string)

As you can see, volume.policy.should_mount is true, but the device isn't
mounted.

What's wrong here ? (Linux kernel 2.6.14.1, debian unstable,
lshal version 0.4.8)

Btw.: Where's some more documentation about hal? -- e.g. writing own fdi
files?

Regards,

-- 
Johannes


More information about the hal mailing list