OSDN Git Service

util-linux 2.38: 翻訳予約。
[linuxjm/jm.git] / manual / util-linux / original / man8 / mount.8
1 '\" t
2 .\"     Title: mount
3 .\"    Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.15
5 .\"      Date: 2022-02-17
6 .\"    Manual: System Administration
7 .\"    Source: util-linux 2.38
8 .\"  Language: English
9 .\"
10 .TH "MOUNT" "8" "2022-02-17" "util\-linux 2.38" "System Administration"
11 .ie \n(.g .ds Aq \(aq
12 .el       .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 .  mso www.tmac
22 .  am URL
23 .    ad l
24 .  .
25 .  am MTO
26 .    ad l
27 .  .
28 .  LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 mount \- mount a filesystem
32 .SH "SYNOPSIS"
33 .sp
34 \fBmount\fP [\fB\-h\fP|\fB\-V\fP]
35 .sp
36 \fBmount\fP [\fB\-l\fP] [\fB\-t\fP \fIfstype\fP]
37 .sp
38 \fBmount\fP \fB\-a\fP [\fB\-fFnrsvw\fP] [\fB\-t\fP \fIfstype\fP] [\fB\-O\fP \fIoptlist\fP]
39 .sp
40 \fBmount\fP [\fB\-fnrsvw\fP] [\fB\-o\fP \fIoptions\fP] \fIdevice\fP|\fImountpoint\fP
41 .sp
42 \fBmount\fP [\fB\-fnrsvw\fP] [\fB\-t\fP \fIfstype\fP] [\fB\-o\fP \fIoptions\fP] \fIdevice mountpoint\fP
43 .sp
44 \fBmount\fP \fB\-\-bind\fP|\fB\-\-rbind\fP|\fB\-\-move\fP \fIolddir newdir\fP
45 .sp
46 \fBmount\fP \fB\-\-make\-\fP[\fBshared\fP|\fBslave\fP|\fBprivate\fP|\fBunbindable\fP|\fBrshared\fP|\fBrslave\fP|\fBrprivate\fP|\fBrunbindable\fP] \fImountpoint\fP
47 .SH "DESCRIPTION"
48 .sp
49 All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at \fI/\fP. These files can be spread out over several devices. The \fBmount\fP command serves to attach the filesystem found on some device to the big file tree. Conversely, the \fBumount\fP(8) command will detach it again. The filesystem is used to control how data is stored on the device or provided in a virtual way by network or other services.
50 .sp
51 The standard form of the \fBmount\fP command is:
52 .RS 3
53 .ll -.6i
54 .sp
55 \fBmount \-t\fP \fItype device dir\fP
56 .br
57 .RE
58 .ll
59 .sp
60 This tells the kernel to attach the filesystem found on \fIdevice\fP (which is of type \fItype\fP) at the directory \fIdir\fP. The option \fB\-t\fP \fItype\fP is optional. The \fBmount\fP command is usually able to detect a filesystem. The root permissions are necessary to mount a filesystem by default. See section "Non\-superuser mounts" below for more details. The previous contents (if any) and owner and mode of \fIdir\fP become invisible, and as long as this filesystem remains mounted, the pathname \fIdir\fP refers to the root of the filesystem on \fIdevice\fP.
61 .sp
62 If only the directory or the device is given, for example:
63 .RS 3
64 .ll -.6i
65 .sp
66 \fBmount\fP \fI/dir\fP
67 .br
68 .RE
69 .ll
70 .sp
71 then \fBmount\fP looks for a mountpoint (and if not found then for a device) in the \fI/etc/fstab\fP file. It\(cqs possible to use the \fB\-\-target\fP or \fB\-\-source\fP options to avoid ambiguous interpretation of the given argument. For example:
72 .RS 3
73 .ll -.6i
74 .sp
75 \fBmount \-\-target\fP \fI/mountpoint\fP
76 .br
77 .RE
78 .ll
79 .sp
80 The same filesystem may be mounted more than once, and in some cases (e.g., network filesystems) the same filesystem may be mounted on the same mountpoint multiple times. The \fBmount\fP command does not implement any policy to control this behavior. All behavior is controlled by the kernel and it is usually specific to the filesystem driver. The exception is \fB\-\-all\fP, in this case already mounted filesystems are ignored (see \fB\-\-all\fP below for more details).
81 .SS "Listing the mounts"
82 .sp
83 The listing mode is maintained for backward compatibility only.
84 .sp
85 For more robust and customizable output use \fBfindmnt\fP(8), \fBespecially in your scripts\fP. Note that control characters in the mountpoint name are replaced with \(aq?\(aq.
86 .sp
87 The following command lists all mounted filesystems (of type \fItype\fP):
88 .RS 3
89 .ll -.6i
90 .sp
91 \fBmount\fP [\fB\-l\fP] [\fB\-t\fP \fItype\fP]
92 .br
93 .RE
94 .ll
95 .sp
96 The option \fB\-l\fP adds labels to this listing. See below.
97 .SS "Indicating the device and filesystem"
98 .sp
99 Most devices are indicated by a filename (of a block special device), like \fI/dev/sda1\fP, but there are other possibilities. For example, in the case of an NFS mount, \fIdevice\fP may look like \fIknuth.cwi.nl:/dir\fP.
100 .sp
101 The device names of disk partitions are unstable; hardware reconfiguration, and adding or removing a device can cause changes in names. This is the reason why it\(cqs strongly recommended to use filesystem or partition identifiers like UUID or LABEL. Currently supported identifiers (tags):
102 .sp
103 LABEL=\fIlabel\fP
104 .RS 4
105 Human readable filesystem identifier. See also \fB\-L\fP.
106 .RE
107 .sp
108 UUID=\fIuuid\fP
109 .RS 4
110 Filesystem universally unique identifier. The format of the UUID is usually a series of hex digits separated by hyphens. See also \fB\-U\fP.
111 .sp
112 Note that \fBmount\fP uses UUIDs as strings. The UUIDs from the command line or from \fBfstab\fP(5) are not converted to internal binary representation. The string representation of the UUID should be based on lower case characters.
113 .RE
114 .sp
115 PARTLABEL=\fIlabel\fP
116 .RS 4
117 Human readable partition identifier. This identifier is independent on filesystem and does not change by \fBmkfs\fP or \fBmkswap\fP operations. It\(cqs supported for example for GUID Partition Tables (GPT).
118 .RE
119 .sp
120 PARTUUID=\fIuuid\fP
121 .RS 4
122 Partition universally unique identifier. This identifier is independent on filesystem and does not change by \fBmkfs\fP or \fBmkswap\fP operations. It\(cqs supported for example for GUID Partition Tables (GPT).
123 .RE
124 .sp
125 ID=\fIid\fP
126 .RS 4
127 Hardware block device ID as generated by udevd. This identifier is usually based on WWN (unique storage identifier) and assigned by the hardware manufacturer. See \fBls /dev/disk/by\-id\fP for more details, this directory and running udevd is required. This identifier is not recommended for generic use as the identifier is not strictly defined and it depends on udev, udev rules and hardware.
128 .RE
129 .sp
130 The command \fBlsblk \-\-fs\fP provides an overview of filesystems, LABELs and UUIDs on available block devices. The command \fBblkid \-p <device>\fP provides details about a filesystem on the specified device.
131 .sp
132 Don\(cqt forget that there is no guarantee that UUIDs and labels are really unique, especially if you move, share or copy the device. Use \fBlsblk \-o +UUID,PARTUUID\fP to verify that the UUIDs are really unique in your system.
133 .sp
134 The recommended setup is to use tags (e.g. \fBUUID\fP=\fIuuid\fP) rather than \fI/dev/disk/by\-{label,uuid,id,partuuid,partlabel}\fP udev symlinks in the \fI/etc/fstab\fP file. Tags are more readable, robust and portable. The \fBmount\fP(8) command internally uses udev symlinks, so the use of symlinks in \fI/etc/fstab\fP has no advantage over tags. For more details see \fBlibblkid\fP(3).
135 .sp
136 The \fIproc\fP filesystem is not associated with a special device, and when mounting it, an arbitrary keyword \- for example, \fIproc\fP \- can be used instead of a device specification. (The customary choice \fInone\fP is less fortunate: the error message \(aqnone already mounted\(aq from \fBmount\fP can be confusing.)
137 .SS "The files /etc/fstab, /etc/mtab and /proc/mounts"
138 .sp
139 The file \fI/etc/fstab\fP (see \fBfstab\fP(5)), may contain lines describing what devices are usually mounted where, using which options. The default location of the \fBfstab\fP(5) file can be overridden with the \fB\-\-fstab\fP \fIpath\fP command\-line option (see below for more details).
140 .sp
141 The command
142 .RS 3
143 .ll -.6i
144 .sp
145 \fBmount \-a\fP [\fB\-t\fP \fItype\fP] [\fB\-O\fP \fIoptlist\fP]
146 .br
147 .RE
148 .ll
149 .sp
150 (usually given in a bootscript) causes all filesystems mentioned in \fIfstab\fP (of the proper type and/or having or not having the proper options) to be mounted as indicated, except for those whose line contains the \fBnoauto\fP keyword. Adding the \fB\-F\fP option will make \fBmount\fP fork, so that the filesystems are mounted in parallel.
151 .sp
152 When mounting a filesystem mentioned in \fIfstab\fP or \fImtab\fP, it suffices to specify on the command line only the device, or only the mount point.
153 .sp
154 The programs \fBmount\fP and \fBumount\fP(8) traditionally maintained a list of currently mounted filesystems in the file \fI/etc/mtab\fP. The support for regular classic \fI/etc/mtab\fP is completely disabled at compile time by default, because on current Linux systems it is better to make \fI/etc/mtab\fP a symlink to \fI/proc/mounts\fP instead. The regular \fImtab\fP file maintained in userspace cannot reliably work with namespaces, containers and other advanced Linux features. If the regular \fImtab\fP support is enabled, then it\(cqs possible to use the file as well as the symlink.
155 .sp
156 If no arguments are given to \fBmount\fP, the list of mounted filesystems is printed.
157 .sp
158 If you want to override mount options from \fI/etc/fstab\fP, you have to use the \fB\-o\fP option:
159 .RS 3
160 .ll -.6i
161 .sp
162 \fBmount\fP \fIdevice\fP|\fIdir\fP \fB\-o\fP \fIoptions\fP
163 .br
164 .RE
165 .ll
166 .sp
167 and then the mount options from the command line will be appended to the list of options from \fI/etc/fstab\fP. This default behaviour can be changed using the \fB\-\-options\-mode\fP command\-line option. The usual behavior is that the last option wins if there are conflicting ones.
168 .sp
169 The \fBmount\fP program does not read the \fI/etc/fstab\fP file if both \fIdevice\fP (or LABEL, UUID, ID, PARTUUID or PARTLABEL) and \fIdir\fP are specified. For example, to mount device \fBfoo\fP at \fB/dir\fP:
170 .RS 3
171 .ll -.6i
172 .sp
173 \fBmount /dev/foo /dir\fP
174 .br
175 .RE
176 .ll
177 .sp
178 This default behaviour can be changed by using the \fB\-\-options\-source\-force\fP command\-line option to always read configuration from \fIfstab\fP. For non\-root users \fBmount\fP always reads the \fIfstab\fP configuration.
179 .SS "Non\-superuser mounts"
180 .sp
181 Normally, only the superuser can mount filesystems. However, when \fIfstab\fP contains the \fBuser\fP option on a line, anybody can mount the corresponding filesystem.
182 .sp
183 Thus, given a line
184 .RS 3
185 .ll -.6i
186 .sp
187 \fB/dev/cdrom /cd iso9660 ro,user,noauto,unhide\fP
188 .br
189 .RE
190 .ll
191 .sp
192 any user can mount the iso9660 filesystem found on an inserted CDROM using the command:
193 .RS 3
194 .ll -.6i
195 .sp
196 \fBmount /cd\fP
197 .br
198 .RE
199 .ll
200 .sp
201 Note that \fBmount\fP is very strict about non\-root users and all paths specified on command line are verified before \fIfstab\fP is parsed or a helper program is executed. It\(cqs strongly recommended to use a valid mountpoint to specify filesystem, otherwise \fBmount\fP may fail. For example it\(cqs a bad idea to use NFS or CIFS source on command line.
202 .sp
203 Since util\-linux 2.35, \fBmount\fP does not exit when user permissions are inadequate according to libmount\(cqs internal security rules. Instead, it drops suid permissions and continues as regular non\-root user. This behavior supports use\-cases where root permissions are not necessary (e.g., fuse filesystems, user namespaces, etc).
204 .sp
205 For more details, see \fBfstab\fP(5). Only the user that mounted a filesystem can unmount it again. If any user should be able to unmount it, then use \fBusers\fP instead of \fBuser\fP in the \fIfstab\fP line. The \fBowner\fP option is similar to the \fBuser\fP option, with the restriction that the user must be the owner of the special file. This may be useful e.g. for \fI/dev/fd\fP if a login script makes the console user owner of this device. The \fBgroup\fP option is similar, with the restriction that the user must be a member of the group of the special file.
206 .SS "Bind mount operation"
207 .sp
208 Remount part of the file hierarchy somewhere else. The call is:
209 .RS 3
210 .ll -.6i
211 .sp
212 \fBmount \-\-bind\fP \fIolddir newdir\fP
213 .br
214 .RE
215 .ll
216 .sp
217 or by using this \fIfstab\fP entry:
218 .RS 3
219 .ll -.6i
220 .sp
221 \fB/\fP\fIolddir\fP \fB/\fP\fInewdir\fP \fBnone bind\fP
222 .br
223 .RE
224 .ll
225 .sp
226 After this call the same contents are accessible in two places.
227 .sp
228 It is important to understand that "bind" does not create any second\-class or special node in the kernel VFS. The "bind" is just another operation to attach a filesystem. There is nowhere stored information that the filesystem has been attached by a "bind" operation. The \fIolddir\fP and \fInewdir\fP are independent and the \fIolddir\fP may be unmounted.
229 .sp
230 One can also remount a single file (on a single file). It\(cqs also possible to use a bind mount to create a mountpoint from a regular directory, for example:
231 .RS 3
232 .ll -.6i
233 .sp
234 \fBmount \-\-bind foo foo\fP
235 .br
236 .RE
237 .ll
238 .sp
239 The bind mount call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts can be attached a second place by using:
240 .RS 3
241 .ll -.6i
242 .sp
243 \fBmount \-\-rbind\fP \fIolddir newdir\fP
244 .br
245 .RE
246 .ll
247 .sp
248 Note that the filesystem mount options maintained by the kernel will remain the same as those on the original mount point. The userspace mount options (e.g., _netdev) will not be copied by \fBmount\fP and it\(cqs necessary to explicitly specify the options on the \fBmount\fP command line.
249 .sp
250 Since util\-linux 2.27 \fBmount\fP permits changing the mount options by passing the relevant options along with \fB\-\-bind\fP. For example:
251 .RS 3
252 .ll -.6i
253 .sp
254 \fBmount \-o bind,ro foo foo\fP
255 .br
256 .RE
257 .ll
258 .sp
259 This feature is not supported by the Linux kernel; it is implemented in userspace by an additional \fBmount\fP(2) remounting system call. This solution is not atomic.
260 .sp
261 The alternative (classic) way to create a read\-only bind mount is to use the remount operation, for example:
262 .RS 3
263 .ll -.6i
264 .sp
265 \fBmount \-\-bind\fP \fIolddir newdir\fP
266 .sp
267 \fBmount \-o remount,bind,ro\fP \fIolddir newdir\fP
268 .br
269 .RE
270 .ll
271 .sp
272 Note that a read\-only bind will create a read\-only mountpoint (VFS entry), but the original filesystem superblock will still be writable, meaning that the \fIolddir\fP will be writable, but the \fInewdir\fP will be read\-only.
273 .sp
274 It\(cqs also possible to change nosuid, nodev, noexec, noatime, nodiratime, relatime and nosymfollow VFS entry flags via a "remount,bind" operation. The other flags (for example filesystem\-specific flags) are silently ignored. It\(cqs impossible to change mount options recursively (for example with \fB\-o rbind,ro\fP).
275 .sp
276 Since util\-linux 2.31, \fBmount\fP ignores the \fBbind\fP flag from \fI/etc/fstab\fP on a \fBremount\fP operation (if \fB\-o remount\fP is specified on command line). This is necessary to fully control mount options on remount by command line. In previous versions the bind flag has been always applied and it was impossible to re\-define mount options without interaction with the bind semantic. This \fBmount\fP behavior does not affect situations when "remount,bind" is specified in the \fI/etc/fstab\fP file.
277 .SS "The move operation"
278 .sp
279 Move a \fBmounted tree\fP to another place (atomically). The call is:
280 .RS 3
281 .ll -.6i
282 .sp
283 \fBmount \-\-move\fP \fIolddir newdir\fP
284 .br
285 .RE
286 .ll
287 .sp
288 This will cause the contents which previously appeared under \fIolddir\fP to now be accessible under \fInewdir\fP. The physical location of the files is not changed. Note that \fIolddir\fP has to be a mountpoint.
289 .sp
290 Note also that moving a mount residing under a shared mount is invalid and unsupported. Use \fBfindmnt \-o TARGET,PROPAGATION\fP to see the current propagation flags.
291 .SS "Shared subtree operations"
292 .sp
293 Since Linux 2.6.15 it is possible to mark a mount and its submounts as shared, private, slave or unbindable. A shared mount provides the ability to create mirrors of that mount such that mounts and unmounts within any of the mirrors propagate to the other mirror. A slave mount receives propagation from its master, but not vice versa. A private mount carries no propagation abilities. An unbindable mount is a private mount which cannot be cloned through a bind operation. The detailed semantics are documented in \fIDocumentation/filesystems/sharedsubtree.txt\fP file in the kernel source tree; see also \fBmount_namespaces\fP(7).
294 .sp
295 Supported operations are:
296 .sp
297 .if n .RS 4
298 .nf
299 .fam C
300 mount \-\-make\-shared mountpoint
301 mount \-\-make\-slave mountpoint
302 mount \-\-make\-private mountpoint
303 mount \-\-make\-unbindable mountpoint
304 .fam
305 .fi
306 .if n .RE
307 .sp
308 The following commands allow one to recursively change the type of all the mounts under a given mountpoint.
309 .sp
310 .if n .RS 4
311 .nf
312 .fam C
313 mount \-\-make\-rshared mountpoint
314 mount \-\-make\-rslave mountpoint
315 mount \-\-make\-rprivate mountpoint
316 mount \-\-make\-runbindable mountpoint
317 .fam
318 .fi
319 .if n .RE
320 .sp
321 \fBmount\fP \fBdoes not read\fP \fBfstab\fP(5) when a \fB\-\-make\-\fP* operation is requested. All necessary information has to be specified on the command line.
322 .sp
323 Note that the Linux kernel does not allow changing multiple propagation flags with a single \fBmount\fP(2) system call, and the flags cannot be mixed with other mount options and operations.
324 .sp
325 Since util\-linux 2.23 the \fBmount\fP command can be used to do more propagation (topology) changes by one \fBmount\fP(8) call and do it also together with other mount operations. The propagation flags are applied by additional \fBmount\fP(2) system calls when the preceding mount operations were successful. Note that this use case is not atomic. It is possible to specify the propagation flags in \fBfstab\fP(5) as mount options (\fBprivate\fP, \fBslave\fP, \fBshared\fP, \fBunbindable\fP, \fBrprivate\fP, \fBrslave\fP, \fBrshared\fP, \fBrunbindable\fP).
326 .sp
327 For example:
328 .sp
329 .if n .RS 4
330 .nf
331 .fam C
332 mount \-\-make\-private \-\-make\-unbindable /dev/sda1 /foo
333 .fam
334 .fi
335 .if n .RE
336 .sp
337 is the same as:
338 .sp
339 .if n .RS 4
340 .nf
341 .fam C
342 mount /dev/sda1 /foo
343 mount \-\-make\-private /foo
344 mount \-\-make\-unbindable /foo
345 .fam
346 .fi
347 .if n .RE
348 .SH "COMMAND\-LINE OPTIONS"
349 .sp
350 The full set of mount options used by an invocation of \fBmount\fP is determined by first extracting the mount options for the filesystem from the \fIfstab\fP table, then applying any options specified by the \fB\-o\fP argument, and finally applying a \fB\-r\fP or \fB\-w\fP option, when present.
351 .sp
352 The \fBmount\fP command does not pass all command\-line options to the \fB/sbin/mount.\fP\fIsuffix\fP mount helpers. The interface between \fBmount\fP and the mount helpers is described below in the \fBEXTERNAL HELPERS\fP section.
353 .sp
354 Command\-line options available for the \fBmount\fP command are:
355 .sp
356 \fB\-a\fP, \fB\-\-all\fP
357 .RS 4
358 Mount all filesystems (of the given types) mentioned in \fIfstab\fP (except for those whose line contains the \fBnoauto\fP keyword). The filesystems are mounted following their order in \fIfstab\fP. The \fBmount\fP command compares filesystem source, target (and fs root for bind mount or btrfs) to detect already mounted filesystems. The kernel table with already mounted filesystems is cached during \fBmount \-\-all\fP. This means that all duplicated \fIfstab\fP entries will be mounted.
359 .sp
360 The correct functionality depends on \fI/proc\fP (to detect already mounted filesystems) and on \fI/sys\fP (to evaluate filesystem tags like UUID= or LABEL=). It\(cqs strongly recommended to mount \fI/proc\fP and \fI/sys\fP filesystems before \fBmount \-a\fP is executed, or keep /proc and /sys at the beginning of \fIfstab\fP.
361 .sp
362 The option \fB\-\-all\fP is possible to use for remount operation too. In this case all filters (\fB\-t\fP and \fB\-O\fP) are applied to the table of already mounted filesystems.
363 .sp
364 Since version 2.35 it is possible to use the command line option \fB\-o\fP to alter mount options from \fIfstab\fP (see also \fB\-\-options\-mode\fP).
365 .sp
366 Note that it is a bad practice to use \fBmount \-a\fP for \fIfstab\fP checking. The recommended solution is \fBfindmnt \-\-verify\fP.
367 .RE
368 .sp
369 \fB\-B\fP, \fB\-\-bind\fP
370 .RS 4
371 Remount a subtree somewhere else (so that its contents are available in both places). See above, under \fBBind mounts\fP.
372 .RE
373 .sp
374 \fB\-c\fP, \fB\-\-no\-canonicalize\fP
375 .RS 4
376 Don\(cqt canonicalize paths. The \fBmount\fP command canonicalizes all paths (from the command line or \fIfstab\fP) by default. This option can be used together with the \fB\-f\fP flag for already canonicalized absolute paths. The option is designed for mount helpers which call \fBmount \-i\fP. It is strongly recommended to not use this command\-line option for normal mount operations.
377 .sp
378 Note that \fBmount\fP does not pass this option to the \fB/sbin/mount.\fP\fItype\fP helpers.
379 .RE
380 .sp
381 \fB\-F\fP, \fB\-\-fork\fP
382 .RS 4
383 (Used in conjunction with \fB\-a\fP.) Fork off a new incarnation of \fBmount\fP for each device. This will do the mounts on different devices or different NFS servers in parallel. This has the advantage that it is faster; also NFS timeouts proceed in parallel. A disadvantage is that the order of the mount operations is undefined. Thus, you cannot use this option if you want to mount both \fI/usr\fP and \fI/usr/spool\fP.
384 .RE
385 .sp
386 \fB\-f, \-\-fake\fP
387 .RS 4
388 Causes everything to be done except for the actual system call; if it\(cqs not obvious, this "fakes" mounting the filesystem. This option is useful in conjunction with the \fB\-v\fP flag to determine what the \fBmount\fP command is trying to do. It can also be used to add entries for devices that were mounted earlier with the \fB\-n\fP option. The \fB\-f\fP option checks for an existing record in \fI/etc/mtab\fP and fails when the record already exists (with a regular non\-fake mount, this check is done by the kernel).
389 .RE
390 .sp
391 \fB\-i, \-\-internal\-only\fP
392 .RS 4
393 Don\(cqt call the \fB/sbin/mount.\fP\fIfilesystem\fP helper even if it exists.
394 .RE
395 .sp
396 \fB\-L\fP, \fB\-\-label\fP \fIlabel\fP
397 .RS 4
398 Mount the partition that has the specified \fIlabel\fP.
399 .RE
400 .sp
401 \fB\-l\fP, \fB\-\-show\-labels\fP
402 .RS 4
403 Add the labels in the mount output. \fBmount\fP must have permission to read the disk device (e.g. be set\-user\-ID root) for this to work. One can set such a label for ext2, ext3 or ext4 using the \fBe2label\fP(8) utility, or for XFS using \fBxfs_admin\fP(8), or for reiserfs using \fBreiserfstune\fP(8).
404 .RE
405 .sp
406 \fB\-M\fP, \fB\-\-move\fP
407 .RS 4
408 Move a subtree to some other place. See above, the subsection \fBThe move operation\fP.
409 .RE
410 .sp
411 \fB\-m\fP, \fB\-\-mkdir\fP[=\fImode\fP]
412 .RS 4
413 Allow to make a target directory (mountpoint) if it does not exist yet. Alias to "\-o X\-mount.mkdir[=mode]", the default mode is 0755. For more details see \fBX\-mount.mkdir\fP below.
414 .RE
415 .sp
416 \fB\-n\fP, \fB\-\-no\-mtab\fP
417 .RS 4
418 Mount without writing in \fI/etc/mtab\fP. This is necessary for example when \fI/etc\fP is on a read\-only filesystem.
419 .RE
420 .sp
421 \fB\-N\fP, \fB\-\-namespace\fP \fIns\fP
422 .RS 4
423 Perform the mount operation in the mount namespace specified by \fIns\fP. \fIns\fP is either PID of process running in that namespace or special file representing that namespace.
424 .sp
425 \fBmount\fP switches to the mount namespace when it reads \fI/etc/fstab\fP, writes \fI/etc/mtab: (or writes to _/run/mount\fP) and calls \fBmount\fP(2), otherwise it runs in the original mount namespace. This means that the target namespace does not have to contain any libraries or other requirements necessary to execute the \fBmount\fP(2) call.
426 .sp
427 See \fBmount_namespaces\fP(7) for more information.
428 .RE
429 .sp
430 \fB\-O\fP, \fB\-\-test\-opts\fP \fIopts\fP
431 .RS 4
432 Limit the set of filesystems to which the \fB\-a\fP option applies. In this regard it is like the \fB\-t\fP option except that \fB\-O\fP is useless without \fB\-a\fP. For example, the command
433 .sp
434 \fBmount \-a \-O no_netdev\fP
435 .sp
436 mounts all filesystems except those which have the option \fInetdev\fP specified in the options field in the \fI/etc/fstab\fP file.
437 .sp
438 It is different from \fB\-t\fP in that each option is matched exactly; a leading \fBno\fP at the beginning of one option does not negate the rest.
439 .sp
440 The \fB\-t\fP and \fB\-O\fP options are cumulative in effect; that is, the command
441 .sp
442 \fBmount \-a \-t ext2 \-O  _netdev\fP
443 .sp
444 mounts all ext2 filesystems with the _netdev option, not all filesystems that are either ext2 or have the _netdev option specified.
445 .RE
446 .sp
447 \fB\-o\fP, \fB\-\-options\fP \fIopts\fP
448 .RS 4
449 Use the specified mount options. The \fIopts\fP argument is a comma\-separated list. For example:
450 .sp
451 \fBmount LABEL=mydisk \-o noatime,nodev,nosuid\fP
452 .sp
453 For more details, see the \fBFILESYSTEM\-INDEPENDENT MOUNT OPTIONS\fP and \fBFILESYSTEM\-SPECIFIC MOUNT OPTIONS\fP sections.
454 .RE
455 .sp
456 \fB\-\-options\-mode\fP \fImode\fP
457 .RS 4
458 Controls how to combine options from \fIfstab\fP/\fImtab\fP with options from the command line. \fImode\fP can be one of \fBignore\fP, \fBappend\fP, \fBprepend\fP or \fBreplace\fP. For example, \fBappend\fP means that options from \fIfstab\fP are appended to options from the command line. The default value is \fBprepend\fP \(em it means command line options are evaluated after \fIfstab\fP options. Note that the last option wins if there are conflicting ones.
459 .RE
460 .sp
461 \fB\-\-options\-source\fP \fIsource\fP
462 .RS 4
463 Source of default options. \fIsource\fP is a comma\-separated list of \fBfstab\fP, \fBmtab\fP and \fBdisable\fP. \fBdisable\fP disables \fBfstab\fP and \fBmtab\fP and enables \fB\-\-options\-source\-force\fP. The default value is \fBfstab,mtab\fP.
464 .RE
465 .sp
466 \fB\-\-options\-source\-force\fP
467 .RS 4
468 Use options from \fIfstab\fP/\fImtab\fP even if both \fIdevice\fP and \fIdir\fP are specified.
469 .RE
470 .sp
471 \fB\-R\fP, \fB\-\-rbind\fP
472 .RS 4
473 Remount a subtree and all possible submounts somewhere else (so that its contents are available in both places). See above, the subsection \fBBind mounts\fP.
474 .RE
475 .sp
476 \fB\-r\fP, \fB\-\-read\-only\fP
477 .RS 4
478 Mount the filesystem read\-only. A synonym is \fB\-o ro\fP.
479 .sp
480 Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the device. For example, ext3 and ext4 will replay the journal if the filesystem is dirty. To prevent this kind of write access, you may want to mount an ext3 or ext4 filesystem with the \fBro,noload\fP mount options or set the block device itself to read\-only mode, see the \fBblockdev\fP(8) command.
481 .RE
482 .sp
483 \fB\-s\fP
484 .RS 4
485 Tolerate sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option. Currently it\(cqs supported by the \fBmount.nfs\fP mount helper only.
486 .RE
487 .sp
488 \fB\-\-source\fP \fIdevice\fP
489 .RS 4
490 If only one argument for the \fBmount\fP command is given, then the argument might be interpreted as the target (mountpoint) or source (device). This option allows you to explicitly define that the argument is the mount source.
491 .RE
492 .sp
493 \fB\-\-target\fP \fIdirectory\fP
494 .RS 4
495 If only one argument for the mount command is given, then the argument might be interpreted as the target (mountpoint) or source (device). This option allows you to explicitly define that the argument is the mount target.
496 .RE
497 .sp
498 \fB\-\-target\-prefix\fP \fIdirectory\fP
499 .RS 4
500 Prepend the specified directory to all mount targets. This option can be used to follow \fIfstab\fP, but mount operations are done in another place, for example:
501 .sp
502 \fBmount \-\-all \-\-target\-prefix /chroot \-o X\-mount.mkdir\fP
503 .sp
504 mounts all from system \fIfstab\fP to \fI/chroot\fP, all missing mountpoint are created (due to X\-mount.mkdir). See also \fB\-\-fstab\fP to use an alternative \fIfstab\fP.
505 .RE
506 .sp
507 \fB\-T\fP, \fB\-\-fstab\fP \fIpath\fP
508 .RS 4
509 Specifies an alternative \fIfstab\fP file. If \fIpath\fP is a directory, then the files in the directory are sorted by \fBstrverscmp\fP(3); files that start with "." or without an \fI.fstab\fP extension are ignored. The option can be specified more than once. This option is mostly designed for initramfs or chroot scripts where additional configuration is specified beyond standard system configuration.
510 .sp
511 Note that \fBmount\fP does not pass the option \fB\-\-fstab\fP to the \fB/sbin/mount.\fP\fItype\fP helpers, meaning that the alternative \fIfstab\fP files will be invisible for the helpers. This is no problem for normal mounts, but user (non\-root) mounts always require \fIfstab\fP to verify the user\(cqs rights.
512 .RE
513 .sp
514 \fB\-t\fP, \fB\-\-types\fP \fIfstype\fP
515 .RS 4
516 The argument following the \fB\-t\fP is used to indicate the filesystem type. The filesystem types which are currently supported depend on the running kernel. See \fI/proc/filesystems\fP and \fI/lib/modules/$(uname \-r)/kernel/fs\fP for a complete list of the filesystems. The most common are ext2, ext3, ext4, xfs, btrfs, vfat, sysfs, proc, nfs and cifs.
517 .sp
518 The programs \fBmount\fP and \fBumount\fP(8) support filesystem subtypes. The subtype is defined by a \(aq.subtype\(aq suffix. For example \(aqfuse.sshfs\(aq. It\(cqs recommended to use subtype notation rather than add any prefix to the mount source (for example \(aqsshfs#example.com\(aq is deprecated).
519 .sp
520 If no \fB\-t\fP option is given, or if the \fBauto\fP type is specified, \fBmount\fP will try to guess the desired type. \fBmount\fP uses the \fBlibblkid\fP(3) library for guessing the filesystem type; if that does not turn up anything that looks familiar, \fBmount\fP will try to read the file \fI/etc/filesystems\fP, or, if that does not exist, \fI/proc/filesystems\fP. All of the filesystem types listed there will be tried, except for those that are labeled "nodev" (e.g. \fIdevpts\fP, \fIproc\fP and \fInfs\fP). If \fI/etc/filesystems\fP ends in a line with a single *, mount will read \fI/proc/filesystems\fP afterwards. While trying, all filesystem types will be mounted with the mount option \fBsilent\fP.
521 .sp
522 The \fBauto\fP type may be useful for user\-mounted floppies. Creating a file \fI/etc/filesystems\fP can be useful to change the probe order (e.g., to try vfat before msdos or ext3 before ext2) or if you use a kernel module autoloader.
523 .sp
524 More than one type may be specified in a comma\-separated list, for the \fB\-t\fP option as well as in an \fI/etc/fstab\fP entry. The list of filesystem types for the \fB\-t\fP option can be prefixed with \fBno\fP to specify the filesystem types on which no action should be taken. The prefix \fBno\fP has no effect when specified in an \fI/etc/fstab\fP entry.
525 .sp
526 The prefix \fBno\fP can be meaningful with the \fB\-a\fP option. For example, the command
527 .sp
528 \fBmount \-a \-t nomsdos,smbfs\fP
529 .sp
530 mounts all filesystems except those of type \fImsdos\fP and \fIsmbfs\fP.
531 .sp
532 For most types all the \fBmount\fP program has to do is issue a simple \fBmount\fP(2) system call, and no detailed knowledge of the filesystem type is required. For a few types however (like nfs, nfs4, cifs, smbfs, ncpfs) an ad hoc code is necessary. The nfs, nfs4, cifs, smbfs, and ncpfs filesystems have a separate mount program. In order to make it possible to treat all types in a uniform way, \fBmount\fP will execute the program \fB/sbin/mount.\fP\fItype\fP (if that exists) when called with type \fItype\fP. Since different versions of the \fBsmbmount\fP program have different calling conventions, \fB/sbin/mount.smbfs\fP may have to be a shell script that sets up the desired call.
533 .RE
534 .sp
535 \fB\-U\fP, \fB\-\-uuid\fP \fIuuid\fP
536 .RS 4
537 Mount the partition that has the specified \fIuuid\fP.
538 .RE
539 .sp
540 \fB\-v\fP, \fB\-\-verbose\fP
541 .RS 4
542 Verbose mode.
543 .RE
544 .sp
545 \fB\-w\fP, \fB\-\-rw\fP, \fB\-\-read\-write\fP
546 .RS 4
547 Mount the filesystem read/write. Read\-write is the kernel default and the \fBmount\fP default is to try read\-only if the previous \fBmount\fP(2) syscall with read\-write flags on write\-protected devices failed.
548 .sp
549 A synonym is \fB\-o rw\fP.
550 .sp
551 Note that specifying \fB\-w\fP on the command line forces \fBmount\fP to never try read\-only mount on write\-protected devices or already mounted read\-only filesystems.
552 .RE
553 .sp
554 \fB\-h\fP, \fB\-\-help\fP
555 .RS 4
556 Display help text and exit.
557 .RE
558 .sp
559 \fB\-V\fP, \fB\-\-version\fP
560 .RS 4
561 Print version and exit.
562 .RE
563 .SH "FILESYSTEM\-INDEPENDENT MOUNT OPTIONS"
564 .sp
565 Some of these options are only useful when they appear in the \fI/etc/fstab\fP file.
566 .sp
567 Some of these options could be enabled or disabled by default in the system kernel. To check the current setting see the options in \fI/proc/mounts\fP. Note that filesystems also have per\-filesystem specific default mount options (see for example \fBtune2fs \-l\fP output for ext\fIN\fP filesystems).
568 .sp
569 The following options apply to any filesystem that is being mounted (but not every filesystem actually honors them \- e.g., the \fBsync\fP option today has an effect only for ext2, ext3, ext4, fat, vfat, ufs and xfs):
570 .sp
571 \fBasync\fP
572 .RS 4
573 All I/O to the filesystem should be done asynchronously. (See also the \fBsync\fP option.)
574 .RE
575 .sp
576 \fBatime\fP
577 .RS 4
578 Do not use the \fBnoatime\fP feature, so the inode access time is controlled by kernel defaults. See also the descriptions of the \fBrelatime\fP and \fBstrictatime\fP mount options.
579 .RE
580 .sp
581 \fBnoatime\fP
582 .RS 4
583 Do not update inode access times on this filesystem (e.g. for faster access on the news spool to speed up news servers). This works for all inode types (directories too), so it implies \fBnodiratime\fP.
584 .RE
585 .sp
586 \fBauto\fP
587 .RS 4
588 Can be mounted with the \fB\-a\fP option.
589 .RE
590 .sp
591 \fBnoauto\fP
592 .RS 4
593 Can only be mounted explicitly (i.e., the \fB\-a\fP option will not cause the filesystem to be mounted).
594 .RE
595 .sp
596 \fBcontext=\fP\fIcontext\fP, \fBfscontext=\fP\fIcontext\fP, \fBdefcontext=\fP\fIcontext\fP, and \fBrootcontext=\fP\fIcontext\fP
597 .RS 4
598 The \fBcontext=\fP option is useful when mounting filesystems that do not support extended attributes, such as a floppy or hard disk formatted with VFAT, or systems that are not normally running under SELinux, such as an ext3 or ext4 formatted disk from a non\-SELinux workstation. You can also use \fBcontext=\fP on filesystems you do not trust, such as a floppy. It also helps in compatibility with xattr\-supporting filesystems on earlier 2.4.<x> kernel versions. Even where xattrs are supported, you can save time not having to label every file by assigning the entire disk one security context.
599 .sp
600 A commonly used option for removable media is \fBcontext="system_u:object_r:removable_t\fP.
601 .sp
602 The \fBfscontext=\fP option works for all filesystems, regardless of their xattr support. The fscontext option sets the overarching filesystem label to a specific security context. This filesystem label is separate from the individual labels on the files. It represents the entire filesystem for certain kinds of permission checks, such as during mount or file creation. Individual file labels are still obtained from the xattrs on the files themselves. The context option actually sets the aggregate context that fscontext provides, in addition to supplying the same label for individual files.
603 .sp
604 You can set the default security context for unlabeled files using \fBdefcontext=\fP option. This overrides the value set for unlabeled files in the policy and requires a filesystem that supports xattr labeling.
605 .sp
606 The \fBrootcontext=\fP option allows you to explicitly label the root inode of a FS being mounted before that FS or inode becomes visible to userspace. This was found to be useful for things like stateless Linux.
607 .sp
608 Note that the kernel rejects any remount request that includes the context option, \fBeven\fP when unchanged from the current context.
609 .sp
610 \fBWarning: the\fP \fIcontext\fP \fBvalue might contain commas\fP, in which case the value has to be properly quoted, otherwise \fBmount\fP will interpret the comma as a separator between mount options. Don\(cqt forget that the shell strips off quotes and thus \fBdouble quoting is required\fP. For example:
611 .RE
612 .RS 3
613 .ll -.6i
614 .sp
615 mount \-t tmpfs none /mnt \-o \(rs
616 \(aqcontext="system_u:object_r:tmp_t:s0:c127,c456",noexec\(aq
617 .br
618 .RE
619 .ll
620 .sp
621 For more details, see \fBselinux\fP(8).
622 .sp
623 \fBdefaults\fP
624 .RS 4
625 Use the default options: \fBrw\fP, \fBsuid\fP, \fBdev\fP, \fBexec\fP, \fBauto\fP, \fBnouser\fP, and \fBasync\fP.
626 .sp
627 Note that the real set of all default mount options depends on the kernel and filesystem type. See the beginning of this section for more details.
628 .RE
629 .sp
630 \fBdev\fP
631 .RS 4
632 Interpret character or block special devices on the filesystem.
633 .RE
634 .sp
635 \fBnodev\fP
636 .RS 4
637 Do not interpret character or block special devices on the filesystem.
638 .RE
639 .sp
640 \fBdiratime\fP
641 .RS 4
642 Update directory inode access times on this filesystem. This is the default. (This option is ignored when \fBnoatime\fP is set.)
643 .RE
644 .sp
645 \fBnodiratime\fP
646 .RS 4
647 Do not update directory inode access times on this filesystem. (This option is implied when \fBnoatime\fP is set.)
648 .RE
649 .sp
650 \fBdirsync\fP
651 .RS 4
652 All directory updates within the filesystem should be done synchronously. This affects the following system calls: \fBcreat\fP(2), \fBlink\fP(2), \fBunlink\fP(2), \fBsymlink\fP(2), \fBmkdir\fP(2), \fBrmdir\fP(2), \fBmknod\fP(2) and \fBrename\fP(2).
653 .RE
654 .sp
655 \fBexec\fP
656 .RS 4
657 Permit execution of binaries and other executable files.
658 .RE
659 .sp
660 \fBnoexec\fP
661 .RS 4
662 Do not permit direct execution of any binaries on the mounted filesystem.
663 .RE
664 .sp
665 \fBgroup\fP
666 .RS 4
667 Allow an ordinary user to mount the filesystem if one of that user\(cqs groups matches the group of the device. This option implies the options \fBnosuid\fP and \fBnodev\fP (unless overridden by subsequent options, as in the option line \fBgroup,dev,suid\fP).
668 .RE
669 .sp
670 \fBiversion\fP
671 .RS 4
672 Every time the inode is modified, the i_version field will be incremented.
673 .RE
674 .sp
675 \fBnoiversion\fP
676 .RS 4
677 Do not increment the i_version inode field.
678 .RE
679 .sp
680 \fBmand\fP
681 .RS 4
682 Allow mandatory locks on this filesystem. See \fBfcntl\fP(2). This option was deprecated in Linux 5.15.
683 .RE
684 .sp
685 \fBnomand\fP
686 .RS 4
687 Do not allow mandatory locks on this filesystem.
688 .RE
689 .sp
690 \fB_netdev\fP
691 .RS 4
692 The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).
693 .RE
694 .sp
695 \fBnofail\fP
696 .RS 4
697 Do not report errors for this device if it does not exist.
698 .RE
699 .sp
700 \fBrelatime\fP
701 .RS 4
702 Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time. (Similar to \fBnoatime\fP, but it doesn\(cqt break \fBmutt\fP(1) or other applications that need to know if a file has been read since the last time it was modified.)
703 .sp
704 Since Linux 2.6.30, the kernel defaults to the behavior provided by this option (unless \fBnoatime\fP was specified), and the \fBstrictatime\fP option is required to obtain traditional semantics. In addition, since Linux 2.6.30, the file\(cqs last access time is always updated if it is more than 1 day old.
705 .RE
706 .sp
707 \fBnorelatime\fP
708 .RS 4
709 Do not use the \fBrelatime\fP feature. See also the \fBstrictatime\fP mount option.
710 .RE
711 .sp
712 \fBstrictatime\fP
713 .RS 4
714 Allows to explicitly request full atime updates. This makes it possible for the kernel to default to \fBrelatime\fP or \fBnoatime\fP but still allow userspace to override it. For more details about the default system mount options see \fI/proc/mounts\fP.
715 .RE
716 .sp
717 \fBnostrictatime\fP
718 .RS 4
719 Use the kernel\(cqs default behavior for inode access time updates.
720 .RE
721 .sp
722 \fBlazytime\fP
723 .RS 4
724 Only update times (atime, mtime, ctime) on the in\-memory version of the file inode.
725 .sp
726 This mount option significantly reduces writes to the inode table for workloads that perform frequent random writes to preallocated files.
727 .sp
728 The on\-disk timestamps are updated only when:
729 .sp
730 .RS 4
731 .ie n \{\
732 \h'-04'\(bu\h'+03'\c
733 .\}
734 .el \{\
735 .  sp -1
736 .  IP \(bu 2.3
737 .\}
738 the inode needs to be updated for some change unrelated to file timestamps
739 .RE
740 .sp
741 .RS 4
742 .ie n \{\
743 \h'-04'\(bu\h'+03'\c
744 .\}
745 .el \{\
746 .  sp -1
747 .  IP \(bu 2.3
748 .\}
749 the application employs \fBfsync\fP(2), \fBsyncfs\fP(2), or \fBsync\fP(2)
750 .RE
751 .sp
752 .RS 4
753 .ie n \{\
754 \h'-04'\(bu\h'+03'\c
755 .\}
756 .el \{\
757 .  sp -1
758 .  IP \(bu 2.3
759 .\}
760 an undeleted inode is evicted from memory
761 .RE
762 .sp
763 .RS 4
764 .ie n \{\
765 \h'-04'\(bu\h'+03'\c
766 .\}
767 .el \{\
768 .  sp -1
769 .  IP \(bu 2.3
770 .\}
771 more than 24 hours have passed since the inode was written to disk.
772 .RE
773 .RE
774 .sp
775 \fBnolazytime\fP
776 .RS 4
777 Do not use the lazytime feature.
778 .RE
779 .sp
780 \fBsuid\fP
781 .RS 4
782 Honor set\-user\-ID and set\-group\-ID bits or file capabilities when executing programs from this filesystem.
783 .RE
784 .sp
785 \fBnosuid\fP
786 .RS 4
787 Do not honor set\-user\-ID and set\-group\-ID bits or file capabilities when executing programs from this filesystem. In addition, SELinux domain transitions require permission \fInosuid_transition\fP, which in turn needs also policy capability \fInnp_nosuid_transition\fP.
788 .RE
789 .sp
790 \fBsilent\fP
791 .RS 4
792 Turn on the silent flag.
793 .RE
794 .sp
795 \fBloud\fP
796 .RS 4
797 Turn off the silent flag.
798 .RE
799 .sp
800 \fBowner\fP
801 .RS 4
802 Allow an ordinary user to mount the filesystem if that user is the owner of the device. This option implies the options \fBnosuid\fP and \fBnodev\fP (unless overridden by subsequent options, as in the option line \fBowner,dev,suid\fP).
803 .RE
804 .sp
805 \fBremount\fP
806 .RS 4
807 Attempt to remount an already\-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writable. It does not change device or mount point.
808 .sp
809 The remount operation together with the \fBbind\fP flag has special semantics. See above, the subsection \fBBind mounts\fP.
810 .sp
811 The remount functionality follows the standard way the \fBmount\fP command works with options from \fIfstab\fP. This means that \fBmount\fP does not read \fIfstab\fP (or \fImtab\fP) only when both \fIdevice\fP and \fIdir\fP are specified.
812 .sp
813 \fBmount \-o remount,rw /dev/foo /dir\fP
814 .sp
815 After this call all old mount options are replaced and arbitrary stuff from \fIfstab\fP (or \fImtab\fP) is ignored, except the \fBloop=\fP option which is internally generated and maintained by the \fBmount\fP command.
816 .sp
817 \fBmount \-o remount,rw /dir\fP
818 .sp
819 After this call, \fBmount\fP reads \fIfstab\fP and merges these options with the options from the command line (\fB\-o\fP). If no mountpoint is found in \fIfstab\fP, then a remount with unspecified source is allowed.
820 .sp
821 \fBmount\fP allows the use of \fB\-\-all\fP to remount all already mounted filesystems which match a specified filter (\fB\-O\fP and \fB\-t\fP). For example:
822 .sp
823 \fBmount \-\-all \-o remount,ro \-t vfat\fP
824 .sp
825 remounts all already mounted vfat filesystems in read\-only mode. Each of the filesystems is remounted by \fBmount \-o remount,ro\fP \fI/dir\fP semantic. This means the \fBmount\fP command reads \fIfstab\fP or \fImtab\fP and merges these options with the options from the command line.
826 .RE
827 .sp
828 \fBro\fP
829 .RS 4
830 Mount the filesystem read\-only.
831 .RE
832 .sp
833 \fBrw\fP
834 .RS 4
835 Mount the filesystem read\-write.
836 .RE
837 .sp
838 \fBsync\fP
839 .RS 4
840 All I/O to the filesystem should be done synchronously. In the case of media with a limited number of write cycles (e.g. some flash drives), \fBsync\fP may cause life\-cycle shortening.
841 .RE
842 .sp
843 \fBuser\fP
844 .RS 4
845 Allow an ordinary user to mount the filesystem. The name of the mounting user is written to the \fImtab\fP file (or to the private libmount file in \fI/run/mount\fP on systems without a regular \fImtab\fP) so that this same user can unmount the filesystem again. This option implies the options \fBnoexec\fP, \fBnosuid\fP, and \fBnodev\fP (unless overridden by subsequent options, as in the option line \fBuser,exec,dev,suid\fP).
846 .RE
847 .sp
848 \fBnouser\fP
849 .RS 4
850 Forbid an ordinary user to mount the filesystem. This is the default; it does not imply any other options.
851 .RE
852 .sp
853 \fBusers\fP
854 .RS 4
855 Allow any user to mount and to unmount the filesystem, even when some other ordinary user mounted it. This option implies the options \fBnoexec\fP, \fBnosuid\fP, and \fBnodev\fP (unless overridden by subsequent options, as in the option line \fBusers,exec,dev,suid\fP).
856 .RE
857 .sp
858 \fBX\-\fP*
859 .RS 4
860 All options prefixed with "X\-" are interpreted as comments or as userspace application\-specific options. These options are not stored in user space (e.g., \fImtab\fP file), nor sent to the mount.\fItype\fP helpers nor to the \fBmount\fP(2) system call. The suggested format is \fBX\-\fP\fIappname\fP.\fIoption\fP.
861 .RE
862 .sp
863 \fBx\-\fP*
864 .RS 4
865 The same as \fBX\-\fP* options, but stored permanently in user space. This means the options are also available for \fBumount\fP(8) or other operations. Note that maintaining mount options in user space is tricky, because it\(cqs necessary use libmount\-based tools and there is no guarantee that the options will be always available (for example after a move mount operation or in unshared namespace).
866 .sp
867 Note that before util\-linux v2.30 the x\-* options have not been maintained by libmount and stored in user space (functionality was the same as for X\-* now), but due to the growing number of use\-cases (in initrd, systemd etc.) the functionality has been extended to keep existing \fIfstab\fP configurations usable without a change.
868 .RE
869 .sp
870 \fBX\-mount.mkdir\fP[=\fImode\fP]
871 .RS 4
872 Allow to make a target directory (mountpoint) if it does not exist yet. The optional argument \fImode\fP specifies the filesystem access mode used for \fBmkdir\fP(2) in octal notation. The default mode is 0755. This functionality is supported only for root users or when \fBmount\fP is executed without suid permissions. The option is also supported as \fBx\-mount.mkdir\fP, but this notation is deprecated since v2.30. See also \fB\-\-mkdir\fP command line option.
873 .RE
874 .sp
875 \fBX\-mount.subdir=\fP\fIdirectory\fP
876 .RS 4
877 Allow mounting sub\-directory from a filesystem instead of the root directory. For now, this feature is implemented by temporary filesystem root directory mount in unshared namespace and then bind the sub\-directory to the final mount point and umount the root of the filesystem. The sub\-directory mount shows up atomically for the rest of the system although it is implemented by multiple \fBmount\fP(2) syscalls. This feature is EXPERIMENTAL.
878 .RE
879 .sp
880 \fBnosymfollow\fP
881 .RS 4
882 Do not follow symlinks when resolving paths. Symlinks can still be created, and \fBreadlink\fP(1), \fBreadlink\fP(2), \fBrealpath\fP(1), and \fBrealpath\fP(3) all still work properly.
883 .RE
884 .SH "FILESYSTEM\-SPECIFIC MOUNT OPTIONS"
885 .sp
886 This section lists options that are specific to particular filesystems. Where possible, you should first consult filesystem\-specific manual pages for details. Some of those pages are listed in the following table.
887 .TS
888 allbox tab(:);
889 lt lt.
890 T{
891 .sp
892 \fBFilesystem(s)\fP
893 T}:T{
894 .sp
895 \fBManual page\fP
896 T}
897 T{
898 .sp
899 btrfs
900 T}:T{
901 .sp
902 \fBbtrfs\fP(5)
903 T}
904 T{
905 .sp
906 cifs
907 T}:T{
908 .sp
909 \fBmount.cifs\fP(8)
910 T}
911 T{
912 .sp
913 ext2, ext3, ext4
914 T}:T{
915 .sp
916 \fBext4\fP(5)
917 T}
918 T{
919 .sp
920 fuse
921 T}:T{
922 .sp
923 \fBfuse\fP(8)
924 T}
925 T{
926 .sp
927 nfs
928 T}:T{
929 .sp
930 \fBnfs\fP(5)
931 T}
932 T{
933 .sp
934 tmpfs
935 T}:T{
936 .sp
937 \fBtmpfs\fP(5)
938 T}
939 T{
940 .sp
941 xfs
942 T}:T{
943 .sp
944 \fBxfs\fP(5)
945 T}
946 .TE
947 .sp
948 .sp
949 Note that some of the pages listed above might be available only after you install the respective userland tools.
950 .sp
951 The following options apply only to certain filesystems. We sort them by filesystem. All options follow the \fB\-o\fP flag.
952 .sp
953 What options are supported depends a bit on the running kernel. Further information may be available in filesystem\-specific files in the kernel source subdirectory \fIDocumentation/filesystems\fP.
954 .SS "Mount options for adfs"
955 .sp
956 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
957 .RS 4
958 Set the owner and group of the files in the filesystem (default: uid=gid=0).
959 .RE
960 .sp
961 \fBownmask=\fP\fIvalue\fP and \fBothmask=\fP\fIvalue\fP
962 .RS 4
963 Set the permission mask for ADFS \(aqowner\(aq permissions and \(aqother\(aq permissions, respectively (default: 0700 and 0077, respectively). See also \fI/usr/src/linux/Documentation/filesystems/adfs.rst\fP.
964 .RE
965 .SS "Mount options for affs"
966 .sp
967 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
968 .RS 4
969 Set the owner and group of the root of the filesystem (default: uid=gid=0, but with option \fBuid\fP or \fBgid\fP without specified value, the UID and GID of the current process are taken).
970 .RE
971 .sp
972 \fBsetuid=\fP\fIvalue\fP and \fBsetgid=\fP\fIvalue\fP
973 .RS 4
974 Set the owner and group of all files.
975 .RE
976 .sp
977 \fBmode=\fP\fIvalue\fP
978 .RS 4
979 Set the mode of all files to \fIvalue\fP & 0777 disregarding the original permissions. Add search permission to directories that have read permission. The value is given in octal.
980 .RE
981 .sp
982 \fBprotect\fP
983 .RS 4
984 Do not allow any changes to the protection bits on the filesystem.
985 .RE
986 .sp
987 \fBusemp\fP
988 .RS 4
989 Set UID and GID of the root of the filesystem to the UID and GID of the mount point upon the first sync or umount, and then clear this option. Strange...
990 .RE
991 .sp
992 \fBverbose\fP
993 .RS 4
994 Print an informational message for each successful mount.
995 .RE
996 .sp
997 \fBprefix=\fP\fIstring\fP
998 .RS 4
999 Prefix used before volume name, when following a link.
1000 .RE
1001 .sp
1002 \fBvolume=\fP\fIstring\fP
1003 .RS 4
1004 Prefix (of length at most 30) used before \(aq/\(aq when following a symbolic link.
1005 .RE
1006 .sp
1007 \fBreserved=\fP\fIvalue\fP
1008 .RS 4
1009 (Default: 2.) Number of unused blocks at the start of the device.
1010 .RE
1011 .sp
1012 \fBroot=\fP\fIvalue\fP
1013 .RS 4
1014 Give explicitly the location of the root block.
1015 .RE
1016 .sp
1017 \fBbs=\fP\fIvalue\fP
1018 .RS 4
1019 Give blocksize. Allowed values are 512, 1024, 2048, 4096.
1020 .RE
1021 .sp
1022 \fBgrpquota\fP|\fBnoquota\fP|\fBquota\fP|\fBusrquota\fP
1023 .RS 4
1024 These options are accepted but ignored. (However, quota utilities may react to such strings in \fI/etc/fstab\fP.)
1025 .RE
1026 .SS "Mount options for debugfs"
1027 .sp
1028 The debugfs filesystem is a pseudo filesystem, traditionally mounted on \fI/sys/kernel/debug\fP. As of kernel version 3.4, debugfs has the following options:
1029 .sp
1030 \fBuid=\fP\fIn\fP\fB, gid=\fP\fIn\fP
1031 .RS 4
1032 Set the owner and group of the mountpoint.
1033 .RE
1034 .sp
1035 \fBmode=\fP\fIvalue\fP
1036 .RS 4
1037 Sets the mode of the mountpoint.
1038 .RE
1039 .SS "Mount options for devpts"
1040 .sp
1041 The devpts filesystem is a pseudo filesystem, traditionally mounted on \fI/dev/pts\fP. In order to acquire a pseudo terminal, a process opens \fI/dev/ptmx\fP; the number of the pseudo terminal is then made available to the process and the pseudo terminal slave can be accessed as \fI/dev/pts/\fP<number>.
1042 .sp
1043 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1044 .RS 4
1045 This sets the owner or the group of newly created pseudo terminals to the specified values. When nothing is specified, they will be set to the UID and GID of the creating process. For example, if there is a tty group with GID 5, then \fBgid=5\fP will cause newly created pseudo terminals to belong to the tty group.
1046 .RE
1047 .sp
1048 \fBmode=\fP\fIvalue\fP
1049 .RS 4
1050 Set the mode of newly created pseudo terminals to the specified value. The default is 0600. A value of \fBmode=620\fP and \fBgid=5\fP makes "mesg y" the default on newly created pseudo terminals.
1051 .RE
1052 .sp
1053 \fBnewinstance\fP
1054 .RS 4
1055 Create a private instance of the devpts filesystem, such that indices of pseudo terminals allocated in this new instance are independent of indices created in other instances of devpts.
1056 .sp
1057 All mounts of devpts without this \fBnewinstance\fP option share the same set of pseudo terminal indices (i.e., legacy mode). Each mount of devpts with the \fBnewinstance\fP option has a private set of pseudo terminal indices.
1058 .sp
1059 This option is mainly used to support containers in the Linux kernel. It is implemented in Linux kernel versions starting with 2.6.29. Further, this mount option is valid only if \fBCONFIG_DEVPTS_MULTIPLE_INSTANCES\fP is enabled in the kernel configuration.
1060 .sp
1061 To use this option effectively, \fI/dev/ptmx\fP must be a symbolic link to \fIpts/ptmx\fP. See \fIDocumentation/filesystems/devpts.txt\fP in the Linux kernel source tree for details.
1062 .RE
1063 .sp
1064 \fBptmxmode=\fP\fIvalue\fP
1065 .RS 4
1066 Set the mode for the new \fIptmx\fP device node in the devpts filesystem.
1067 .sp
1068 With the support for multiple instances of devpts (see \fBnewinstance\fP option above), each instance has a private \fIptmx\fP node in the root of the devpts filesystem (typically \fI/dev/pts/ptmx\fP).
1069 .sp
1070 For compatibility with older versions of the kernel, the default mode of the new \fIptmx\fP node is 0000. \fBptmxmode=\fP\fIvalue\fP specifies a more useful mode for the \fIptmx\fP node and is highly recommended when the \fBnewinstance\fP option is specified.
1071 .sp
1072 This option is only implemented in Linux kernel versions starting with 2.6.29. Further, this option is valid only if \fBCONFIG_DEVPTS_MULTIPLE_INSTANCES\fP is enabled in the kernel configuration.
1073 .RE
1074 .SS "Mount options for fat"
1075 .sp
1076 (Note: \fIfat\fP is not a separate filesystem, but a common part of the \fImsdos\fP, \fIumsdos\fP and \fIvfat\fP filesystems.)
1077 .sp
1078 \fBblocksize=\fP{\fB512\fP|\fB1024\fP|\fB2048\fP}
1079 .RS 4
1080 Set blocksize (default 512). This option is obsolete.
1081 .RE
1082 .sp
1083 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1084 .RS 4
1085 Set the owner and group of all files. (Default: the UID and GID of the current process.)
1086 .RE
1087 .sp
1088 \fBumask=\fP\fIvalue\fP
1089 .RS 4
1090 Set the umask (the bitmask of the permissions that are \fBnot\fP present). The default is the umask of the current process. The value is given in octal.
1091 .RE
1092 .sp
1093 \fBdmask=\fP\fIvalue\fP
1094 .RS 4
1095 Set the umask applied to directories only. The default is the umask of the current process. The value is given in octal.
1096 .RE
1097 .sp
1098 \fBfmask=\fP\fIvalue\fP
1099 .RS 4
1100 Set the umask applied to regular files only. The default is the umask of the current process. The value is given in octal.
1101 .RE
1102 .sp
1103 \fBallow_utime=\fP\fIvalue\fP
1104 .RS 4
1105 This option controls the permission check of mtime/atime.
1106 .sp
1107 \fB20\fP
1108 .RS 4
1109 If current process is in group of file\(cqs group ID, you can change timestamp.
1110 .RE
1111 .sp
1112 \fB2\fP
1113 .RS 4
1114 Other users can change timestamp.
1115 .RE
1116 .RE
1117 .sp
1118 The default is set from \(aqdmask\(aq option. (If the directory is writable, \fButime\fP(2) is also allowed. I.e. ~dmask & 022)
1119 .sp
1120 Normally \fButime\fP(2) checks that the current process is owner of the file, or that it has the \fBCAP_FOWNER\fP capability. But FAT filesystems don\(cqt have UID/GID on disk, so the normal check is too inflexible. With this option you can relax it.
1121 .sp
1122 \fBcheck=\fP\fIvalue\fP
1123 .RS 4
1124 Three different levels of pickiness can be chosen:
1125 .sp
1126 \fBr\fP[\fBelaxed\fP]
1127 .RS 4
1128 Upper and lower case are accepted and equivalent, long name parts are truncated (e.g. \fIverylongname.foobar\fP becomes \fIverylong.foo\fP), leading and embedded spaces are accepted in each name part (name and extension).
1129 .RE
1130 .sp
1131 \fBn\fP[\fBormal\fP]
1132 .RS 4
1133 Like "relaxed", but many special characters (*, ?, <, spaces, etc.) are rejected. This is the default.
1134 .RE
1135 .sp
1136 \fBs\fP[\fBtrict\fP]
1137 .RS 4
1138 Like "normal", but names that contain long parts or special characters that are sometimes used on Linux but are not accepted by MS\-DOS (+, =, etc.) are rejected.
1139 .RE
1140 .RE
1141 .sp
1142 \fBcodepage=\fP\fIvalue\fP
1143 .RS 4
1144 Sets the codepage for converting to shortname characters on FAT and VFAT filesystems. By default, codepage 437 is used.
1145 .RE
1146 .sp
1147 \fBconv=\fP\fImode\fP
1148 .RS 4
1149 This option is obsolete and may fail or be ignored.
1150 .RE
1151 .sp
1152 \fBcvf_format=\fP\fImodule\fP
1153 .RS 4
1154 Forces the driver to use the CVF (Compressed Volume File) module cvf\fI_module\fP instead of auto\-detection. If the kernel supports \fBkmod\fP, the \fBcvf_format=\fP\fIxxx\fP option also controls on\-demand CVF module loading. This option is obsolete.
1155 .RE
1156 .sp
1157 \fBcvf_option=\fP\fIoption\fP
1158 .RS 4
1159 Option passed to the CVF module. This option is obsolete.
1160 .RE
1161 .sp
1162 \fBdebug\fP
1163 .RS 4
1164 Turn on the \fIdebug\fP flag. A version string and a list of filesystem parameters will be printed (these data are also printed if the parameters appear to be inconsistent).
1165 .RE
1166 .sp
1167 \fBdiscard\fP
1168 .RS 4
1169 If set, causes discard/TRIM commands to be issued to the block device when blocks are freed. This is useful for SSD devices and sparse/thinly\-provisioned LUNs.
1170 .RE
1171 .sp
1172 \fBdos1xfloppy\fP
1173 .RS 4
1174 If set, use a fallback default BIOS Parameter Block configuration, determined by backing device size. These static parameters match defaults assumed by DOS 1.x for 160 kiB, 180 kiB, 320 kiB, and 360 kiB floppies and floppy images.
1175 .RE
1176 .sp
1177 \fBerrors=\fP{\fBpanic\fP|\fBcontinue\fP|\fBremount\-ro\fP}
1178 .RS 4
1179 Specify FAT behavior on critical errors: panic, continue without doing anything, or remount the partition in read\-only mode (default behavior).
1180 .RE
1181 .sp
1182 \fBfat=\fP{\fB12\fP|\fB16\fP|\fB32\fP}
1183 .RS 4
1184 Specify a 12, 16 or 32 bit fat. This overrides the automatic FAT type detection routine. Use with caution!
1185 .RE
1186 .sp
1187 \fBiocharset=\fP\fIvalue\fP
1188 .RS 4
1189 Character set to use for converting between 8 bit characters and 16 bit Unicode characters. The default is iso8859\-1. Long filenames are stored on disk in Unicode format.
1190 .RE
1191 .sp
1192 \fBnfs=\fP{\fBstale_rw\fP|\fBnostale_ro\fP}
1193 .RS 4
1194 Enable this only if you want to export the FAT filesystem over NFS.
1195 .sp
1196 \fBstale_rw\fP: This option maintains an index (cache) of directory inodes which is used by the nfs\-related code to improve look\-ups. Full file operations (read/write) over NFS are supported but with cache eviction at NFS server, this could result in spurious \fBESTALE\fP errors.
1197 .sp
1198 \fBnostale_ro\fP: This option bases the inode number and file handle on the on\-disk location of a file in the FAT directory entry. This ensures that \fBESTALE\fP will not be returned after a file is evicted from the inode cache. However, it means that operations such as rename, create and unlink could cause file handles that previously pointed at one file to point at a different file, potentially causing data corruption. For this reason, this option also mounts the filesystem readonly.
1199 .sp
1200 To maintain backward compatibility, \fB\-o nfs\fP is also accepted, defaulting to \fBstale_rw\fP.
1201 .RE
1202 .sp
1203 \fBtz=UTC\fP
1204 .RS 4
1205 This option disables the conversion of timestamps between local time (as used by Windows on FAT) and UTC (which Linux uses internally). This is particularly useful when mounting devices (like digital cameras) that are set to UTC in order to avoid the pitfalls of local time.
1206 .RE
1207 .sp
1208 \fBtime_offset=\fP\fIminutes\fP
1209 .RS 4
1210 Set offset for conversion of timestamps from local time used by FAT to UTC. I.e., \fIminutes\fP will be subtracted from each timestamp to convert it to UTC used internally by Linux. This is useful when the time zone set in the kernel via \fBsettimeofday\fP(2) is not the time zone used by the filesystem. Note that this option still does not provide correct time stamps in all cases in presence of DST \- time stamps in a different DST setting will be off by one hour.
1211 .RE
1212 .sp
1213 \fBquiet\fP
1214 .RS 4
1215 Turn on the \fIquiet\fP flag. Attempts to chown or chmod files do not return errors, although they fail. Use with caution!
1216 .RE
1217 .sp
1218 \fBrodir\fP
1219 .RS 4
1220 FAT has the \fBATTR_RO\fP (read\-only) attribute. On Windows, the \fBATTR_RO\fP of the directory will just be ignored, and is used only by applications as a flag (e.g. it\(cqs set for the customized folder).
1221 .sp
1222 If you want to use \fBATTR_RO\fP as read\-only flag even for the directory, set this option.
1223 .RE
1224 .sp
1225 \fBshowexec\fP
1226 .RS 4
1227 If set, the execute permission bits of the file will be allowed only if the extension part of the name is .EXE, .COM, or .BAT. Not set by default.
1228 .RE
1229 .sp
1230 \fBsys_immutable\fP
1231 .RS 4
1232 If set, \fBATTR_SYS\fP attribute on FAT is handled as \fBIMMUTABLE\fP flag on Linux. Not set by default.
1233 .RE
1234 .sp
1235 \fBflush\fP
1236 .RS 4
1237 If set, the filesystem will try to flush to disk more early than normal. Not set by default.
1238 .RE
1239 .sp
1240 \fBusefree\fP
1241 .RS 4
1242 Use the "free clusters" value stored on \fBFSINFO\fP. It\(cqll be used to determine number of free clusters without scanning disk. But it\(cqs not used by default, because recent Windows don\(cqt update it correctly in some case. If you are sure the "free clusters" on \fBFSINFO\fP is correct, by this option you can avoid scanning disk.
1243 .RE
1244 .sp
1245 \fBdots\fP, \fBnodots\fP, \fBdotsOK=\fP[\fByes\fP|\fBno\fP]
1246 .RS 4
1247 Various misguided attempts to force Unix or DOS conventions onto a FAT filesystem.
1248 .RE
1249 .SS "Mount options for hfs"
1250 .sp
1251 \fBcreator=\fP\fIcccc\fP\fB, type=\fP\fIcccc\fP
1252 .RS 4
1253 Set the creator/type values as shown by the MacOS finder used for creating new files. Default values: \(aq????\(aq.
1254 .RE
1255 .sp
1256 \fBuid=\fP\fIn\fP\fB, gid=\fP\fIn\fP
1257 .RS 4
1258 Set the owner and group of all files. (Default: the UID and GID of the current process.)
1259 .RE
1260 .sp
1261 \fBdir_umask=\fP\fIn\fP\fB, file_umask=\fP\fIn\fP\fB, umask=\fP\fIn\fP
1262 .RS 4
1263 Set the umask used for all directories, all regular files, or all files and directories. Defaults to the umask of the current process.
1264 .RE
1265 .sp
1266 \fBsession=\fP\fIn\fP
1267 .RS 4
1268 Select the CDROM session to mount. Defaults to leaving that decision to the CDROM driver. This option will fail with anything but a CDROM as underlying device.
1269 .RE
1270 .sp
1271 \fBpart=\fP\fIn\fP
1272 .RS 4
1273 Select partition number n from the device. Only makes sense for CDROMs. Defaults to not parsing the partition table at all.
1274 .RE
1275 .sp
1276 \fBquiet\fP
1277 .RS 4
1278 Don\(cqt complain about invalid mount options.
1279 .RE
1280 .SS "Mount options for hpfs"
1281 .sp
1282 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1283 .RS 4
1284 Set the owner and group of all files. (Default: the UID and GID of the current process.)
1285 .RE
1286 .sp
1287 \fBumask=\fP\fIvalue\fP
1288 .RS 4
1289 Set the umask (the bitmask of the permissions that are \fBnot\fP present). The default is the umask of the current process. The value is given in octal.
1290 .RE
1291 .sp
1292 \fBcase=\fP{\fBlower\fP|\fBasis\fP}
1293 .RS 4
1294 Convert all files names to lower case, or leave them. (Default: \fBcase=lower\fP.)
1295 .RE
1296 .sp
1297 \fBconv=\fP\fImode\fP
1298 .RS 4
1299 This option is obsolete and may fail or being ignored.
1300 .RE
1301 .sp
1302 \fBnocheck\fP
1303 .RS 4
1304 Do not abort mounting when certain consistency checks fail.
1305 .RE
1306 .SS "Mount options for iso9660"
1307 .sp
1308 ISO 9660 is a standard describing a filesystem structure to be used on CD\-ROMs. (This filesystem type is also seen on some DVDs. See also the \fIudf\fP filesystem.)
1309 .sp
1310 Normal \fIiso9660\fP filenames appear in an 8.3 format (i.e., DOS\-like restrictions on filename length), and in addition all characters are in upper case. Also there is no field for file ownership, protection, number of links, provision for block/character devices, etc.
1311 .sp
1312 Rock Ridge is an extension to iso9660 that provides all of these UNIX\-like features. Basically there are extensions to each directory record that supply all of the additional information, and when Rock Ridge is in use, the filesystem is indistinguishable from a normal UNIX filesystem (except that it is read\-only, of course).
1313 .sp
1314 \fBnorock\fP
1315 .RS 4
1316 Disable the use of Rock Ridge extensions, even if available. Cf. \fBmap\fP.
1317 .RE
1318 .sp
1319 \fBnojoliet\fP
1320 .RS 4
1321 Disable the use of Microsoft Joliet extensions, even if available. Cf. \fBmap\fP.
1322 .RE
1323 .sp
1324 \fBcheck=\fP{\fBr\fP[\fBelaxed\fP]|\fBs\fP[\fBtrict\fP]}
1325 .RS 4
1326 With \fBcheck=relaxed\fP, a filename is first converted to lower case before doing the lookup. This is probably only meaningful together with \fBnorock\fP and \fBmap=normal\fP. (Default: \fBcheck=strict\fP.)
1327 .RE
1328 .sp
1329 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1330 .RS 4
1331 Give all files in the filesystem the indicated user or group id, possibly overriding the information found in the Rock Ridge extensions. (Default: \fBuid=0,gid=0\fP.)
1332 .RE
1333 .sp
1334 \fBmap=\fP{\fBn\fP[\fBormal\fP]|\fBo\fP[\fBff\fP]|\fBa\fP[\fBcorn\fP]}
1335 .RS 4
1336 For non\-Rock Ridge volumes, normal name translation maps upper to lower case ASCII, drops a trailing \(aq;1\(aq, and converts \(aq;\(aq to \(aq.\(aq. With \fBmap=off\fP no name translation is done. See \fBnorock\fP. (Default: \fBmap=normal\fP.) \fBmap=acorn\fP is like \fBmap=normal\fP but also apply Acorn extensions if present.
1337 .RE
1338 .sp
1339 \fBmode=\fP\fIvalue\fP
1340 .RS 4
1341 For non\-Rock Ridge volumes, give all files the indicated mode. (Default: read and execute permission for everybody.) Octal mode values require a leading 0.
1342 .RE
1343 .sp
1344 \fBunhide\fP
1345 .RS 4
1346 Also show hidden and associated files. (If the ordinary files and the associated or hidden files have the same filenames, this may make the ordinary files inaccessible.)
1347 .RE
1348 .sp
1349 \fBblock=\fP{\fB512\fP|\fB1024\fP|\fB2048\fP}
1350 .RS 4
1351 Set the block size to the indicated value. (Default: \fBblock=1024\fP.)
1352 .RE
1353 .sp
1354 \fBconv=\fP\fImode\fP
1355 .RS 4
1356 This option is obsolete and may fail or being ignored.
1357 .RE
1358 .sp
1359 \fBcruft\fP
1360 .RS 4
1361 If the high byte of the file length contains other garbage, set this mount option to ignore the high order bits of the file length. This implies that a file cannot be larger than 16 MB.
1362 .RE
1363 .sp
1364 \fBsession=\fP\fIx\fP
1365 .RS 4
1366 Select number of session on a multisession CD.
1367 .RE
1368 .sp
1369 \fBsbsector=\fP\fIxxx\fP
1370 .RS 4
1371 Session begins from sector xxx.
1372 .RE
1373 .sp
1374 The following options are the same as for vfat and specifying them only makes sense when using discs encoded using Microsoft\(cqs Joliet extensions.
1375 .sp
1376 \fBiocharset=\fP\fIvalue\fP
1377 .RS 4
1378 Character set to use for converting 16 bit Unicode characters on CD to 8 bit characters. The default is iso8859\-1.
1379 .RE
1380 .sp
1381 \fButf8\fP
1382 .RS 4
1383 Convert 16 bit Unicode characters on CD to UTF\-8.
1384 .RE
1385 .SS "Mount options for jfs"
1386 .sp
1387 \fBiocharset=\fP\fIname\fP
1388 .RS 4
1389 Character set to use for converting from Unicode to ASCII. The default is to do no conversion. Use \fBiocharset=utf8\fP for UTF8 translations. This requires \fBCONFIG_NLS_UTF8\fP to be set in the kernel \fI.config\fP file.
1390 .RE
1391 .sp
1392 \fBresize=\fP\fIvalue\fP
1393 .RS 4
1394 Resize the volume to \fIvalue\fP blocks. JFS only supports growing a volume, not shrinking it. This option is only valid during a remount, when the volume is mounted read\-write. The \fBresize\fP keyword with no value will grow the volume to the full size of the partition.
1395 .RE
1396 .sp
1397 \fBnointegrity\fP
1398 .RS 4
1399 Do not write to the journal. The primary use of this option is to allow for higher performance when restoring a volume from backup media. The integrity of the volume is not guaranteed if the system abnormally ends.
1400 .RE
1401 .sp
1402 \fBintegrity\fP
1403 .RS 4
1404 Default. Commit metadata changes to the journal. Use this option to remount a volume where the \fBnointegrity\fP option was previously specified in order to restore normal behavior.
1405 .RE
1406 .sp
1407 \fBerrors=\fP{\fBcontinue\fP|\fBremount\-ro\fP|\fBpanic\fP}
1408 .RS 4
1409 Define the behavior when an error is encountered. (Either ignore errors and just mark the filesystem erroneous and continue, or remount the filesystem read\-only, or panic and halt the system.)
1410 .RE
1411 .sp
1412 \fBnoquota\fP|\fBquota\fP|\fBusrquota\fP|\fBgrpquota\fP
1413 .RS 4
1414 These options are accepted but ignored.
1415 .RE
1416 .SS "Mount options for msdos"
1417 .sp
1418 See mount options for fat. If the \fImsdos\fP filesystem detects an inconsistency, it reports an error and sets the file system read\-only. The filesystem can be made writable again by remounting it.
1419 .SS "Mount options for ncpfs"
1420 .sp
1421 Just like \fInfs\fP, the \fIncpfs\fP implementation expects a binary argument (a \fIstruct ncp_mount_data\fP) to the \fBmount\fP(2) system call. This argument is constructed by \fBncpmount\fP(8) and the current version of \fBmount\fP (2.12) does not know anything about ncpfs.
1422 .SS "Mount options for ntfs"
1423 .sp
1424 \fBiocharset=\fP\fIname\fP
1425 .RS 4
1426 Character set to use when returning file names. Unlike VFAT, NTFS suppresses names that contain nonconvertible characters. Deprecated.
1427 .RE
1428 .sp
1429 \fBnls=\fP\fIname\fP
1430 .RS 4
1431 New name for the option earlier called \fIiocharset\fP.
1432 .RE
1433 .sp
1434 \fButf8\fP
1435 .RS 4
1436 Use UTF\-8 for converting file names.
1437 .RE
1438 .sp
1439 \fBuni_xlate=\fP{\fB0\fP|\fB1\fP|\fB2\fP}
1440 .RS 4
1441 For 0 (or \(aqno\(aq or \(aqfalse\(aq), do not use escape sequences for unknown Unicode characters. For 1 (or \(aqyes\(aq or \(aqtrue\(aq) or 2, use vfat\-style 4\-byte escape sequences starting with ":". Here 2 gives a little\-endian encoding and 1 a byteswapped bigendian encoding.
1442 .RE
1443 .sp
1444 \fBposix=[0|1]\fP
1445 .RS 4
1446 If enabled (posix=1), the filesystem distinguishes between upper and lower case. The 8.3 alias names are presented as hard links instead of being suppressed. This option is obsolete.
1447 .RE
1448 .sp
1449 \fBuid=\fP\fIvalue\fP, \fBgid=\fP\fIvalue\fP and \fBumask=\fP\fIvalue\fP
1450 .RS 4
1451 Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else.
1452 .RE
1453 .SS "Mount options for overlay"
1454 .sp
1455 Since Linux 3.18 the overlay pseudo filesystem implements a union mount for other filesystems.
1456 .sp
1457 An overlay filesystem combines two filesystems \- an \fBupper\fP filesystem and a \fBlower\fP filesystem. When a name exists in both filesystems, the object in the upper filesystem is visible while the object in the lower filesystem is either hidden or, in the case of directories, merged with the upper object.
1458 .sp
1459 The lower filesystem can be any filesystem supported by Linux and does not need to be writable. The lower filesystem can even be another overlayfs. The upper filesystem will normally be writable and if it is it must support the creation of trusted.* extended attributes, and must provide a valid d_type in readdir responses, so NFS is not suitable.
1460 .sp
1461 A read\-only overlay of two read\-only filesystems may use any filesystem type. The options \fBlowerdir\fP and \fBupperdir\fP are combined into a merged directory by using:
1462 .RS 3
1463 .ll -.6i
1464 .sp
1465 .if n .RS 4
1466 .nf
1467 .fam C
1468 mount \-t overlay  overlay  \(rs
1469   \-olowerdir=/lower,upperdir=/upper,workdir=/work  /merged
1470 .fam
1471 .fi
1472 .if n .RE
1473 .br
1474 .RE
1475 .ll
1476 .sp
1477 \fBlowerdir=\fP\fIdirectory\fP
1478 .RS 4
1479 Any filesystem, does not need to be on a writable filesystem.
1480 .RE
1481 .sp
1482 \fBupperdir=\fP\fIdirectory\fP
1483 .RS 4
1484 The upperdir is normally on a writable filesystem.
1485 .RE
1486 .sp
1487 \fBworkdir=\fP\fIdirectory\fP
1488 .RS 4
1489 The workdir needs to be an empty directory on the same filesystem as upperdir.
1490 .RE
1491 .sp
1492 \fBuserxattr\fP
1493 .RS 4
1494 Use the "\fBuser.overlay.\fP" xattr namespace instead of "\fBtrusted.overlay.\fP". This is useful for unprivileged mounting of overlayfs.
1495 .RE
1496 .sp
1497 \fBredirect_dir=\fP{\fBon\fP|\fBoff\fP|\fBfollow\fP|\fBnofollow\fP}
1498 .RS 4
1499 If the \fIredirect_dir\fP feature is enabled, then the directory will be copied up (but not the contents). Then the "{\fBtrusted\fP|\fBuser\fP}.overlay.redirect" extended attribute is set to the path of the original location from the root of the overlay. Finally the directory is moved to the new location.
1500 .sp
1501 \fBon\fP
1502 .RS 4
1503 Redirects are enabled.
1504 .RE
1505 .sp
1506 \fBoff\fP
1507 .RS 4
1508 Redirects are not created and only followed if "redirect_always_follow" feature is enabled in the kernel/module config.
1509 .RE
1510 .sp
1511 \fBfollow\fP
1512 .RS 4
1513 Redirects are not created, but followed.
1514 .RE
1515 .sp
1516 \fBnofollow\fP
1517 .RS 4
1518 Redirects are not created and not followed (equivalent to "redirect_dir=off" if "redirect_always_follow" feature is not enabled).
1519 .RE
1520 .RE
1521 .sp
1522 \fBindex=\fP{\fBon\fP|\fBoff\fP}
1523 .RS 4
1524 Inode index. If this feature is disabled and a file with multiple hard links is copied up, then this will "break" the link. Changes will not be propagated to other names referring to the same inode.
1525 .RE
1526 .sp
1527 \fBuuid=\fP{\fBon\fP|\fBoff\fP}
1528 .RS 4
1529 Can be used to replace UUID of the underlying filesystem in file handles with null, and effectively disable UUID checks. This can be useful in case the underlying disk is copied and the UUID of this copy is changed. This is only applicable if all lower/upper/work directories are on the same filesystem, otherwise it will fallback to normal behaviour.
1530 .RE
1531 .sp
1532 \fBnfs_export=\fP{\fBon\fP|\fBoff\fP}
1533 .RS 4
1534 When the underlying filesystems supports NFS export and the "nfs_export"
1535 feature is enabled, an overlay filesystem may be exported to NFS.
1536 .sp
1537 With the "nfs_export" feature, on copy_up of any lower object, an index entry
1538 is created under the index directory. The index entry name is the hexadecimal
1539 representation of the copy up origin file handle. For a non\-directory object,
1540 the index entry is a hard link to the upper inode. For a directory object, the
1541 index entry has an extended attribute "{\fBtrusted\fP|\fBuser\fP}.overlay.upper"
1542 with an encoded file handle of the upper directory inode.
1543 .sp
1544 When encoding a file handle from an overlay filesystem object, the following rules apply
1545 .RS 4
1546 .sp
1547 .RS 4
1548 .ie n \{\
1549 \h'-04'\(bu\h'+03'\c
1550 .\}
1551 .el \{\
1552 .  sp -1
1553 .  IP \(bu 2.3
1554 .\}
1555 For a non\-upper object, encode a lower file handle from lower inode
1556 .RE
1557 .sp
1558 .RS 4
1559 .ie n \{\
1560 \h'-04'\(bu\h'+03'\c
1561 .\}
1562 .el \{\
1563 .  sp -1
1564 .  IP \(bu 2.3
1565 .\}
1566 For an indexed object, encode a lower file handle from copy_up origin
1567 .RE
1568 .sp
1569 .RS 4
1570 .ie n \{\
1571 \h'-04'\(bu\h'+03'\c
1572 .\}
1573 .el \{\
1574 .  sp -1
1575 .  IP \(bu 2.3
1576 .\}
1577 For a pure\-upper object and for an existing non\-indexed upper object, encode an upper file handle from upper inode
1578 .RE
1579 .RE
1580 .sp
1581 The encoded overlay file handle includes
1582 .RS 4
1583 .sp
1584 .RS 4
1585 .ie n \{\
1586 \h'-04'\(bu\h'+03'\c
1587 .\}
1588 .el \{\
1589 .  sp -1
1590 .  IP \(bu 2.3
1591 .\}
1592 Header including path type information (e.g. lower/upper)
1593 .RE
1594 .sp
1595 .RS 4
1596 .ie n \{\
1597 \h'-04'\(bu\h'+03'\c
1598 .\}
1599 .el \{\
1600 .  sp -1
1601 .  IP \(bu 2.3
1602 .\}
1603 UUID of the underlying filesystem
1604 .RE
1605 .sp
1606 .RS 4
1607 .ie n \{\
1608 \h'-04'\(bu\h'+03'\c
1609 .\}
1610 .el \{\
1611 .  sp -1
1612 .  IP \(bu 2.3
1613 .\}
1614 Underlying filesystem encoding of underlying inode
1615 .RE
1616 .RE
1617 .sp
1618 This encoding format is identical to the encoding format of file handles that are stored in extended attribute "{\fBtrusted\fP|\fBuser\fP}.overlay.origin". When decoding an overlay file handle, the following steps are followed
1619 .RS 4
1620 .sp
1621 .RS 4
1622 .ie n \{\
1623 \h'-04'\(bu\h'+03'\c
1624 .\}
1625 .el \{\
1626 .  sp -1
1627 .  IP \(bu 2.3
1628 .\}
1629 Find underlying layer by UUID and path type information.
1630 .RE
1631 .sp
1632 .RS 4
1633 .ie n \{\
1634 \h'-04'\(bu\h'+03'\c
1635 .\}
1636 .el \{\
1637 .  sp -1
1638 .  IP \(bu 2.3
1639 .\}
1640 Decode the underlying filesystem file handle to underlying dentry.
1641 .RE
1642 .sp
1643 .RS 4
1644 .ie n \{\
1645 \h'-04'\(bu\h'+03'\c
1646 .\}
1647 .el \{\
1648 .  sp -1
1649 .  IP \(bu 2.3
1650 .\}
1651 For a lower file handle, lookup the handle in index directory by name.
1652 .RE
1653 .sp
1654 .RS 4
1655 .ie n \{\
1656 \h'-04'\(bu\h'+03'\c
1657 .\}
1658 .el \{\
1659 .  sp -1
1660 .  IP \(bu 2.3
1661 .\}
1662 If a whiteout is found in index, return \fBESTALE\fP. This represents an overlay object that was deleted after its file handle was encoded.
1663 .RE
1664 .sp
1665 .RS 4
1666 .ie n \{\
1667 \h'-04'\(bu\h'+03'\c
1668 .\}
1669 .el \{\
1670 .  sp -1
1671 .  IP \(bu 2.3
1672 .\}
1673 For a non\-directory, instantiate a disconnected overlay dentry from the decoded underlying dentry, the path type and index inode, if found.
1674 .RE
1675 .sp
1676 .RS 4
1677 .ie n \{\
1678 \h'-04'\(bu\h'+03'\c
1679 .\}
1680 .el \{\
1681 .  sp -1
1682 .  IP \(bu 2.3
1683 .\}
1684 For a directory, use the connected underlying decoded dentry, path type and index, to lookup a connected overlay dentry.
1685 .RE
1686 .RE
1687 .sp
1688 Decoding a non\-directory file handle may return a disconnected dentry. copy_up
1689 of that disconnected dentry will create an upper index entry with no upper
1690 alias.
1691 .sp
1692 When overlay filesystem has multiple lower layers, a middle layer directory may
1693 have a "redirect" to lower directory. Because middle layer "redirects" are not
1694 indexed, a lower file handle that was encoded from the "redirect" origin
1695 directory, cannot be used to find the middle or upper layer directory.
1696 Similarly, a lower file handle that was encoded from a descendant of the
1697 "redirect" origin directory, cannot be used to reconstruct a connected overlay
1698 path. To mitigate the cases of directories that cannot be decoded from a lower
1699 file handle, these directories are copied up on encode and encoded as an upper
1700 file handle. On an overlay filesystem with no upper layer this mitigation
1701 cannot be used NFS export in this setup requires turning off redirect follow
1702 (e.g. "\fIredirect_dir=nofollow\fP").
1703 .sp
1704 The overlay filesystem does not support non\-directory connectable file handles, so exporting with the \fIsubtree_check\fP exportfs configuration will cause failures to lookup files over NFS.
1705 .sp
1706 When the NFS export feature is enabled, all directory index entries are verified on mount time to check that upper file handles are not stale. This verification may cause significant overhead in some cases.
1707 .sp
1708 Note: the mount options \fIindex=off,nfs_export=on\fP are conflicting for a
1709 read\-write mount and will result in an error.
1710 .RE
1711 .sp
1712 \fBxino=\fP{\fBon\fP|\fBoff\fP|\fBauto\fP}
1713 .RS 4
1714 The "xino" feature composes a unique object identifier from the real object st_ino and an underlying fsid index. The "xino" feature uses the high inode number bits for fsid, because the underlying filesystems rarely use the high inode number bits. In case the underlying inode number does overflow into the high xino bits, overlay filesystem will fall back to the non xino behavior for that inode.
1715 .sp
1716 For a detailed description of the effect of this option please refer to \c
1717 .URL "https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html?highlight=overlayfs" "" ""
1718 .RE
1719 .sp
1720 \fBmetacopy=\fP{\fBon\fP|\fBoff\fP}
1721 .RS 4
1722 When metadata only copy up feature is enabled, overlayfs will only copy up metadata (as opposed to whole file), when a metadata specific operation like chown/chmod is performed. Full file will be copied up later when file is opened for WRITE operation.
1723 .sp
1724 In other words, this is delayed data copy up operation and data is copied up when there is a need to actually modify data.
1725 .RE
1726 .sp
1727 \fBvolatile\fP
1728 .RS 4
1729 Volatile mounts are not guaranteed to survive a crash. It is strongly recommended that volatile mounts are only used if data written to the overlay can be recreated without significant effort.
1730 .sp
1731 The advantage of mounting with the "volatile" option is that all forms of sync calls to the upper filesystem are omitted.
1732 .sp
1733 In order to avoid a giving a false sense of safety, the syncfs (and fsync) semantics of volatile mounts are slightly different than that of the rest of VFS. If any writeback error occurs on the upperdir’s filesystem after a volatile mount takes place, all sync functions will return an error. Once this condition is reached, the filesystem will not recover, and every subsequent sync call will return an error, even if the upperdir has not experience a new error since the last sync call.
1734 .sp
1735 When overlay is mounted with "volatile" option, the directory "$workdir/work/incompat/volatile" is created. During next mount, overlay checks for this directory and refuses to mount if present. This is a strong indicator that user should throw away upper and work directories and create fresh one. In very limited cases where the user knows that the system has not crashed and contents of upperdir are intact, The "volatile" directory can be removed.
1736 .RE
1737 .SS "Mount options for reiserfs"
1738 .sp
1739 Reiserfs is a journaling filesystem.
1740 .sp
1741 \fBconv\fP
1742 .RS 4
1743 Instructs version 3.6 reiserfs software to mount a version 3.5 filesystem, using the 3.6 format for newly created objects. This filesystem will no longer be compatible with reiserfs 3.5 tools.
1744 .RE
1745 .sp
1746 \fBhash=\fP{\fBrupasov\fP|\fBtea\fP|\fBr5\fP|\fBdetect\fP}
1747 .RS 4
1748 Choose which hash function reiserfs will use to find files within directories.
1749 .sp
1750 \fBrupasov\fP
1751 .RS 4
1752 A hash invented by Yury Yu. Rupasov. It is fast and preserves locality, mapping lexicographically close file names to close hash values. This option should not be used, as it causes a high probability of hash collisions.
1753 .RE
1754 .sp
1755 \fBtea\fP
1756 .RS 4
1757 A Davis\-Meyer function implemented by Jeremy Fitzhardinge. It uses hash permuting bits in the name. It gets high randomness and, therefore, low probability of hash collisions at some CPU cost. This may be used if \fBEHASHCOLLISION\fP errors are experienced with the r5 hash.
1758 .RE
1759 .sp
1760 \fBr5\fP
1761 .RS 4
1762 A modified version of the rupasov hash. It is used by default and is the best choice unless the filesystem has huge directories and unusual file\-name patterns.
1763 .RE
1764 .sp
1765 \fBdetect\fP
1766 .RS 4
1767 Instructs \fBmount\fP to detect which hash function is in use by examining the filesystem being mounted, and to write this information into the reiserfs superblock. This is only useful on the first mount of an old format filesystem.
1768 .RE
1769 .RE
1770 .sp
1771 \fBhashed_relocation\fP
1772 .RS 4
1773 Tunes the block allocator. This may provide performance improvements in some situations.
1774 .RE
1775 .sp
1776 \fBno_unhashed_relocation\fP
1777 .RS 4
1778 Tunes the block allocator. This may provide performance improvements in some situations.
1779 .RE
1780 .sp
1781 \fBnoborder\fP
1782 .RS 4
1783 Disable the border allocator algorithm invented by Yury Yu. Rupasov. This may provide performance improvements in some situations.
1784 .RE
1785 .sp
1786 \fBnolog\fP
1787 .RS 4
1788 Disable journaling. This will provide slight performance improvements in some situations at the cost of losing reiserfs\(cqs fast recovery from crashes. Even with this option turned on, reiserfs still performs all journaling operations, save for actual writes into its journaling area. Implementation of \fInolog\fP is a work in progress.
1789 .RE
1790 .sp
1791 \fBnotail\fP
1792 .RS 4
1793 By default, reiserfs stores small files and \(aqfile tails\(aq directly into its tree. This confuses some utilities such as \fBlilo\fP(8). This option is used to disable packing of files into the tree.
1794 .RE
1795 .sp
1796 \fBreplayonly\fP
1797 .RS 4
1798 Replay the transactions which are in the journal, but do not actually mount the filesystem. Mainly used by \fIreiserfsck\fP.
1799 .RE
1800 .sp
1801 \fBresize=\fP\fInumber\fP
1802 .RS 4
1803 A remount option which permits online expansion of reiserfs partitions. Instructs reiserfs to assume that the device has \fInumber\fP blocks. This option is designed for use with devices which are under logical volume management (LVM). There is a special \fIresizer\fP utility which can be obtained from \fI\c
1804 .URL "ftp://ftp.namesys.com/pub/reiserfsprogs" "" "\fP."
1805 .RE
1806 .sp
1807 \fBuser_xattr\fP
1808 .RS 4
1809 Enable Extended User Attributes. See the \fBattr\fP(1) manual page.
1810 .RE
1811 .sp
1812 \fBacl\fP
1813 .RS 4
1814 Enable POSIX Access Control Lists. See the \fBacl\fP(5) manual page.
1815 .RE
1816 .sp
1817 \fBbarrier=none\fP / \fBbarrier=flush\fP
1818 .RS 4
1819 This disables / enables the use of write barriers in the journaling code. \fBbarrier=none\fP disables, \fBbarrier=flush\fP enables (default). This also requires an IO stack which can support barriers, and if reiserfs gets an error on a barrier write, it will disable barriers again with a warning. Write barriers enforce proper on\-disk ordering of journal commits, making volatile disk write caches safe to use, at some performance penalty. If your disks are battery\-backed in one way or another, disabling barriers may safely improve performance.
1820 .RE
1821 .SS "Mount options for ubifs"
1822 .sp
1823 UBIFS is a flash filesystem which works on top of UBI volumes. Note that \fBatime\fP is not supported and is always turned off.
1824 .sp
1825 The device name may be specified as
1826 .RS 3
1827 .ll -.6i
1828 .sp
1829 \fBubiX_Y\fP
1830 .RS 4
1831 UBI device number \fBX\fP, volume number \fBY\fP
1832 .RE
1833 .sp
1834 \fBubiY\fP
1835 .RS 4
1836 UBI device number \fB0\fP, volume number \fBY\fP
1837 .RE
1838 .sp
1839 \fBubiX:NAME\fP
1840 .RS 4
1841 UBI device number \fBX\fP, volume with name \fBNAME\fP
1842 .RE
1843 .sp
1844 \fBubi:NAME\fP
1845 .RS 4
1846 UBI device number \fB0\fP, volume with name \fBNAME\fP
1847 .RE
1848 .br
1849 .RE
1850 .ll
1851 .sp
1852 Alternative \fB!\fP separator may be used instead of \fB:\fP.
1853 .sp
1854 The following mount options are available:
1855 .sp
1856 \fBbulk_read\fP
1857 .RS 4
1858 Enable bulk\-read. VFS read\-ahead is disabled because it slows down the filesystem. Bulk\-Read is an internal optimization. Some flashes may read faster if the data are read at one go, rather than at several read requests. For example, OneNAND can do "read\-while\-load" if it reads more than one NAND page.
1859 .RE
1860 .sp
1861 \fBno_bulk_read\fP
1862 .RS 4
1863 Do not bulk\-read. This is the default.
1864 .RE
1865 .sp
1866 \fBchk_data_crc\fP
1867 .RS 4
1868 Check data CRC\-32 checksums. This is the default.
1869 .RE
1870 .sp
1871 \fBno_chk_data_crc\fP
1872 .RS 4
1873 Do not check data CRC\-32 checksums. With this option, the filesystem does not check CRC\-32 checksum for data, but it does check it for the internal indexing information. This option only affects reading, not writing. CRC\-32 is always calculated when writing the data.
1874 .RE
1875 .sp
1876 \fBcompr=\fP{\fBnone\fP|\fBlzo\fP|\fBzlib\fP}
1877 .RS 4
1878 Select the default compressor which is used when new files are written. It is still possible to read compressed files if mounted with the \fBnone\fP option.
1879 .RE
1880 .SS "Mount options for udf"
1881 .sp
1882 UDF is the "Universal Disk Format" filesystem defined by OSTA, the Optical Storage Technology Association, and is often used for DVD\-ROM, frequently in the form of a hybrid UDF/ISO\-9660 filesystem. It is, however, perfectly usable by itself on disk drives, flash drives and other block devices. See also \fIiso9660\fP.
1883 .sp
1884 \fBuid=\fP
1885 .RS 4
1886 Make all files in the filesystem belong to the given user. uid=forget can be specified independently of (or usually in addition to) uid=<user> and results in UDF not storing uids to the media. In fact the recorded uid is the 32\-bit overflow uid \-1 as defined by the UDF standard. The value is given as either <user> which is a valid user name or the corresponding decimal user id, or the special string "forget".
1887 .RE
1888 .sp
1889 \fBgid=\fP
1890 .RS 4
1891 Make all files in the filesystem belong to the given group. gid=forget can be specified independently of (or usually in addition to) gid=<group> and results in UDF not storing gids to the media. In fact the recorded gid is the 32\-bit overflow gid \-1 as defined by the UDF standard. The value is given as either <group> which is a valid group name or the corresponding decimal group id, or the special string "forget".
1892 .RE
1893 .sp
1894 \fBumask=\fP
1895 .RS 4
1896 Mask out the given permissions from all inodes read from the filesystem. The value is given in octal.
1897 .RE
1898 .sp
1899 \fBmode=\fP
1900 .RS 4
1901 If \fBmode=\fP is set the permissions of all non\-directory inodes read from the filesystem will be set to the given mode. The value is given in octal.
1902 .RE
1903 .sp
1904 \fBdmode=\fP
1905 .RS 4
1906 If \fBdmode=\fP is set the permissions of all directory inodes read from the filesystem will be set to the given dmode. The value is given in octal.
1907 .RE
1908 .sp
1909 \fBbs=\fP
1910 .RS 4
1911 Set the block size. Default value prior to kernel version 2.6.30 was 2048. Since 2.6.30 and prior to 4.11 it was logical device block size with fallback to 2048. Since 4.11 it is logical block size with fallback to any valid block size between logical device block size and 4096.
1912 .sp
1913 For other details see the \fBmkudffs\fP(8) 2.0+ manpage, see the \fBCOMPATIBILITY\fP and \fBBLOCK SIZE\fP sections.
1914 .RE
1915 .sp
1916 \fBunhide\fP
1917 .RS 4
1918 Show otherwise hidden files.
1919 .RE
1920 .sp
1921 \fBundelete\fP
1922 .RS 4
1923 Show deleted files in lists.
1924 .RE
1925 .sp
1926 \fBadinicb\fP
1927 .RS 4
1928 Embed data in the inode. (default)
1929 .RE
1930 .sp
1931 \fBnoadinicb\fP
1932 .RS 4
1933 Don\(cqt embed data in the inode.
1934 .RE
1935 .sp
1936 \fBshortad\fP
1937 .RS 4
1938 Use short UDF address descriptors.
1939 .RE
1940 .sp
1941 \fBlongad\fP
1942 .RS 4
1943 Use long UDF address descriptors. (default)
1944 .RE
1945 .sp
1946 \fBnostrict\fP
1947 .RS 4
1948 Unset strict conformance.
1949 .RE
1950 .sp
1951 \fBiocharset=\fP
1952 .RS 4
1953 Set the NLS character set. This requires kernel compiled with \fBCONFIG_UDF_NLS\fP option.
1954 .RE
1955 .sp
1956 \fButf8\fP
1957 .RS 4
1958 Set the UTF\-8 character set.
1959 .RE
1960 .SS "Mount options for debugging and disaster recovery"
1961 .sp
1962 \fBnovrs\fP
1963 .RS 4
1964 Ignore the Volume Recognition Sequence and attempt to mount anyway.
1965 .RE
1966 .sp
1967 \fBsession=\fP
1968 .RS 4
1969 Select the session number for multi\-session recorded optical media. (default= last session)
1970 .RE
1971 .sp
1972 \fBanchor=\fP
1973 .RS 4
1974 Override standard anchor location. (default= 256)
1975 .RE
1976 .sp
1977 \fBlastblock=\fP
1978 .RS 4
1979 Set the last block of the filesystem.
1980 .RE
1981 .SS "Unused historical mount options that may be encountered and should be removed"
1982 .sp
1983 \fBuid=ignore\fP
1984 .RS 4
1985 Ignored, use uid=<user> instead.
1986 .RE
1987 .sp
1988 \fBgid=ignore\fP
1989 .RS 4
1990 Ignored, use gid=<group> instead.
1991 .RE
1992 .sp
1993 \fBvolume=\fP
1994 .RS 4
1995 Unimplemented and ignored.
1996 .RE
1997 .sp
1998 \fBpartition=\fP
1999 .RS 4
2000 Unimplemented and ignored.
2001 .RE
2002 .sp
2003 \fBfileset=\fP
2004 .RS 4
2005 Unimplemented and ignored.
2006 .RE
2007 .sp
2008 \fBrootdir=\fP
2009 .RS 4
2010 Unimplemented and ignored.
2011 .RE
2012 .SS "Mount options for ufs"
2013 .sp
2014 \fBufstype=\fP\fIvalue\fP
2015 .RS 4
2016 UFS is a filesystem widely used in different operating systems. The problem are differences among implementations. Features of some implementations are undocumented, so its hard to recognize the type of ufs automatically. That\(cqs why the user must specify the type of ufs by mount option. Possible values are:
2017 .sp
2018 \fBold\fP
2019 .RS 4
2020 Old format of ufs, this is the default, read only. (Don\(cqt forget to give the \fB\-r\fP option.)
2021 .RE
2022 .sp
2023 \fB44bsd\fP
2024 .RS 4
2025 For filesystems created by a BSD\-like system (NetBSD, FreeBSD, OpenBSD).
2026 .RE
2027 .sp
2028 \fBufs2\fP
2029 .RS 4
2030 Used in FreeBSD 5.x supported as read\-write.
2031 .RE
2032 .sp
2033 \fB5xbsd\fP
2034 .RS 4
2035 Synonym for ufs2.
2036 .RE
2037 .sp
2038 \fBsun\fP
2039 .RS 4
2040 For filesystems created by SunOS or Solaris on Sparc.
2041 .RE
2042 .sp
2043 \fBsunx86\fP
2044 .RS 4
2045 For filesystems created by Solaris on x86.
2046 .RE
2047 .sp
2048 \fBhp\fP
2049 .RS 4
2050 For filesystems created by HP\-UX, read\-only.
2051 .RE
2052 .sp
2053 \fBnextstep\fP
2054 .RS 4
2055 For filesystems created by NeXTStep (on NeXT station) (currently read only).
2056 .RE
2057 .sp
2058 \fBnextstep\-cd\fP
2059 .RS 4
2060 For NextStep CDROMs (block_size == 2048), read\-only.
2061 .RE
2062 .sp
2063 \fBopenstep\fP
2064 .RS 4
2065 For filesystems created by OpenStep (currently read only). The same filesystem type is also used by macOS.
2066 .RE
2067 .RE
2068 .sp
2069 \fBonerror=\fP\fIvalue\fP
2070 .RS 4
2071 Set behavior on error:
2072 .sp
2073 \fBpanic\fP
2074 .RS 4
2075 If an error is encountered, cause a kernel panic.
2076 .RE
2077 .sp
2078 [\fBlock\fP|\fBumount\fP|\fBrepair\fP]
2079 .RS 4
2080 These mount options don\(cqt do anything at present; when an error is encountered only a console message is printed.
2081 .RE
2082 .RE
2083 .SS "Mount options for umsdos"
2084 .sp
2085 See mount options for msdos. The \fBdotsOK\fP option is explicitly killed by \fIumsdos\fP.
2086 .SS "Mount options for vfat"
2087 .sp
2088 First of all, the mount options for \fIfat\fP are recognized. The \fBdotsOK\fP option is explicitly killed by \fIvfat\fP. Furthermore, there are
2089 .sp
2090 \fBuni_xlate\fP
2091 .RS 4
2092 Translate unhandled Unicode characters to special escaped sequences. This lets you backup and restore filenames that are created with any Unicode characters. Without this option, a \(aq?\(aq is used when no translation is possible. The escape character is \(aq:\(aq because it is otherwise invalid on the vfat filesystem. The escape sequence that gets used, where u is the Unicode character, is: \(aq:\(aq, (u & 0x3f), ((u>>6) & 0x3f), (u>>12).
2093 .RE
2094 .sp
2095 \fBposix\fP
2096 .RS 4
2097 Allow two files with names that only differ in case. This option is obsolete.
2098 .RE
2099 .sp
2100 \fBnonumtail\fP
2101 .RS 4
2102 First try to make a short name without sequence number, before trying \fIname~num.ext\fP.
2103 .RE
2104 .sp
2105 \fButf8\fP
2106 .RS 4
2107 UTF8 is the filesystem safe 8\-bit encoding of Unicode that is used by the console. It can be enabled for the filesystem with this option or disabled with utf8=0, utf8=no or utf8=false. If \fIuni_xlate\fP gets set, UTF8 gets disabled.
2108 .RE
2109 .sp
2110 \fBshortname=\fP\fImode\fP
2111 .RS 4
2112 Defines the behavior for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be the preferred one for display. There are four \fImode\fPs:
2113 .sp
2114 \fBlower\fP
2115 .RS 4
2116 Force the short name to lower case upon display; store a long name when the short name is not all upper case.
2117 .RE
2118 .sp
2119 \fBwin95\fP
2120 .RS 4
2121 Force the short name to upper case upon display; store a long name when the short name is not all upper case.
2122 .RE
2123 .sp
2124 \fBwinnt\fP
2125 .RS 4
2126 Display the short name as is; store a long name when the short name is not all lower case or all upper case.
2127 .RE
2128 .sp
2129 \fBmixed\fP
2130 .RS 4
2131 Display the short name as is; store a long name when the short name is not all upper case. This mode is the default since Linux 2.6.32.
2132 .RE
2133 .RE
2134 .SS "Mount options for usbfs"
2135 .sp
2136 \fBdevuid=\fP\fIuid\fP and \fBdevgid=\fP\fIgid\fP and \fBdevmode=\fP\fImode\fP
2137 .RS 4
2138 Set the owner and group and mode of the device files in the usbfs filesystem (default: uid=gid=0, mode=0644). The mode is given in octal.
2139 .RE
2140 .sp
2141 \fBbusuid=\fP\fIuid\fP and \fBbusgid=\fP\fIgid\fP and \fBbusmode=\fP\fImode\fP
2142 .RS 4
2143 Set the owner and group and mode of the bus directories in the usbfs filesystem (default: uid=gid=0, mode=0555). The mode is given in octal.
2144 .RE
2145 .sp
2146 \fBlistuid=\fP\fIuid\fP and \fBlistgid=\fP\fIgid\fP and \fBlistmode=\fP\fImode\fP
2147 .RS 4
2148 Set the owner and group and mode of the file \fIdevices\fP (default: uid=gid=0, mode=0444). The mode is given in octal.
2149 .RE
2150 .SH "DM\-VERITY SUPPORT"
2151 .sp
2152 The device\-mapper verity target provides read\-only transparent integrity checking of block devices using kernel crypto API. The \fBmount\fP command can open the dm\-verity device and do the integrity verification before the device filesystem is mounted. Requires libcryptsetup with in libmount (optionally via \fBdlopen\fP(3)). If libcryptsetup supports extracting the root hash of an already mounted device, existing devices will be automatically reused in case of a match. Mount options for dm\-verity:
2153 .sp
2154 \fBverity.hashdevice=\fP\fIpath\fP
2155 .RS 4
2156 Path to the hash tree device associated with the source volume to pass to dm\-verity.
2157 .RE
2158 .sp
2159 \fBverity.roothash=\fP\fIhex\fP
2160 .RS 4
2161 Hex\-encoded hash of the root of \fIverity.hashdevice\fP. Mutually exclusive with \fIverity.roothashfile.\fP
2162 .RE
2163 .sp
2164 \fBverity.roothashfile=\fP\fIpath\fP
2165 .RS 4
2166 Path to file containing the hex\-encoded hash of the root of \fIverity.hashdevice.\fP Mutually exclusive with \fIverity.roothash.\fP
2167 .RE
2168 .sp
2169 \fBverity.hashoffset=\fP\fIoffset\fP
2170 .RS 4
2171 If the hash tree device is embedded in the source volume, \fIoffset\fP (default: 0) is used by dm\-verity to get to the tree.
2172 .RE
2173 .sp
2174 \fBverity.fecdevice=\fP\fIpath\fP
2175 .RS 4
2176 Path to the Forward Error Correction (FEC) device associated with the source volume to pass to dm\-verity. Optional. Requires kernel built with \fBCONFIG_DM_VERITY_FEC\fP.
2177 .RE
2178 .sp
2179 \fBverity.fecoffset=\fP\fIoffset\fP
2180 .RS 4
2181 If the FEC device is embedded in the source volume, \fIoffset\fP (default: 0) is used by dm\-verity to get to the FEC area. Optional.
2182 .RE
2183 .sp
2184 \fBverity.fecroots=\fP\fIvalue\fP
2185 .RS 4
2186 Parity bytes for FEC (default: 2). Optional.
2187 .RE
2188 .sp
2189 \fBverity.roothashsig=\fP\fIpath\fP
2190 .RS 4
2191 Path to \fBpkcs7\fP(1ssl) signature of root hash hex string. Requires crypt_activate_by_signed_key() from cryptsetup and kernel built with \fBCONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG\fP. For device reuse, signatures have to be either used by all mounts of a device or by none. Optional.
2192 .RE
2193 .sp
2194 \fBverity.oncorruption=\fP\fIignore\fP|\fIrestart\fP|\fIpanic\fP
2195 .RS 4
2196 Instruct the kernel to ignore, reboot or panic when corruption is detected. By default the I/O operation simply fails. Requires Linux 4.1 or newer, and libcrypsetup 2.3.4 or newer. Optional.
2197 .RE
2198 .sp
2199 Supported since util\-linux v2.35.
2200 .sp
2201 For example commands:
2202 .sp
2203 .if n .RS 4
2204 .nf
2205 .fam C
2206 mksquashfs /etc /tmp/etc.squashfs
2207 dd if=/dev/zero of=/tmp/etc.hash bs=1M count=10
2208 veritysetup format /tmp/etc.squashfs /tmp/etc.hash
2209 openssl smime \-sign \-in <hash> \-nocerts \-inkey private.key \(rs
2210 \-signer private.crt \-noattr \-binary \-outform der \-out /tmp/etc.roothash.p7s
2211 mount \-o verity.hashdevice=/tmp/etc.hash,verity.roothash=<hash>,\(rs
2212 verity.roothashsig=/tmp/etc.roothash.p7s /tmp/etc.squashfs /mnt
2213 .fam
2214 .fi
2215 .if n .RE
2216 .sp
2217 create squashfs image from \fI/etc\fP directory, verity hash device and mount verified filesystem image to \fI/mnt\fP. The kernel will verify that the root hash is signed by a key from the kernel keyring if roothashsig is used.
2218 .SH "LOOP\-DEVICE SUPPORT"
2219 .sp
2220 One further possible type is a mount via the loop device. For example, the command
2221 .RS 3
2222 .ll -.6i
2223 .sp
2224 \fBmount /tmp/disk.img /mnt \-t vfat \-o loop=/dev/loop3\fP
2225 .br
2226 .RE
2227 .ll
2228 .sp
2229 will set up the loop device \fI/dev/loop3\fP to correspond to the file \fI/tmp/disk.img\fP, and then mount this device on \fI/mnt\fP.
2230 .sp
2231 If no explicit loop device is mentioned (but just an option \(aq\fB\-o loop\fP\(aq is given), then \fBmount\fP will try to find some unused loop device and use that, for example
2232 .RS 3
2233 .ll -.6i
2234 .sp
2235 \fBmount /tmp/disk.img /mnt \-o loop\fP
2236 .br
2237 .RE
2238 .ll
2239 .sp
2240 The \fBmount\fP command \fBautomatically\fP creates a loop device from a regular file if a filesystem type is not specified or the filesystem is known for libblkid, for example:
2241 .RS 3
2242 .ll -.6i
2243 .sp
2244 \fBmount /tmp/disk.img /mnt\fP
2245 .sp
2246 \fBmount \-t ext4 /tmp/disk.img /mnt\fP
2247 .br
2248 .RE
2249 .ll
2250 .sp
2251 This type of mount knows about three options, namely \fBloop\fP, \fBoffset\fP and \fBsizelimit\fP, that are really options to \fBlosetup\fP(8). (These options can be used in addition to those specific to the filesystem type.)
2252 .sp
2253 Since Linux 2.6.25 auto\-destruction of loop devices is supported, meaning that any loop device allocated by \fBmount\fP will be freed by \fBumount\fP independently of \fI/etc/mtab\fP.
2254 .sp
2255 You can also free a loop device by hand, using \fBlosetup \-d\fP or \fBumount \-d\fP.
2256 .sp
2257 Since util\-linux v2.29, \fBmount\fP re\-uses the loop device rather than initializing a new device if the same backing file is already used for some loop device with the same offset and sizelimit. This is necessary to avoid a filesystem corruption.
2258 .SH "EXIT STATUS"
2259 .sp
2260 \fBmount\fP has the following exit status values (the bits can be ORed):
2261 .sp
2262 \fB0\fP
2263 .RS 4
2264 success
2265 .RE
2266 .sp
2267 \fB1\fP
2268 .RS 4
2269 incorrect invocation or permissions
2270 .RE
2271 .sp
2272 \fB2\fP
2273 .RS 4
2274 system error (out of memory, cannot fork, no more loop devices)
2275 .RE
2276 .sp
2277 \fB4\fP
2278 .RS 4
2279 internal \fBmount\fP bug
2280 .RE
2281 .sp
2282 \fB8\fP
2283 .RS 4
2284 user interrupt
2285 .RE
2286 .sp
2287 \fB16\fP
2288 .RS 4
2289 problems writing or locking \fI/etc/mtab\fP
2290 .RE
2291 .sp
2292 \fB32\fP
2293 .RS 4
2294 mount failure
2295 .RE
2296 .sp
2297 \fB64\fP
2298 .RS 4
2299 some mount succeeded
2300 .sp
2301 The command \fBmount \-a\fP returns 0 (all succeeded), 32 (all failed), or 64 (some failed, some succeeded).
2302 .RE
2303 .SH "EXTERNAL HELPERS"
2304 .sp
2305 The syntax of external mount helpers is:
2306 .sp
2307 \fB/sbin/mount.\fP\fIsuffix\fP \fIspec dir\fP [\fB\-sfnv\fP] [\fB\-N\fP \fInamespace\fP] [\fB\-o\fP \fIoptions\fP] [\fB\-t\fP \fItype\fP\fB.\fP\fIsubtype\fP]
2308 .sp
2309 where the \fIsuffix\fP is the filesystem type and the \fB\-sfnvoN\fP options have the same meaning as the normal mount options. The \fB\-t\fP option is used for filesystems with subtypes support (for example \fB/sbin/mount.fuse \-t fuse.sshfs\fP).
2310 .sp
2311 The command \fBmount\fP does not pass the mount options \fBunbindable\fP, \fBrunbindable\fP, \fBprivate\fP, \fBrprivate\fP, \fBslave\fP, \fBrslave\fP, \fBshared\fP, \fBrshared\fP, \fBauto\fP, \fBnoauto\fP, \fBcomment\fP, \fBx\-\fP*, \fBloop\fP, \fBoffset\fP and \fBsizelimit\fP to the mount.<suffix> helpers. All other options are used in a comma\-separated list as an argument to the \fB\-o\fP option.
2312 .SH "ENVIRONMENT"
2313 .sp
2314 \fBLIBMOUNT_FSTAB\fP=<path>
2315 .RS 4
2316 overrides the default location of the \fIfstab\fP file (ignored for suid)
2317 .RE
2318 .sp
2319 \fBLIBMOUNT_MTAB\fP=<path>
2320 .RS 4
2321 overrides the default location of the \fImtab\fP file (ignored for suid)
2322 .RE
2323 .sp
2324 \fBLIBMOUNT_DEBUG\fP=all
2325 .RS 4
2326 enables libmount debug output
2327 .RE
2328 .sp
2329 \fBLIBBLKID_DEBUG\fP=all
2330 .RS 4
2331 enables libblkid debug output
2332 .RE
2333 .sp
2334 \fBLOOPDEV_DEBUG\fP=all
2335 .RS 4
2336 enables loop device setup debug output
2337 .RE
2338 .SH "FILES"
2339 .sp
2340 See also "\fBThe files /etc/fstab, /etc/mtab and /proc/mounts\fP" section above.
2341 .sp
2342 \fI/etc/fstab\fP
2343 .RS 4
2344 filesystem table
2345 .RE
2346 .sp
2347 \fI/run/mount\fP
2348 .RS 4
2349 libmount private runtime directory
2350 .RE
2351 .sp
2352 \fI/etc/mtab\fP
2353 .RS 4
2354 table of mounted filesystems or symlink to \fI/proc/mounts\fP
2355 .RE
2356 .sp
2357 \fI/etc/mtab~\fP
2358 .RS 4
2359 lock file (unused on systems with \fImtab\fP symlink)
2360 .RE
2361 .sp
2362 \fI/etc/mtab.tmp\fP
2363 .RS 4
2364 temporary file (unused on systems with \fImtab\fP symlink)
2365 .RE
2366 .sp
2367 \fI/etc/filesystems\fP
2368 .RS 4
2369 a list of filesystem types to try
2370 .RE
2371 .SH "HISTORY"
2372 .sp
2373 A \fBmount\fP command existed in Version 5 AT&T UNIX.
2374 .SH "BUGS"
2375 .sp
2376 It is possible for a corrupted filesystem to cause a crash.
2377 .sp
2378 Some Linux filesystems don\(cqt support \fB\-o sync\fP and \fB\-o dirsync\fP (the ext2, ext3, ext4, fat and vfat filesystems \fIdo\fP support synchronous updates (a la BSD) when mounted with the \fBsync\fP option).
2379 .sp
2380 The \fB\-o remount\fP may not be able to change mount parameters (all \fIext2fs\fP\-specific parameters, except \fBsb\fP, are changeable with a remount, for example, but you can\(cqt change \fBgid\fP or \fBumask\fP for the \fIfatfs\fP).
2381 .sp
2382 It is possible that the files \fI/etc/mtab\fP and \fI/proc/mounts\fP don\(cqt match on systems with a regular \fImtab\fP file. The first file is based only on the \fBmount\fP command options, but the content of the second file also depends on the kernel and others settings (e.g. on a remote NFS server \(em in certain cases the \fBmount\fP command may report unreliable information about an NFS mount point and the \fI/proc/mount\fP file usually contains more reliable information.) This is another reason to replace the \fImtab\fP file with a symlink to the \fI/proc/mounts\fP file.
2383 .sp
2384 Checking files on NFS filesystems referenced by file descriptors (i.e. the \fBfcntl\fP and \fBioctl\fP families of functions) may lead to inconsistent results due to the lack of a consistency check in the kernel even if the \fBnoac\fP mount option is used.
2385 .sp
2386 The \fBloop\fP option with the \fBoffset\fP or \fBsizelimit\fP options used may fail when using older kernels if the \fBmount\fP command can\(cqt confirm that the size of the block device has been configured as requested. This situation can be worked around by using the \fBlosetup\fP(8) command manually before calling \fBmount\fP with the configured loop device.
2387 .SH "AUTHORS"
2388 .sp
2389 .MTO "kzak\(atredhat.com" "Karel Zak" ""
2390 .SH "SEE ALSO"
2391 .sp
2392 \fBmount\fP(2),
2393 \fBumount\fP(2),
2394 \fBfilesystems\fP(5),
2395 \fBfstab\fP(5),
2396 \fBnfs\fP(5),
2397 \fBxfs\fP(5),
2398 \fBmount_namespaces\fP(7),
2399 \fBxattr\fP(7),
2400 \fBe2label\fP(8),
2401 \fBfindmnt\fP(8),
2402 \fBlosetup\fP(8),
2403 \fBlsblk\fP(8),
2404 \fBmke2fs\fP(8),
2405 \fBmountd\fP(8),
2406 \fBnfsd\fP(8),
2407 \fBswapon\fP(8),
2408 \fBtune2fs\fP(8),
2409 \fBumount\fP(8),
2410 \fBxfs_admin\fP(8)
2411 .SH "REPORTING BUGS"
2412 .sp
2413 For bug reports, use the issue tracker at \c
2414 .URL "https://github.com/util\-linux/util\-linux/issues" "" "."
2415 .SH "AVAILABILITY"
2416 .sp
2417 The \fBmount\fP command is part of the util\-linux package which can be downloaded from \c
2418 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."