How to specify options for automount ?

Paul Howarth paul at city-fan.org
Wed Jul 6 06:42:51 UTC 2005


On Wed, 2005-07-06 at 10:42 +0800, Yue Feng wrote:
> Hi, 
> I resolved this problem by:
> 
> add a file /etc/hal/fdi/policy/95-user-storage-policy.fdi , with
> content (between and exclude =====):
> =====
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
> 
> <deviceinfo version="0.2">
>   <device>
>     <merge key="volume.policy.mount_option.utf8"
> type="bool">true</merge>
>   </device>
> </deviceinfo>
> =====
> 
> and then restart the haldaemon service.

This will use the utf8 option for all "managed" mount points, which is
probably OK actually. It's also possible to add further data to this
file so that the option targets a specific device. The following blog
items have more details:

http://www.kgarner.com/blog/archives/2005/01/11/fc3-hal-ipod/
http://www.kgarner.com/blog/archives/2005/03/14/open-the-ipod-bay-doors-hal/

The references to /usr/share/hal/fdi/95userpolicy/ in those articles
should be changed to /etc/hal/fdi/policy/ for current versions of hal.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list