AUTOFS.UDISKS(5)AUTOFS.UDISKS(5)NAMEautofs.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 mod‐
ule pam_ck_connector(8).
To use the automount udisks module an entry in the Master Map auto.mas‐
ter(5) has to added, like this:
/media/autofs udisks:/etc/autofs.udisks --timeout=5 --ghost
Please be aware that format of the file autofs.udisks 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="1.0" ?>
<AutofsUdisks enable="true">
<MountOptions>
<Common>uid=$UID,gid=$GID,nosuid,nodev</Common>
<DiskById value="usb-USB_Flash_Disk_XXXXXXXXXXXX-0:0-part1">
uid=1002,gid=501,user,nosuid,nodev,exec
</DiskById>
<DiskByLabel value="MyPersonal-DVD-x86_64XXXX">
unhide
</DiskByLabel>
<FSType value="vfat">fmask=0132,dmask=0022,showexec</FSType>
<FSType value="ntfs">umask=0022</FSType>
<FSType value="iso9660">ro</FSType>
<FSType value="ext4">check=none,noatime,nodiratime,data=journal</FSType>
<FSType value="ext3">check=none,noatime,nodiratime,data=journal</FSType>
<FSType value="ext2">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="true"|"false" 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="ID">
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="LABEL">
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="FSTYPE"]>
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 fall‐
back for file systems not specified in the configuration file.
SEE ALSOauto.master(5), udisks-daemon(8)AUTHOR
This manual page was written by Werner Fink <werner@suse.com>.
22 Aug 2012 AUTOFS.UDISKS(5)