HAL should not mount all UMS volumes with sync option

Tassilo Horn heimdall at uni-koblenz.de
Fri Aug 11 08:53:13 PDT 2006


Hello, 
 
Since my latest update (which mainly brought KDE 3.5.4) my rsync-backups
to my external USB hard disc (300 GB) are extremely slow, because if I
mount it (via KDE's volume manager which works with pmount and HAL) the
sync mount option is used.

,----[ Output of `mount' ]
| /dev/sda1 on /media/disk type reiser4 (rw,noexec,nosuid,nodev,sync)
`----

I found two solutions on the net, but they don't work for me. In both I
had to create a *.fdi file under /usr/share/hal/fdi/95userpolicy/.

Number one from [1]:
 
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="ISO-8859-1"?> 
<deviceinfo version="0.2"> 
  <device> 
    <match key="block.is_volume" bool="true"> 
      <match key="volume.fsusage" string="filesystem"> 
        <match key="volume.uuid" 
               string="82b7ce1a-63fe-433c-ad55-ede63ede855e"> 
          <merge key="volume.policy.desired_mount_point" 
                 type="string">TrekStor300GB</merge> 
          <merge key="volume.policy.mount_option.sync" 
                 type="bool">false</merge> 
        </match> 
      </match> 
    </match> 
  </device> 
</deviceinfo>
--8<---------------cut here---------------end--------------->8---
 
The volume.uuid should be correct. I got it from lshal where I searched
for the mounted device (/dev/sda1). But after restarting HAL the volume
is still mounted with sync option and the new mount point is not
adopted, too.

The second solution is taken from [2] suggests this *.fdi file: 

--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="ISO-8859-1"?> 
<deviceinfo version="0.2"> 
  <device> 
    <match key="@block.storage_device:storage.bus" string="usb"> 
      <merge key="volume.policy.mount_option.sync" 
             type="bool">false</merge> 
    </match> 
  </device> 
</deviceinfo>
--8<---------------cut here---------------end--------------->8---

It has no effect, too. 
 
That's what I use:
  - hal-0.5.7
  - dbus-0.62 
  - KDE-3.5.4 
  - pmount-0.9.11 

Any pointers are highly appreciated. 
 
Much thanks in advance, 
Tassilo

Footnotes: 
[1] http://gentoo-wiki.com/HOWTO_iPod_Shuffle
[2] http://de.opensuse.org/SDB:Automatisches_Mounten_ohne_sync-Option
-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_



More information about the hal mailing list