HAL mount options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux