volume.policy.desired_mount_point doesn't work

Alejandro Pérez García alejandropg at autentia.com
Fri Aug 12 00:53:28 PDT 2005


Hi all.

I have Debian unstable:

kernel 2.6.12
udev 0.065-1
hotplug 0.0.20040329-25
dbus 0.23.4-3
pmount 0.8-2
hal 0.4.8-6
KDE 3.4-1

I want to mount my iPod in /media/ipod so I added de 
file /usr/share/hal/fdi/95userpolicy:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="storage.vendor" string="Apple">
      <match key="storage.model" string="iPod">
        <merge key="storage.requires_eject" type="bool">true</merge>
        <merge key="storage.removable" type="bool">false</merge>
        <merge key="storage.media_check_enabled" type="bool">false</merge>
      </match>
    </match>
    <match key="@block.storage_device:storage.vendor" string="Apple">
      <match key="@block.storage_device:storage.model" string="iPod">
        <match key="block.is_volume" bool="true">
          <match key="volume.fsusage" string="filesystem">
            <match key="volume.partition.number" int="1">
              <merge key="volume.policy.should_mount" 
type="bool">false</merge>
            </match>
            <match key="volume.partition.number" int="2">
              <merge key="volume.policy.desired_mount_point" 
type="string">ipod</merge>
              <merge key="volume.policy.mount_option.sync" 
type="bool">true</merge>
            </match>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

(I get this file and a good article in 
http://www.kgarner.com/blog/archives/2005/01/11/fc3-hal-ipod/)


When I plug in my iPod I know hal is reading de file and match the device. I 
can see:

09:36:34.196 [I] device_info.c:1175: scan_fdi_files: Processing file 
'ipod.fdi'
09:36:34.196 [I] device_info.c:1178: *** Matched 
file /usr/share/hal/fdi/95userpolicy/ipod.fdi
09:36:34.196 [I] device_info.c:1175: scan_fdi_files: Processing file 
'preferences.fdi'
09:36:34.196 [I] linux/common.c:582: Found a .fdi file 
for /org/freedesktop/Hal/devices/block_3DAE-4D9D
09:36:34.196 [I] callout.c:318: 
Invoking /etc/hal/device.d/40-hal-hotplug-map.hal
09:36:34.198 [I] callout.c:330: Child pid 5297 for 40-hal-hotplug-map.hal
09:36:34.199 [I] callout.c:173: Child pid 5297 terminated
09:36:34.199 [I] hald.c:81: Added device to GDL; 
udi=/org/freedesktop/Hal/devices/block_3DAE-4D9D


I go to media:/ and select the iPod icon, and the system mount it 
on /media/sdb2
Why it just ignored me?

Please, anyone could help me?

Thanks a lot


-- 
Alejandro Pérez García
Dir. Implantación y Rendimiento
mailto:alejandropg at autentia.com
Tel.: 655 99 11 75
Autentia Real Business Solutions S.L.
http://www.autentia.com
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the hal mailing list