You are not logged in.
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
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
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
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
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