[arch-general] HAL mount options
Hi! Until now I used /etc/fstab to mount my usb memory stick but I would like to switch that task to hal now to be able to use the cool removable devices widget of plasma. The problem is that I defined some options in /etc/fstab and cannot get hal to use the same options. The fstab line look like this: LABEL=USB-Stick /mnt/USB-Stick vfat uid=root,gid=users,showexec,user,noauto,umask=002,utf8,shortname=mixed 0 0 From what I googled on the web I deduced that I should create a file named /etc/hal/fdi/policy/20-USB-Stick.fdi and fill it with the following content: <?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="volume.uuid" string="4908-87A8"> <merge key="volume.policy.mount_option.showexec" type="bool">true</merge> </match> </device> </deviceinfo> The volume uuid (4908-87A8) was obtained via "$ /lib/udev/vol_id /dev/sdc1" where sdc1 is the partition on my usb stick I want to mount. I restarted hal and tried it after creating this fdi file but it does not work. The executable bit is still set for both directories and folders. As this didn't work I did not yet try to implement the other options. Does anyone have an idea? Is there some documentation about these fdi files on the web that I did not find? Thanks in advance for your help! Edgar
I don't know if this will help you, http://wiki.archlinux.org/index.php/HAL#HAL_and_hotplugging . You have probably already read through it, but I had a problem yesterday and someone suggested reading this. I ended up using fstab, instead of HAL. I don't know if you need a line in fstab? It seems you know more about this stuff then me though, ;-). Also, http://wiki.archlinux.org/index.php/Udev , http://wiki.archlinux.org/index.php/HAL#USB_sticks_and_drives_do_not_automou... . http://bbs.archlinux.org/viewtopic.php?pid=248224 . Hope this helps.
Thanks for your reply! I already read through the wiki articles but exactly what I'm trying to achieve is not really mentioned. I tried to adapt one of the given solutions as described in my former post but that did not work as expected. Google also seems not to know any answer to this although it is a bit of a mystery to me that no one knows how to make hal use mount options as hal seems to be widely used today. On Montag, 30. März 2009, 21:12:52 Preston C. wrote:
I don't know if this will help you, http://wiki.archlinux.org/index.php/HAL#HAL_and_hotplugging . You have probably already read through it, but I had a problem yesterday and someone suggested reading this. I ended up using fstab, instead of HAL.
I don't know if you need a line in fstab? It seems you know more about this stuff then me though, ;-).
Also, http://wiki.archlinux.org/index.php/Udev , http://wiki.archlinux.org/index.php/HAL#USB_sticks_and_drives_do_not_automou... . http://bbs.archlinux.org/viewtopic.php?pid=248224 .
Hope this helps.
participants (2)
-
Edgar Kalkowski
-
Preston C.