Linux repositories inspector

autofs.udisks(5)

22 Aug 2012

autofs

A tool for automatically mounting and unmounting filesystems

NAME

autofs.udisks - autofs configuration for local removable devices

DESCRIPTION

The automount udisks module is able to manage removable devices on the local system by connecting to the message bus daemon dbus-daemon(1) to monitor all device events of the udisks-daemon(8). To grant access for local users the automount udisks module also monitors users sessions hold by the ConsoleKit daemon, compare with description of the PAM module pam_ck_connector(8).
To use the automount udisks module an entry in the Master Map auto.master(5) has to added, like this:
/media/autofs udisks:/etc/autofs.udisks --timeout=5 --ghost
Please be aware that format of the file does not follow the common format of the automounter maps but is an XML configuration file. This file is used by the automount udisks module to generate the automounter map on the fly.
An example of this file is:
<?xml version=[dq]1.0[dq] ?>
<AutofsUdisks enable=[dq]true[dq]>
  <MountOptions>
    <Common>uid=$UID,gid=$GID,nosuid,nodev</Common>
    <DiskById value=[dq]usb-USB_Flash_Disk_XXXXXXXXXXXX-0:0-part1[dq]>
      uid=1002,gid=501,user,nosuid,nodev,exec
    </DiskById>
    <DiskByLabel value=[dq]MyPersonal-DVD-x86_64XXXX[dq]>
      unhide
    </DiskByLabel>
    <FSType value=[dq]vfat[dq]>fmask=0132,dmask=0022,showexec</FSType>
    <FSType value=[dq]ntfs[dq]>umask=0022</FSType>
    <FSType value=[dq]iso9660[dq]>ro</FSType>
    <FSType value=[dq]ext4[dq]>check=none,noatime,nodiratime,data=journal</FSType>
    <FSType value=[dq]ext3[dq]>check=none,noatime,nodiratime,data=journal</FSType>
    <FSType value=[dq]ext2[dq]>check=none,noatime</FSType>
    <FSType>ro,nosuid,nodev,noexec</FSType>
  </MountOptions>
</AutofsUdisks>
The entries of such a XML configuration file are
<AutofsUdisks>
as the outer envelop. This level has exactly one attribute enable=[dq]true[dq]|[dq]false[dq] which allows disabling the automount udisks module without removing the module its self.
<MountOptions>
is the only known entry below which is used to list the possible mount options, compare with mount(8) as well as the variable substitutions mentioned in the manual page autofs(5) for the format of the automounter maps.
There are four possible entries below <MountOptions> to help the the automount udisks module to generate the automounter map.
<Common>
is the entry which provides mount options applied to nearly all generated maps. This entry will be overwritten by the next entry.
<DiskById value=[dq]ID[dq]>
is the entry which provides mount options which are applied instead of the <Common> entry if a device is found with an ID listed below /dev/disk/by-id/. This entry will be overwritten by the next entry.
<DiskByLabel value=[dq]LABEL[dq]>
is the entry which provides mount options which are applied instead of the <Common> or <DiskByLabel> entries if a device is found labeled with LABEL. Such labels can be detected by the super user with the blkid(8) command.
<FSType [value=[dq]FSTYPE[dq]]>
those entries are used to apply file system FSTYPE specific mount options to a generated automounter map entry. There can be one <FSType> entry without any file system value as a fallback for file systems not specified in the configuration file.

AUTHOR

This manual page was written by Werner Fink <>.
⇧ Top