You are not logged in.

#1 2009-03-01 09:27:07

b4283
Member
Registered: 2008-11-26
Posts: 123

HAL won't mount USB storage with "flush" option.

Trying to mount a 8G vfat USB stick automatically with HAL that using "flush" option to decrease the flushing time when unmounting it.

And I've consulted the wiki HAL entry and wrote this:

    <match key="block.is_volume" bool="true">
      <match key="@block.storage_device:storage.hotpluggable" bool="true">
        <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
      </match>
      <match key="@block.storage_device:storage.removable" bool="true">
        <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
      </match>
    </match>

put it in /usr/PolicyKit/PolicyKit.conf, and restart HAL.

But it's still not working. Can anyone tell me where I do wrong?

Offline

#2 2009-03-02 21:13:07

Engelbrekt
Member
Registered: 2007-11-17
Posts: 38

Re: HAL won't mount USB storage with "flush" option.

Hi.

I think your rules should be put in:
/etc/hal/fdi/policy/20-some_name.fdi

Don't forget the XML header if you put it in a new file.

Offline

#3 2009-03-03 02:03:04

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: HAL won't mount USB storage with "flush" option.

ok, thank you.

I've been putting my setting into /etc/hal/fdi/policy/20-usbvfat.fdi
Here's its content:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
    <device>
        <!--<merge key="volume.ignore" type="bool">false</merge>-->
        <match key="volume.fstype" string="vfat">
            <merge key="volume.policy.mount_option.utf8" type="bool">true</merge>
        </match>
        <match key="storage.hotpluggable" bool="true">
            <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
        </match>
        <match key="storage.removable" bool="true">
            <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
        </match>
        <match key="@block.storage_device:storage.hotpluggable" bool="true">
            <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
        </match>
        <match key="@block.storage_device:storage.removable" bool="true">
            <merge key="volume.policy.mount_option.flush" type="bool">true</merge>
        </match>
    </device>
</deviceinfo>

(with every possible syntaxs i can find)

The fact is that I've tried putting them under /etc/hal/... and /usr/share/hal...
But none of them really work, I doubt if HAL is really reading this file or it has changed its variable names (idk...)

Offline

#4 2009-03-03 20:24:15

Engelbrekt
Member
Registered: 2007-11-17
Posts: 38

Re: HAL won't mount USB storage with "flush" option.

No it doesn't work for me either, but I think I know why!
Please check out:
http://www.linuxfromscratch.org/blfs/vi … l/hal.html
and browse down to: Changing default mount options

According to the article it is no longer possible to control mount options in .fdi files for newer versions in HAL.
That's a job for the desktop environment.
I'm using KDE 3.5 and unfortunately I can only set a limited number of options on a specific volume which is more or less useless.
The situation appears to be a bit brighter if you are a gnome user though.

Offline

#5 2009-03-04 00:33:53

b4283
Member
Registered: 2008-11-26
Posts: 123

Re: HAL won't mount USB storage with "flush" option.

WWWOW
Thank you, the answer though didn't solve my problem but really clearify my situation here...

ps: how come I didn't search that LOL

Offline

Board footer

Powered by FluxBB