AUTOFS.UDISKS(5)

๐Ÿ“ฆ version 5.1.9, in opensuse-leap 16.0

๐ŸŒธ NAME ๐ŸŒธ

autofs.udisks โ€” autofs configuration for local removable devices. this is the autofs.udisks(5) page (File Formats Manual), and bestie we are so here for it ๐Ÿ’…โœจ

โœจ DESCRIPTION โœจ

okay so the automount udisks module is literally 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). no cap, itโ€™s giving device-watcher main character energy ๐Ÿ”ฅ 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. lowkey iconic that it builds the map on the fly, fr fr ๐Ÿฆ‹

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. periodt, exactly one attribute at this level
  • <MountOptions> โ€” is highkey 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. iykyk

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. ngl this one is the baseline vibe ๐Ÿ’–
  • <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 fallback for file systems not specified in the configuration file. ๐ŸŒˆ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

auto.master(5), udisks-daemon(8) โ€” obsessed with these references, no cap โ€” vibe check passed ๐ŸŽ€

๐ŸŽ€ AUTHOR ๐ŸŽ€

This manual page was written by Werner Fink <werner@suse.com>. iconic author moment ๐Ÿ’–


signing off from the AUTOFS.UDISKS(5) File Formats Manual, dated 22 Aug 2012 โ€” stay slay, bestie, you ate ๐Ÿซถ๐Ÿ’…

๐Ÿ“ฆ where this page comes from