1SYSTEMD.MOUNT(5)                 systemd.mount                SYSTEMD.MOUNT(5)
2
3
4

NAME

6       systemd.mount - systemd mount configuration files
7

SYNOPSIS

9       systemd.mount
10

DESCRIPTION

12       A unit configuration file whose name ends in .mount encodes information
13       about a file system mount point controlled and supervised by systemd.
14
15       This man page lists the configuration options specific to this unit
16       type. See systemd.unit(5) for the common options of all unit
17       configuration files. The common configuration items are configured in
18       the generic [Unit] and [Install] sections. The mount specific
19       configuration options are configured in the [Mount] section.
20
21       Additional options are listed in systemd.exec(5), which define the
22       execution environment the mount(8) binary is executed in.
23
24       Mount units must be named after the mount point directories they
25       control. Example: the mount point /home/lennart must be configured in a
26       unit file home-lennart.mount. For details about the escaping logic used
27       to convert a file system path to a unit name see systemd.unit(5).
28
29       Optionally, a mount unit may be accompanied by an automount unit, to
30       allow on-demand or parallelized mounting. See systemd.automount(5).
31
32       If an mount point is beneath another mount point in the file system
33       hierarchy, a dependency between both units is created automatically.
34
35       Mount points created at runtime independent on unit files or /etc/fstab
36       will be monitored by systemd and appear like any other mount unit in
37       systemd.
38

FSTAB

40       Mount units may either be configured via unit files, or via /etc/fstab
41       (see fstab(5) for details).
42
43       When reading /etc/fstab a few special mount options are understood by
44       systemd which influence how dependencies are created for mount points
45       from /etc/fstab. If comment=systemd.mount is specified as mount option,
46       then systemd will create a dependency of type Wants from either
47       local-fs.target or remote-fs.target, depending whether the file system
48       is local or remote. If comment=systemd.automount is set, an automount
49       unit will be created for the file system. See systemd.automount(5) for
50       details.
51
52       If a mount point is configured in both /etc/fstab and a unit file, the
53       configuration in the latter takes precedence.
54

OPTIONS

56       Mount files must include a [Mount] section, which carries information
57       about the file system mount points it supervises. A number of options
58       that may be used in this section are shared with other unit types.
59       These options are documented in systemd.exec(5). The options specific
60       to the [Mount] section of mount units are the following:
61
62       What=
63           Takes an absolute path of a device node, file or other resource to
64           mount. See mount(8) for details. If this refers to a device node, a
65           dependency on the respective device unit is automatically created.
66           (See systemd.device(5) for more information.) This option is
67           mandatory.
68
69       Where=
70           Takes an absolute path of a directory of the mount point. If the
71           mount point is not existing at time of mounting, it is created.
72           This string must be reflected in the unit file name. (See above.)
73           This option is mandatory.
74
75       Type=
76           Takes a string for the filesystem type. See mount(8) for details.
77           This setting is optional.
78
79       Options=
80           Mount options to use when mounting. This takes a comma separated
81           list of options. This setting is optional.
82
83       DirectoryMode=
84           Directories of mount points (and any parent directories) are
85           automatically created if needed. This option specifies the file
86           system access mode used when creating these directories. Takes an
87           access mode in octal notation. Defaults to 0755.
88
89       TimeoutSec=
90           Configures the time to wait for the mount command to finish. If a
91           command does not exit within the configured time the mount will be
92           considered failed and be shut down again. All commands still
93           running will be terminated forcibly via SIGTERM, and after another
94           delay of this time with SIGKILL. (See KillMode= below.) Takes a
95           unit-less value in seconds, or a time span value such as "5min
96           20s". Pass 0 to disable the timeout logic. Defaults to 60s.
97
98       KillMode=
99           Specifies how processes of this mount shall be killed. One of
100           control-group, process-group, process, none.
101
102           This option is mostly equivalent to the KillMode= option of service
103           files. See systemd.service(5) for details.
104

SEE ALSO

106       systemd(1), systemctl(8), systemd.unit(5), systemd.exec(5),
107       systemd.device(5), mount(8)
108

AUTHOR

110       Lennart Poettering <lennart@poettering.net>
111           Developer
112
113
114
115systemd                           09/14/2010                  SYSTEMD.MOUNT(5)
Impressum