SYSTEMD​.AUTOMOUNT - Online Linux Manual PageSection : 5
Updated :
Source : systemd 253
Note : systemd.automount

NAMEsystemd.automount − Automount unit configuration

SYNOPSISautomount​.automount

DESCRIPTIONA unit configuration file whose name ends in "​.automount" encodes information about a file system automount point controlled and supervised by systemd​. Automount units may be used to implement on−demand mounting as well as parallelized mounting of file systems​. This man page lists the configuration options specific to this unit type​. See systemd.unit(5) for the common options of all unit configuration files​. The common configuration items are configured in the generic [Unit] and [Install] sections​. The automount specific configuration options are configured in the [Automount] section​. Automount units must be named after the automount directories they control​. Example: the automount point /home/lennart must be configured in a unit file home−lennart​.automount​. For details about the escaping logic used to convert a file system path to a unit name see systemd.unit(5)​. Note that automount units cannot be templated, nor is it possible to add multiple names to an automount unit by creating symlinks to its unit file​. For each automount unit file a matching mount unit file (see systemd.mount(5) for details) must exist which is activated when the automount path is accessed​. Example: if an automount unit home−lennart​.automount is active and the user accesses /home/lennart the mount unit home−lennart​.mount will be activated​. Note that automount units are separate from the mount itself, so you should not set After= or Requires= for mount dependencies here​. For example, you should not set After=network−online​.target or similar on network filesystems​. Doing so may result in an ordering cycle​. Note that automount support on Linux is privileged, automount units are hence only available in the system service manager (and root's user service manager), but not in unprivileged users' service managers​. Note that automount units should not be nested​. (The establishment of the inner automount point would unconditionally pin the outer mount point, defeating its purpose​.)

AUTOMATIC DEPENDENCIES

Implicit DependenciesThe following dependencies are implicitly added: •  If an automount unit is beneath another mount unit in the file system hierarchy, a requirement and ordering dependencies are created to the on the unit higher in the hierarchy​. •  An implicit Before= dependency is created between an automount unit and the mount unit it activates​.

Default DependenciesThe following dependencies are added unless DefaultDependencies=no is set: •  Automount units acquire automatic Before= and Conflicts= on umount​.target in order to be stopped during shutdown​. •  Automount units automatically gain an After= dependency on local−fs−pre​.target, and a Before= dependency on local−fs​.target​.

FSTABAutomount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details)​. For details how systemd parses /etc/fstab see systemd.mount(5)​. If an automount point is configured in both /etc/fstab and a unit file, the configuration in the latter takes precedence​.

OPTIONSAutomount unit files may include [Unit] and [Install] sections, which are described in systemd.unit(5)​. Automount unit files must include an [Automount] section, which carries information about the file system automount points it supervises​. The options specific to the [Automount] section of automount units are the following: Where= Takes an absolute path of a directory of the automount point​. If the automount point does not exist at time that the automount point is installed, it is created​. This string must be reflected in the unit filename​. (See above​.) This option is mandatory​. ExtraOptions= Extra mount options to use when creating the autofs mountpoint​. This takes a comma−separated list of options​. This setting is optional​. Note that the usual specifier expansion is applied to this setting, literal percent characters should hence be written as "%%"​. DirectoryMode= Directories of automount points (and any parent directories) are automatically created if needed​. This option specifies the file system access mode used when creating these directories​. Takes an access mode in octal notation​. Defaults to 0755​. TimeoutIdleSec= Configures an idle timeout​. Once the mount has been idle for the specified time, systemd will attempt to unmount​. Takes a unit−less value in seconds, or a time span value such as "5min 20s"​. Pass 0 to disable the timeout logic​. The timeout is disabled by default​. Check systemd.unit(5), systemd.exec(5), and systemd.kill(5) for more settings​.

SEE ALSOsystemd(1), systemctl(1), systemd.unit(5), systemd.mount(5), mount(8), automount(8), systemd.directives(7)
0
Johanes Gumabo
Data Size   :   16,434 byte
man-systemd.automount.5Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 182,861
Visitor ID   :     :  
Visitor IP   :   3.145.42.140   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.