]> git.ipfire.org Git - thirdparty/util-linux.git/blob - sys-utils/mount.8
Manual pages: mount.8: Miscellaneous wording, grammar, and formatting fixes
[thirdparty/util-linux.git] / sys-utils / mount.8
1 .\" Copyright (c) 1996-2004 Andries Brouwer
2 .\" Copyright (C) 2006-2012 Karel Zak <kzak@redhat.com>
3 .\"
4 .\" This page is somewhat derived from a page that was
5 .\" (c) 1980, 1989, 1991 The Regents of the University of California
6 .\" and had been heavily modified by Rik Faith and myself.
7 .\" (Probably no BSD text remains.)
8 .\" Fragments of text were written by Werner Almesberger, Remy Card,
9 .\" Stephen Tweedie and Eric Youngdale.
10 .\"
11 .\" This is free documentation; you can redistribute it and/or
12 .\" modify it under the terms of the GNU General Public License as
13 .\" published by the Free Software Foundation; either version 2 of
14 .\" the License, or (at your option) any later version.
15 .\"
16 .\" The GNU General Public License's references to "object code"
17 .\" and "executables" are to be interpreted as the output of any
18 .\" document formatting or typesetting system, including
19 .\" intermediate and printed output.
20 .\"
21 .\" This manual is distributed in the hope that it will be useful,
22 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
23 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 .\" GNU General Public License for more details.
25 .\"
26 .\" You should have received a copy of the GNU General Public License along
27 .\" with this program; if not, write to the Free Software Foundation, Inc.,
28 .\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 .\"
30 .TH MOUNT 8 "August 2015" "util-linux" "System Administration"
31 .SH NAME
32 mount \- mount a filesystem
33 .SH SYNOPSIS
34 .B mount
35 .RB [ \-l | \-h | \-V ]
36 .LP
37 .B mount \-a
38 .RB [ \-fFnrsvw ]
39 .RB [ \-t
40 .IR fstype ]
41 .RB [ \-O
42 .IR optlist ]
43 .LP
44 .B mount
45 .RB [ \-fnrsvw ]
46 .RB [ \-o
47 .IR options ]
48 .IR device | dir
49 .LP
50 .B mount
51 .RB [ \-fnrsvw ]
52 .RB [ \-t
53 .IB fstype ]
54 .RB [ \-o
55 .IR options ]
56 .I device dir
57 .SH DESCRIPTION
58 All files accessible in a Unix system are arranged in one big
59 tree, the file hierarchy, rooted at
60 .IR / .
61 These files can be spread out over several devices. The
62 .B mount
63 command serves to attach the filesystem found on some device
64 to the big file tree. Conversely, the
65 .BR umount (8)
66 command will detach it again. The filesystem is used to control how data is
67 stored on the device or provided in a virtual way by network or other services.
68
69 The standard form of the
70 .B mount
71 command is:
72 .RS
73
74 .br
75 .BI "mount \-t" " type device dir"
76 .br
77
78 .RE
79 This tells the kernel to attach the filesystem found on
80 .I device
81 (which is of type
82 .IR type )
83 at the directory
84 .IR dir .
85 The option \fB\-t \fItype\fR is optional. The
86 .B mount
87 command is usually able to detect a filesystem. The root permissions are necessary
88 to mount a filesystem by default. See section "Non-superuser mounts" below for more details.
89 The previous contents (if any) and owner and mode of
90 .I dir
91 become invisible, and as long as this filesystem remains mounted,
92 the pathname
93 .I dir
94 refers to the root of the filesystem on
95 .IR device .
96
97 If only the directory or the device is given, for example:
98 .RS
99 .sp
100 .B mount /dir
101 .sp
102 .RE
103 then \fBmount\fR looks for a mountpoint (and if not found then for a device) in the
104 .I /etc/fstab
105 file. It's possible to use the
106 .B \-\-target
107 or
108 .B \-\-source
109 options to avoid ambiguous interpretation of the given argument.
110 For example:
111 .RS
112 .sp
113 .B mount \-\-target /mountpoint
114 .sp
115 .RE
116
117 The same filesystem may be mounted more than once, and in some cases (e.g.,
118 network filesystems) the same filesystem may be mounted on the same
119 mountpoint multiple times. The
120 .B mount
121 command does not implement any policy to
122 control this behavior. All behavior is controlled by the kernel and it is usually
123 specific to the filesystem driver. The exception is \fB\-\-all\fR, in this case
124 already mounted filesystems are ignored (see \fB\-\-all\fR below for more details).
125
126 .SS Listing the mounts
127 The listing mode is maintained for backward compatibility only.
128
129 For more robust and customizable output use
130 .BR findmnt (8),
131 \fBespecially in your scripts\fP. Note that control characters in the
132 mountpoint name are replaced with '?'.
133
134 The following command lists all mounted filesystems (of type
135 .IR type ):
136 .RS
137 .sp
138 .BR "mount " [ \-l "] [" "\-t \fItype\/\fP" ]
139 .sp
140 .RE
141 The option \fB\-l\fR adds labels to this listing. See below.
142
143 .SS Indicating the device and filesystem
144 Most devices are indicated by a filename (of a block special device), like
145 .IR /dev/sda1 ,
146 but there are other possibilities. For example, in the case of an NFS mount,
147 .I device
148 may look like
149 .IR knuth.cwi.nl:/dir .
150 It is also possible to indicate a block special device using its filesystem label
151 or UUID (see the \fB\-L\fR and \fB\-U\fR options below), or its partition label
152 or UUID. Partition identifiers are supported for example for GUID Partition
153 Tables (GPT).
154
155 The device names of disk partitions are unstable; hardware reconfiguration,
156 and adding or removing a device can cause changes in names.
157 This is the reason why it's
158 strongly recommended to use filesystem or partition identifiers like UUID or
159 LABEL.
160
161 The command \fBlsblk \-\-fs\fR provides an overview of filesystems, LABELs and UUIDs
162 on available block devices. The command \fBblkid \-p <device>\fR provides details about
163 a filesystem on the specified device.
164
165 Don't forget that there is no guarantee that UUIDs and labels are really
166 unique, especially if you move, share or copy the device. Use
167 .B "lsblk \-o +UUID,PARTUUID"
168 to verify that the UUIDs are really unique in your system.
169
170 The recommended setup is to use tags (e.g.\& \fBUUID=\fIuuid\fR) rather than
171 .I /dev/disk/by-{label,uuid,partuuid,partlabel}
172 udev symlinks in the
173 .I /etc/fstab
174 file. Tags are
175 more readable, robust and portable. The
176 .BR mount (8)
177 command internally uses udev
178 symlinks, so the use of symlinks in
179 .I /etc/fstab
180 has no advantage over tags.
181 For more details see
182 .BR libblkid (3).
183
184 Note that
185 .BR mount (8)
186 uses UUIDs as strings. The UUIDs from the command line or from
187 .BR fstab (5)
188 are not converted to internal binary representation. The string representation
189 of the UUID should be based on lower case characters.
190
191 The
192 .I proc
193 filesystem is not associated with a special device, and when
194 mounting it, an arbitrary keyword\(emfor example,
195 .IR proc \(emcan
196 be used instead of a device specification.
197 (The customary choice
198 .I none
199 is less fortunate: the error message `none already mounted' from
200 .B mount
201 can be confusing.)
202
203 .SS The files /etc/fstab, /etc/mtab and /proc/mounts
204 The file
205 .I /etc/fstab
206 (see
207 .BR fstab (5)),
208 may contain lines describing what devices are usually
209 mounted where, using which options. The default location of the
210 .BR fstab (5)
211 file can be overridden with the
212 .BI \-\-fstab " path"
213 command-line option (see below for more details).
214 .LP
215 The command
216 .RS
217 .sp
218 .B mount \-a
219 .RB [ \-t
220 .IR type ]
221 .RB [ \-O
222 .IR optlist ]
223 .sp
224 .RE
225 (usually given in a bootscript) causes all filesystems mentioned in
226 .I fstab
227 (of the proper type and/or having or not having the proper options)
228 to be mounted as indicated, except for those whose line contains the
229 .B noauto
230 keyword. Adding the
231 .B \-F
232 option will make \fBmount\fR fork, so that the
233 filesystems are mounted in parallel.
234 .LP
235 When mounting a filesystem mentioned in
236 .I fstab
237 or
238 .IR mtab ,
239 it suffices to specify on the command line only the device, or only the mount point.
240 .sp
241 The programs
242 .B mount
243 and
244 .B umount
245 traditionally maintained a list of currently mounted filesystems in the file
246 .IR /etc/mtab .
247 The support for regular classic
248 .I /etc/mtab
249 is completely disabled at compile time by default, because on current Linux
250 systems it is better to make
251 .I /etc/mtab
252 a symlink to
253 .I /proc/mounts
254 instead. The regular
255 .I mtab
256 file maintained in userspace cannot reliably
257 work with namespaces, containers and other advanced Linux features.
258 If the regular
259 .I mtab
260 support is enabled, then it's possible to
261 use the file as well as the symlink.
262 .sp
263 If no arguments are given to
264 .BR mount ,
265 the list of mounted filesystems is printed.
266 .sp
267 If you want to override mount options from
268 .IR /etc/fstab ,
269 you have to use the \fB\-o\fR option:
270 .RS
271 .sp
272 .BI mount " device" \fR| "dir " \-o " options"
273 .sp
274 .RE
275 and then the mount options from the command line will be appended to
276 the list of options from
277 .IR /etc/fstab .
278 This default behaviour can be changed using the
279 \fB\-\-options\-mode\fR
280 command-line option.
281 The usual behavior is that the last option wins if there are conflicting
282 ones.
283 .sp
284 The
285 .B mount
286 program does not read the
287 .I /etc/fstab
288 file if both
289 .I device
290 (or LABEL, UUID, PARTUUID or PARTLABEL) and
291 .I dir
292 are specified. For example, to mount device
293 .BR foo " at " /dir :
294 .RS
295 .sp
296 .B "mount /dev/foo /dir"
297 .sp
298 .RE
299 This default behaviour can be changed by using the
300 \fB\-\-options\-source\-force\fR command-line option
301 to always read configuration from
302 .IR fstab .
303 For non-root users
304 .B mount
305 always reads the
306 .I fstab
307 configuration.
308
309 .SS Non-superuser mounts
310 Normally, only the superuser can mount filesystems.
311 However, when
312 .I fstab
313 contains the
314 .B user
315 option on a line, anybody can mount the corresponding filesystem.
316 .LP
317 Thus, given a line
318 .RS
319 .sp
320 .B "/dev/cdrom /cd iso9660 ro,user,noauto,unhide"
321 .sp
322 .RE
323 any user can mount the iso9660 filesystem found on an inserted CDROM
324 using the command:
325 .PP
326 .RS
327 .B "mount /cd"
328 .sp
329 .RE
330 Note that \fBmount\fR is very strict about non-root users and all paths
331 specified on command line are verified before
332 .I fstab
333 is parsed or a helper
334 program is executed. It's strongly recommended to use a valid mountpoint to
335 specify filesystem, otherwise \fBmount\fR may fail. For example it's a bad idea
336 to use NFS or CIFS source on command line.
337 .PP
338 Since util-linux 2.35, \fBmount\fR does not exit when user permissions are
339 inadequate according to libmount's internal security rules.
340 Instead, it drops suid permissions
341 and continues as regular non-root user. This behavior supports use-cases where
342 root permissions are not necessary (e.g., fuse filesystems, user namespaces,
343 etc).
344 .PP
345 For more details, see
346 .BR fstab (5).
347 Only the user that mounted a filesystem can unmount it again.
348 If any user should be able to unmount it, then use
349 .B users
350 instead of
351 .B user
352 in the
353 .I fstab
354 line.
355 The
356 .B owner
357 option is similar to the
358 .B user
359 option, with the restriction that the user must be the owner
360 of the special file. This may be useful e.g.\& for
361 .I /dev/fd
362 if a login script makes the console user owner of this device.
363 The
364 .B group
365 option is similar, with the restriction that the user must be a
366 member of the group of the special file.
367
368 .SS Bind mount operation
369 Remount part of the file hierarchy somewhere else. The call is:
370
371 .RS
372 .br
373 .B mount \-\-bind
374 .I olddir newdir
375 .RE
376
377 or by using this
378 .I fstab
379 entry:
380
381 .RS
382 .br
383 .BI / olddir
384 .BI / newdir
385 .B none bind
386 .RE
387
388 After this call the same contents are accessible in two places.
389
390 It is important to understand that "bind" does not create any second-class
391 or special node in the kernel VFS. The "bind" is just another operation to
392 attach a filesystem. There is nowhere stored information that the filesystem
393 has been attached by a "bind" operation. The \fIolddir\fR and \fInewdir\fR are
394 independent and the \fIolddir\fR may be unmounted.
395
396 One can also remount a single file (on a single file). It's also
397 possible to use a bind mount to create a mountpoint from a regular
398 directory, for example:
399
400 .RS
401 .br
402 .B mount \-\-bind foo foo
403 .RE
404
405 The bind mount call attaches only (part of) a single filesystem, not possible
406 submounts. The entire file hierarchy including submounts can be attached
407 a second place by using:
408
409 .RS
410 .br
411 .B mount \-\-rbind
412 .I olddir newdir
413 .RE
414
415 Note that the filesystem mount options maintained by the kernel will remain the same as those
416 on the original mount point. The userspace mount options (e.g., _netdev) will not be copied
417 by
418 .BR mount
419 and it's necessary to explicitly specify the options on the
420 .B mount
421 command line.
422
423 Since util-linux 2.27
424 .BR mount (8)
425 permits changing the mount options by passing the
426 relevant options along with
427 .BR \-\-bind .
428 For example:
429
430 .RS
431 .br
432 .B mount \-o bind,ro foo foo
433 .RE
434
435 This feature is not supported by the Linux kernel; it is implemented in userspace
436 by an additional \fBmount\fR(2) remounting system call.
437 This solution is not atomic.
438
439 The alternative (classic) way to create a read-only bind mount is to use the remount
440 operation, for example:
441
442 .RS
443 .br
444 .B mount \-\-bind
445 .I olddir newdir
446 .br
447 .B mount \-o remount,bind,ro
448 .I olddir newdir
449 .RE
450
451 Note that a read-only bind will create a read-only mountpoint (VFS entry),
452 but the original filesystem superblock will still be writable, meaning that the
453 .I olddir
454 will be writable, but the
455 .I newdir
456 will be read-only.
457
458 It's also possible to change nosuid, nodev, noexec, noatime, nodiratime and
459 relatime VFS entry flags via a "remount,bind" operation.
460 The other flags (for example
461 filesystem-specific flags) are silently ignored. It's impossible to change mount
462 options recursively (for example with \fB\-o rbind,ro\fR).
463
464 Since util-linux 2.31,
465 .BR mount
466 ignores the \fBbind\fR flag from
467 .I /etc/fstab
468 on a
469 .B remount
470 operation
471 (if "\-o remount" is specified on command line).
472 This is necessary to fully control
473 mount options on remount by command line. In previous versions the bind
474 flag has been always applied and it was impossible to re-define mount options
475 without interaction with the bind semantic. This
476 .BR mount (8)
477 behavior does not affect situations when "remount,bind" is specified in the
478 .I /etc/fstab
479 file.
480
481 .SS The move operation
482 Move a
483 .B mounted tree
484 to another place (atomically). The call is:
485
486 .RS
487 .br
488 .B mount \-\-move
489 .I olddir newdir
490 .RE
491
492 This will cause the contents which previously appeared under
493 .I olddir
494 to now be accessible under
495 .IR newdir .
496 The physical location of the files is not changed.
497 Note that
498 .I olddir
499 has to be a mountpoint.
500
501 Note also that moving a mount residing under a shared mount is invalid and
502 unsupported. Use
503 .B findmnt \-o TARGET,PROPAGATION
504 to see the current propagation flags.
505
506 .SS Shared subtree operations
507 Since Linux 2.6.15 it is possible to mark a mount and its submounts as shared,
508 private, slave or unbindable. A shared mount provides the ability to create mirrors
509 of that mount such that mounts and unmounts within any of the mirrors propagate
510 to the other mirror. A slave mount receives propagation from its master, but
511 not vice versa. A private mount carries no propagation abilities. An
512 unbindable mount is a private mount which cannot be cloned through a bind
513 operation. The detailed semantics are documented in
514 .I Documentation/filesystems/sharedsubtree.txt
515 file in the kernel source tree; see also
516 .BR mount_namespaces (7).
517
518 Supported operations are:
519
520 .RS
521 .nf
522 .BI "mount \-\-make\-shared " mountpoint
523 .BI "mount \-\-make\-slave " mountpoint
524 .BI "mount \-\-make\-private " mountpoint
525 .BI "mount \-\-make\-unbindable " mountpoint
526 .fi
527 .RE
528
529 The following commands allow one to recursively change the type of all the
530 mounts under a given mountpoint.
531
532 .RS
533 .nf
534 .BI "mount \-\-make\-rshared " mountpoint
535 .BI "mount \-\-make\-rslave " mountpoint
536 .BI "mount \-\-make\-rprivate " mountpoint
537 .BI "mount \-\-make\-runbindable " mountpoint
538 .fi
539 .RE
540
541 .BR mount (8)
542 .B does not read
543 .BR fstab (5)
544 when a \fB\-\-make-\fR* operation is requested. All necessary information has to be
545 specified on the command line.
546
547 Note that the Linux kernel does not allow changing multiple propagation flags
548 with a single
549 .BR mount (2)
550 system call, and the flags cannot be mixed with other mount options and operations.
551
552 Since util-linux 2.23 the \fBmount\fR command allows to do more propagation
553 (topology) changes by one mount(8) call and do it also together with other
554 mount operations. This feature is EXPERIMENTAL. The propagation flags are applied
555 by additional \fBmount\fR(2) system calls when the preceding mount operations
556 were successful. Note that this use case is not atomic. It is possible to
557 specify the propagation flags in
558 .BR fstab (5)
559 as mount options
560 .RB ( private ,
561 .BR slave ,
562 .BR shared ,
563 .BR unbindable ,
564 .BR rprivate ,
565 .BR rslave ,
566 .BR rshared ,
567 .BR runbindable ).
568
569 For example:
570
571 .RS
572 .nf
573 .B mount \-\-make\-private \-\-make\-unbindable /dev/sda1 /foo
574 .fi
575 .RE
576
577 is the same as:
578
579 .RS
580 .nf
581 .B mount /dev/sda1 /foo
582 .B mount \-\-make\-private /foo
583 .B mount \-\-make\-unbindable /foo
584 .fi
585 .RE
586
587 .SH COMMAND-LINE OPTIONS
588 The full set of mount options used by an invocation of
589 .B mount
590 is determined by first extracting the
591 mount options for the filesystem from the
592 .I fstab
593 table, then applying any options specified by the
594 .B \-o
595 argument, and finally applying a
596 .BR \-r " or " \-w
597 option, when present.
598
599 The \fBmount\fR command does not pass all command-line options to the
600 \fB/sbin/mount.\fIsuffix\fR mount helpers. The interface between \fBmount\fR
601 and the mount helpers is described below in the section \fBEXTERNAL HELPERS\fR.
602 .sp
603 Command-line options available for the
604 .B mount
605 command are:
606 .TP
607 .BR \-a , " \-\-all"
608 Mount all filesystems (of the given types) mentioned in
609 .I fstab
610 (except for those whose line contains the
611 .B noauto
612 keyword). The filesystems are mounted following their order in
613 .IR fstab .
614 The
615 .B mount
616 command compares filesystem source, target (and fs root for bind
617 mount or btrfs) to detect already mounted filesystems. The kernel table with
618 already mounted filesystems is cached during \fBmount \-\-all\fR. This means
619 that all duplicated
620 .I fstab
621 entries will be mounted.
622 .sp
623 The option \fB\-\-all\fR is possible to use for remount operation too. In this
624 case all filters (\fB\-t\fR and \fB\-O\fR) are applied to the table of already
625 mounted filesystems.
626 .sp
627 Since version 2.35 is possible to use the command line option \fB\-o\fR to
628 alter mount options from
629 .I fstab
630 (see also \fB\-\-options\-mode\fR).
631 .sp
632 Note that it is a bad practice to use \fBmount \-a\fR for
633 .I fstab
634 checking. The recommended solution is \fBfindmnt \-\-verify\fR.
635 .TP
636 .BR \-B , " \-\-bind"
637 Remount a subtree somewhere else (so that its contents are available
638 in both places). See above, under \fBBind mounts\fR.
639 .TP
640 .BR \-c , " \-\-no\-canonicalize"
641 Don't canonicalize paths. The
642 .B mount
643 command canonicalizes all paths
644 (from the command line or
645 .IR fstab )
646 by default. This option can be used
647 together with the
648 .B \-f
649 flag for already canonicalized absolute paths. The option is designed for mount
650 helpers which call \fBmount \-i\fR. It is strongly recommended to not use this
651 command-line option for normal mount operations.
652 .sp
653 Note that \fBmount\fR(8) does not pass this option to the
654 \fB/sbin/mount.\fItype\fR helpers.
655 .TP
656 .BR \-F , " \-\-fork"
657 (Used in conjunction with
658 .BR \-a .)
659 Fork off a new incarnation of \fBmount\fR for each device.
660 This will do the mounts on different devices or different NFS servers
661 in parallel.
662 This has the advantage that it is faster; also NFS timeouts proceed in
663 parallel.
664 A disadvantage is that the order of the mount operations is undefined.
665 Thus, you cannot use this option if you want to mount both
666 .I /usr
667 and
668 .IR /usr/spool .
669 .IP "\fB\-f, \-\-fake\fP"
670 Causes everything to be done except for the actual system call; if it's not
671 obvious, this ``fakes'' mounting the filesystem. This option is useful in
672 conjunction with the
673 .B \-v
674 flag to determine what the
675 .B mount
676 command is trying to do. It can also be used to add entries for devices
677 that were mounted earlier with the \fB\-n\fR option. The \fB\-f\fR option
678 checks for an existing record in
679 .I /etc/mtab
680 and fails when the record already
681 exists (with a regular non-fake mount, this check is done by the kernel).
682 .IP "\fB\-i, \-\-internal\-only\fP"
683 Don't call the \fB/sbin/mount.\fIfilesystem\fR helper even if it exists.
684 .TP
685 .BR \-L , " \-\-label " \fIlabel
686 Mount the partition that has the specified
687 .IR label .
688 .TP
689 .BR \-l , " \-\-show\-labels"
690 Add the labels in the mount output. \fBmount\fR must have
691 permission to read the disk device (e.g.\& be set-user-ID root) for this to work.
692 One can set such a label for ext2, ext3 or ext4 using the
693 .BR e2label (8)
694 utility, or for XFS using
695 .BR xfs_admin (8),
696 or for reiserfs using
697 .BR reiserfstune (8).
698 .TP
699 .BR \-M , " \-\-move"
700 Move a subtree to some other place. See above, the subsection
701 \fBThe move operation\fR.
702 .TP
703 .BR \-n , " \-\-no\-mtab"
704 Mount without writing in
705 .IR /etc/mtab .
706 This is necessary for example when
707 .I /etc
708 is on a read-only filesystem.
709 .TP
710 .BR \-N , " \-\-namespace " \fIns
711 Perform the mount operation in the mount namespace specified by \fIns\fR.
712 \fIns\fR is either PID of process running in that namespace
713 or special file representing that namespace.
714 .sp
715 .BR mount (8)
716 switches to the mount namespace when it reads
717 .IR /etc/fstab ,
718 writes
719 .I /etc/mtab
720 (or writes to
721 .IR /run/mount )
722 and calls the
723 .BR mount (2)
724 system call, otherwise it runs in the original mount namespace.
725 This means that the target namespace does not have
726 to contain any libraries or other requirements necessary to execute the
727 .BR mount (2)
728 call.
729 .sp
730 See \fBmount_namespaces\fR(7) for more information.
731 .TP
732 .BR \-O , " \-\-test\-opts " \fIopts
733 Limit the set of filesystems to which the
734 .B \-a
735 option applies. In this regard it is like the
736 .B \-t
737 option except that
738 .B \-O
739 is useless without
740 .BR \-a .
741 For example, the command:
742 .RS
743 .RS
744 .sp
745 .B "mount \-a \-O no_netdev"
746 .sp
747 .RE
748 mounts all filesystems except those which have the option
749 .I _netdev
750 specified in the options field in the
751 .I /etc/fstab
752 file.
753
754 It is different from
755 .B \-t
756 in that each option is matched exactly; a leading
757 .B no
758 at the beginning of one option does not negate the rest.
759
760 The
761 .B \-t
762 and
763 .B \-O
764 options are cumulative in effect; that is, the command
765 .RS
766 .sp
767 .B "mount \-a \-t ext2 \-O _netdev"
768 .sp
769 .RE
770 mounts all ext2 filesystems with the _netdev option, not all filesystems
771 that are either ext2 or have the _netdev option specified.
772 .RE
773 .TP
774 .BR \-o , " \-\-options " \fIopts
775 Use the specified mount options. The \fIopts\fR argument is
776 a comma-separated list. For example:
777 .RS
778 .RS
779 .sp
780 .B "mount LABEL=mydisk \-o noatime,nodev,nosuid"
781 .sp
782 .RE
783
784 For more details, see the
785 .B FILESYSTEM-INDEPENDENT MOUNT OPTIONS
786 and
787 .B FILESYSTEM-SPECIFIC MOUNT OPTIONS
788 sections.
789 .RE
790
791 .TP
792 .BR "\-\-options\-mode " \fImode
793 Controls how to combine options from
794 .IR fstab / mtab
795 with options from the command line.
796 \fImode\fR can be one of
797 .BR ignore ", " append ", " prepend " or " replace .
798 For example, \fBappend\fR means that options from
799 .I fstab
800 are appended to options from the command line.
801 The default value is \fBprepend\fR -- it means command line options are evaluated after
802 .I fstab
803 options.
804 Note that the last option wins if there are conflicting ones.
805
806 .TP
807 .BR "\-\-options\-source " \fIsource
808 Source of default options.
809 \fIsource\fR is a comma-separated list of
810 .BR fstab ", " mtab " and " disable .
811 \fBdisable\fR disables
812 .BR fstab " and " mtab
813 and disables \fB\-\-options\-source\-force\fR.
814 The default value is \fBfstab,mtab\fR.
815
816 .TP
817 .B \-\-options\-source\-force
818 Use options from
819 .IR fstab / mtab
820 even if both \fIdevice\fR and \fIdir\fR are specified.
821
822 .TP
823 .BR \-R , " \-\-rbind"
824 Remount a subtree and all possible submounts somewhere else (so that its
825 contents are available in both places). See above, the subsection
826 \fBBind mounts\fR.
827 .TP
828 .BR \-r , " \-\-read\-only"
829 Mount the filesystem read-only. A synonym is
830 .BR "\-o ro" .
831 .sp
832 Note that, depending on the filesystem type, state and kernel behavior, the
833 system may still write to the device. For example, ext3 and ext4 will replay the
834 journal if the filesystem is dirty. To prevent this kind of write access, you
835 may want to mount an ext3 or ext4 filesystem with the \fBro,noload\fR mount
836 options or set the block device itself to read-only mode, see the
837 .BR blockdev (8)
838 command.
839 .TP
840 .B \-s
841 Tolerate sloppy mount options rather than failing. This will ignore mount
842 options not supported by a filesystem type. Not all filesystems support this
843 option. Currently it's supported by the \fBmount.nfs\fR mount helper only.
844 .TP
845 .BI \-\-source " device"
846 If only one argument for the mount command is given, then the argument might be
847 interpreted as the target (mountpoint) or source (device).
848 This option allows you to
849 explicitly define that the argument is the mount source.
850 .TP
851 .BI \-\-target " directory"
852 If only one argument for the mount command is given, then the argument might be
853 interpreted as the target (mountpoint) or source (device).
854 This option allows you to
855 explicitly define that the argument is the mount target.
856 .TP
857 .BI \-\-target\-prefix " directory"
858 Prepend the specified directory to all mount targets.
859 This option allows to follow
860 .IR fstab ,
861 but mount operations is done on another place, for example:
862 .RS
863 .RS
864 .sp
865 .B "mount \-\-all \-\-target\-prefix /chroot \-o X\-mount.mkdir
866 .sp
867 .RE
868 mounts all from system
869 .I fstab
870 to
871 .IR /chroot ,
872 all missing mountpoint are created
873 (due to X-mount.mkdir). See also \fB\-\-fstab\fP to use an alternative
874 .IR fstab .
875 .RE
876 .TP
877 .BR \-T , " \-\-fstab " \fIpath
878 Specifies an alternative
879 .I fstab
880 file.
881 If \fIpath\fP is a directory, then the files
882 in the directory are sorted by
883 .BR strverscmp (3);
884 files that start with "."\& or without an
885 .I \&.fstab
886 extension are ignored. The option
887 can be specified more than once. This option is mostly designed for initramfs
888 or chroot scripts where additional configuration is specified beyond standard
889 system configuration.
890 .sp
891 Note that \fBmount\fR(8) does not pass the option \fB\-\-fstab\fP to the
892 \fB/sbin/mount.\fItype\fR helpers, meaning that the alternative
893 .I fstab
894 files will be
895 invisible for the helpers. This is no problem for normal mounts, but user
896 (non-root) mounts always require
897 .I fstab
898 to verify the user's rights.
899 .TP
900 .BR \-t , " \-\-types " \fIfstype
901 The argument following the
902 .B \-t
903 is used to indicate the filesystem type. The filesystem types which are
904 currently supported depend on the running kernel. See
905 .I /proc/filesystems
906 and
907 .I /lib/modules/$(uname \-r)/kernel/fs
908 for a complete list of the filesystems. The most common are ext2, ext3, ext4,
909 xfs, btrfs, vfat, sysfs, proc, nfs and cifs.
910 .sp
911 The programs
912 .B mount
913 and
914 .B umount
915 support filesystem subtypes. The subtype is defined by a '.subtype' suffix. For
916 example 'fuse.sshfs'. It's recommended to use subtype notation rather than add
917 any prefix to the mount source (for example 'sshfs#example.com' is
918 deprecated).
919
920 If no
921 .B \-t
922 option is given, or if the
923 .B auto
924 type is specified,
925 .B mount
926 will try to guess the desired type.
927 Mount uses the blkid library for guessing the filesystem
928 type; if that does not turn up anything that looks familiar,
929 .B mount
930 will try to read the file
931 .IR /etc/filesystems ,
932 or, if that does not exist,
933 .IR /proc/filesystems .
934 All of the filesystem types listed there will be tried,
935 except for those that are labeled "nodev" (e.g.\&
936 .IR devpts ,
937 .I proc
938 and
939 .IR nfs ).
940 If
941 .I /etc/filesystems
942 ends in a line with a single *, mount will read
943 .I /proc/filesystems
944 afterwards. While trying, all filesystem types will be
945 mounted with the mount option \fBsilent\fR.
946 .sp
947 The
948 .B auto
949 type may be useful for user-mounted floppies.
950 Creating a file
951 .I /etc/filesystems
952 can be useful to change the probe order (e.g., to try vfat before msdos
953 or ext3 before ext2) or if you use a kernel module autoloader.
954 .sp
955 More than one type may be specified in a comma-separated
956 list, for the
957 .B \-t
958 option as well as in an
959 .I /etc/fstab
960 entry. The list of filesystem types for the
961 .B \-t
962 option can be prefixed with
963 .B no
964 to specify the filesystem types on which no action should be taken.
965 The prefix
966 .B no
967 has no effect when specified in an
968 .I /etc/fstab
969 entry.
970 .sp
971 The prefix
972 .B no
973 can be meaningful with the
974 .B \-a
975 option. For example, the command
976 .RS
977 .RS
978 .sp
979 .B "mount \-a \-t nomsdos,smbfs"
980 .sp
981 .RE
982 mounts all filesystems except those of type
983 .I msdos
984 and
985 .IR smbfs .
986 .sp
987 For most types all the
988 .B mount
989 program has to do is issue a simple
990 .BR mount (2)
991 system call, and no detailed knowledge of the filesystem type is required.
992 For a few types however (like nfs, nfs4, cifs, smbfs, ncpfs) an ad hoc code is
993 necessary. The nfs, nfs4, cifs, smbfs, and ncpfs filesystems
994 have a separate mount program. In order to make it possible to
995 treat all types in a uniform way, \fBmount\fR will execute the program
996 .BI /sbin/mount. type
997 (if that exists) when called with type
998 .IR type .
999 Since different versions of the
1000 .B smbmount
1001 program have different calling conventions,
1002 .B /sbin/mount.smbfs
1003 may have to be a shell script that sets up the desired call.
1004 .RE
1005 .TP
1006 .BR \-U , " \-\-uuid " \fIuuid
1007 Mount the partition that has the specified
1008 .IR uuid .
1009 .TP
1010 .BR \-v , " \-\-verbose"
1011 Verbose mode.
1012 .TP
1013 .BR \-w , " \-\-rw" , " \-\-read\-write"
1014 Mount the filesystem read/write. Read-write is the kernel default and the
1015 .BR mount
1016 default is to try read-only if the previous mount syscall with read-write flags
1017 on write-protected devices of filesystems failed.
1018 .sp
1019 A synonym is
1020 .BR "\-o rw" .
1021
1022 Note that specifying \fB\-w\fR on the command line forces \fBmount\fR to never
1023 try read-only mount on write-protected devices or already mounted read-only
1024 filesystems.
1025 .TP
1026 .BR \-V , " \-\-version"
1027 Display version information and exit.
1028 .TP
1029 .BR \-h , " \-\-help"
1030 Display help text and exit.
1031
1032 .SH FILESYSTEM-INDEPENDENT MOUNT OPTIONS
1033 Some of these options are only useful when they appear in the
1034 .I /etc/fstab
1035 file.
1036
1037 Some of these options could be enabled or disabled by default
1038 in the system kernel. To check the current setting see the options
1039 in
1040 .IR /proc/mounts .
1041 Note that filesystems also have per-filesystem
1042 specific default mount options (see for example \fBtune2fs \-l\fP
1043 output for extN filesystems).
1044
1045 The following options apply to any filesystem that is being
1046 mounted (but not every filesystem actually honors them \(en e.g.\&, the
1047 .B sync
1048 option today has an effect only for ext2, ext3, ext4, fat, vfat, ufs and xfs):
1049
1050 .TP
1051 .B async
1052 All I/O to the filesystem should be done asynchronously. (See also the
1053 .B sync
1054 option.)
1055 .TP
1056 .B atime
1057 Do not use the \fBnoatime\fR feature, so the inode access time is controlled
1058 by kernel defaults. See also the descriptions of the \fB\%relatime\fR and
1059 .B strictatime
1060 mount options.
1061 .TP
1062 .B noatime
1063 Do not update inode access times on this filesystem (e.g.\& for faster
1064 access on the news spool to speed up news servers). This works for all
1065 inode types (directories too), so it implies \fB\%nodiratime\fR.
1066 .TP
1067 .B auto
1068 Can be mounted with the
1069 .B \-a
1070 option.
1071 .TP
1072 .B noauto
1073 Can only be mounted explicitly (i.e., the
1074 .B \-a
1075 option will not cause the filesystem to be mounted).
1076 .TP
1077 .na
1078 .BR context=\fIcontext ", " fscontext=\fIcontext ", " defcontext=\fIcontext ", and " \%rootcontext=\fIcontext
1079 .ad
1080 The
1081 .B context=
1082 option is useful when mounting filesystems that do not support
1083 extended attributes, such as a floppy or hard disk formatted with VFAT, or
1084 systems that are not normally running under SELinux, such as an ext3 or ext4 formatted
1085 disk from a non-SELinux workstation. You can also use
1086 .B context=
1087 on filesystems you do not trust, such as a floppy. It also helps in compatibility with
1088 xattr-supporting filesystems on earlier 2.4.<x> kernel versions. Even where
1089 xattrs are supported, you can save time not having to label every file by
1090 assigning the entire disk one security context.
1091
1092 A commonly used option for removable media is
1093 .BR \%context="system_u:object_r:removable_t" .
1094
1095 Two other options are
1096 .B fscontext=
1097 and
1098 .BR defcontext= ,
1099 both of which are mutually exclusive of the
1100 .B context=
1101 option. This means you
1102 can use fscontext and defcontext with each other, but neither can be used with
1103 context.
1104
1105 The
1106 .B fscontext=
1107 option works for all filesystems, regardless of their xattr
1108 support. The fscontext option sets the overarching filesystem label to a
1109 specific security context. This filesystem label is separate from the
1110 individual labels on the files. It represents the entire filesystem for
1111 certain kinds of permission checks, such as during mount or file creation.
1112 Individual file labels are still obtained from the xattrs on the files
1113 themselves. The context option actually sets the aggregate context that
1114 fscontext provides, in addition to supplying the same label for individual
1115 files.
1116
1117 You can set the default security context for unlabeled files using
1118 .B defcontext=
1119 option. This overrides the value set for unlabeled files in the policy and requires a
1120 filesystem that supports xattr labeling.
1121
1122 The
1123 .B rootcontext=
1124 option allows you to explicitly label the root inode of a FS being mounted
1125 before that FS or inode becomes visible to userspace. This was found to be
1126 useful for things like stateless Linux.
1127
1128 Note that the kernel rejects any remount request that includes the context
1129 option, \fBeven\fP when unchanged from the current context.
1130
1131 .BR "Warning: the \fIcontext\fP value might contain commas" ,
1132 in which case the value has to be properly quoted, otherwise
1133 .BR mount (8)
1134 will interpret the comma as a separator between mount options. Don't forget that
1135 the shell strips off quotes and thus
1136 .BR "double quoting is required" .
1137 For example:
1138 .RS
1139 .RS
1140 .sp
1141 .nf
1142 .B mount \-t tmpfs none /mnt \-o \e
1143 .B \ \ 'context="system_u:object_r:tmp_t:s0:c127,c456",noexec'
1144 .fi
1145 .sp
1146 .RE
1147 For more details, see
1148 .BR selinux (8).
1149 .RE
1150
1151 .TP
1152 .B defaults
1153 Use the default options:
1154 .BR rw ", " suid ", " dev ", " exec ", " auto ", " nouser ", and " async .
1155
1156 Note that the real set of all default mount options depends on the kernel
1157 and filesystem type. See the beginning of this section for more details.
1158 .TP
1159 .B dev
1160 Interpret character or block special devices on the filesystem.
1161 .TP
1162 .B nodev
1163 Do not interpret character or block special devices on the filesystem.
1164 .TP
1165 .B diratime
1166 Update directory inode access times on this filesystem. This is the default.
1167 (This option is ignored when \fBnoatime\fR is set.)
1168 .TP
1169 .B nodiratime
1170 Do not update directory inode access times on this filesystem.
1171 (This option is implied when \fBnoatime\fR is set.)
1172 .TP
1173 .B dirsync
1174 All directory updates within the filesystem should be done synchronously.
1175 This affects the following system calls: creat, link, unlink, symlink,
1176 mkdir, rmdir, mknod and rename.
1177 .TP
1178 .B exec
1179 Permit execution of binaries.
1180 .TP
1181 .B noexec
1182 Do not permit direct execution of any binaries on the mounted filesystem.
1183 .TP
1184 .B group
1185 Allow an ordinary user to mount the filesystem if one
1186 of that user's groups matches the group of the device.
1187 This option implies the options
1188 .BR nosuid " and " nodev
1189 (unless overridden by subsequent options, as in the option line
1190 .BR group,dev,suid ).
1191 .TP
1192 .B iversion
1193 Every time the inode is modified, the i_version field will be incremented.
1194 .TP
1195 .B noiversion
1196 Do not increment the i_version inode field.
1197 .TP
1198 .B mand
1199 Allow mandatory locks on this filesystem. See
1200 .BR fcntl (2).
1201 .TP
1202 .B nomand
1203 Do not allow mandatory locks on this filesystem.
1204 .TP
1205 .B _netdev
1206 The filesystem resides on a device that requires network access
1207 (used to prevent the system from attempting to mount these filesystems
1208 until the network has been enabled on the system).
1209 .TP
1210 .B nofail
1211 Do not report errors for this device if it does not exist.
1212 .TP
1213 .B relatime
1214 Update inode access times relative to modify or change time. Access
1215 time is only updated if the previous access time was earlier than the
1216 current modify or change time. (Similar to \fB\%noatime\fR, but it doesn't
1217 break \fBmutt\fR or other applications that need to know if a file has been
1218 read since the last time it was modified.)
1219
1220 Since Linux 2.6.30, the kernel defaults to the behavior provided by this
1221 option (unless
1222 .B \%noatime
1223 was specified), and the
1224 .B \%strictatime
1225 option is required to obtain traditional semantics. In addition, since Linux
1226 2.6.30, the file's last access time is always updated if it is more than 1
1227 day old.
1228 .TP
1229 .B norelatime
1230 Do not use the
1231 .B relatime
1232 feature. See also the
1233 .B strictatime
1234 mount option.
1235 .TP
1236 .B strictatime
1237 Allows to explicitly request full atime updates. This makes it
1238 possible for the kernel to default to
1239 .B \%relatime
1240 or
1241 .B \%noatime
1242 but still allow userspace to override it. For more details about the default
1243 system mount options see
1244 .IR /proc/mounts .
1245 .TP
1246 .B nostrictatime
1247 Use the kernel's default behavior for inode access time updates.
1248 .TP
1249 .B lazytime
1250 Only update times (atime, mtime, ctime) on the in-memory version of the file inode.
1251
1252 This mount option significantly reduces writes to the inode table for
1253 workloads that perform frequent random writes to preallocated files.
1254
1255 The on-disk timestamps are updated only when:
1256 .RS
1257 .IP - 2
1258 the inode needs to be updated for some change unrelated to file timestamps
1259 .IP -
1260 the application employs
1261 .BR fsync (2),
1262 .BR syncfs (2),
1263 or
1264 .BR sync (2)
1265 .IP -
1266 an undeleted inode is evicted from memory
1267 .IP -
1268 more than 24 hours have passed since the i-node was written to disk.
1269 .RE
1270 .sp
1271 .TP
1272 .B nolazytime
1273 Do not use the lazytime feature.
1274 .TP
1275 .B suid
1276 Honor set-user-ID and set-group-ID bits or file capabilities when
1277 executing programs from this filesystem.
1278 .TP
1279 .B nosuid
1280 Do not honor set-user-ID and set-group-ID bits or file capabilities when
1281 executing programs from this filesystem.
1282 .TP
1283 .B silent
1284 Turn on the silent flag.
1285 .TP
1286 .B loud
1287 Turn off the silent flag.
1288 .TP
1289 .B owner
1290 Allow an ordinary user to mount the filesystem if that
1291 user is the owner of the device.
1292 This option implies the options
1293 .BR nosuid " and " nodev
1294 (unless overridden by subsequent options, as in the option line
1295 .BR owner,dev,suid ).
1296 .TP
1297 .B remount
1298 Attempt to remount an already-mounted filesystem. This is commonly
1299 used to change the mount flags for a filesystem, especially to make a
1300 readonly filesystem writable. It does not change device or mount point.
1301
1302 The remount operation together with the
1303 .B bind
1304 flag has special semantics. See above, the subsection \fBBind mounts\fR.
1305
1306 The remount functionality follows the standard way the
1307 .B mount
1308 command works
1309 with options from
1310 .IR fstab .
1311 This means that \fBmount\fR does not read
1312 .I fstab
1313 (or
1314 .IR mtab )
1315 only when both
1316 .I device
1317 and
1318 .I dir
1319 are specified.
1320 .sp
1321 .in +4
1322 .B "mount \-o remount,rw /dev/foo /dir"
1323 .in
1324 .sp
1325 After this call all old mount options are replaced and arbitrary stuff from
1326 .I fstab
1327 (or
1328 .IR mtab )
1329 is ignored, except the loop= option which is internally
1330 generated and maintained by the mount command.
1331 .sp
1332 .in +4
1333 .B "mount \-o remount,rw /dir"
1334 .in
1335 .sp
1336 After this call, mount reads
1337 .I fstab
1338 and merges these options with
1339 the options from the command line (\fB\-o\fR).
1340 If no mountpoint is found in
1341 .IR fstab ,
1342 then a remount with unspecified source is
1343 allowed.
1344 .sp
1345 .B mount
1346 allows the use of \fB\-\-all\fR to remount all already mounted filesystems
1347 which match a specified filter (\fB\-O\fR and \fB\-t\fR). For example:
1348 .sp
1349 .in +4
1350 .B "mount \-\-all \-o remount,ro \-t vfat"
1351 .in
1352 .sp
1353 remounts all already mounted vfat filesystems in read-only mode. Each of the
1354 filesystems is remounted by "mount \-o remount,ro /dir" semantic.
1355 This means the
1356 .B mount
1357 command reads
1358 .I fstab
1359 or
1360 .I mtab
1361 and merges these options with the options
1362 from the command line.
1363 .TP
1364 .B ro
1365 Mount the filesystem read-only.
1366 .TP
1367 .B rw
1368 Mount the filesystem read-write.
1369 .TP
1370 .B sync
1371 All I/O to the filesystem should be done synchronously. In the case of
1372 media with a limited number of write cycles
1373 (e.g.\& some flash drives), \fBsync\fR may cause life-cycle shortening.
1374 .TP
1375 .B user
1376 Allow an ordinary user to mount the filesystem.
1377 The name of the mounting user is written to the
1378 .I mtab
1379 file (or to the private
1380 libmount file in
1381 .I /run/mount
1382 on systems without a regular
1383 .IR mtab )
1384 so that this
1385 same user can unmount the filesystem again.
1386 This option implies the options
1387 .BR noexec ", " nosuid ", and " nodev
1388 (unless overridden by subsequent options, as in the option line
1389 .BR user,exec,dev,suid ).
1390 .TP
1391 .B nouser
1392 Forbid an ordinary user to mount the filesystem.
1393 This is the default; it does not imply any other options.
1394 .TP
1395 .B users
1396 Allow any user to mount and to unmount the filesystem, even
1397 when some other ordinary user mounted it.
1398 This option implies the options
1399 .BR noexec ", " nosuid ", and " nodev
1400 (unless overridden by subsequent options, as in the option line
1401 .BR users,exec,dev,suid ).
1402 .TP
1403 .B X-*
1404 All options prefixed with "X-" are interpreted as comments or as userspace
1405 application-specific options.
1406 These options are not stored in user space (e.g.,
1407 .I mtab
1408 file),
1409 nor sent to the mount.\fItype\fR helpers nor to the
1410 .BR mount (2)
1411 system call. The suggested format is \fBX-\fIappname\fR.\fIoption\fR.
1412 .TP
1413 .B x-*
1414 The same as \fBX-*\fR options, but stored permanently in user space.
1415 This means the options are also available for
1416 .B umount
1417 or other operations. Note
1418 that maintaining mount options in user space is tricky,
1419 because it's necessary use
1420 libmount-based tools and there is no guarantee that the options will be always
1421 available (for example after a move mount operation or in unshared namespace).
1422
1423 Note that before util-linux v2.30 the x-* options have not been maintained by
1424 libmount and stored in user space (functionality was the same as for X-* now),
1425 but due to the growing number of use-cases (in initrd, systemd etc.) the
1426 functionality has been extended to keep existing
1427 .I fstab
1428 configurations usable
1429 without a change.
1430 .TP
1431 .BR X-mount.mkdir [ = \fImode\fR ]
1432 Allow to make a target directory (mountpoint) if it does not exit yet.
1433 The optional argument
1434 .I mode
1435 specifies the filesystem access mode used for
1436 .BR mkdir (2)
1437 in octal notation. The default mode is 0755. This functionality is supported
1438 only for root users or when mount executed without suid permissions. The option
1439 is also supported as x-mount.mkdir, this notation is deprecated since v2.30.
1440
1441 .SH FILESYSTEM-SPECIFIC MOUNT OPTIONS
1442 This section lists options that are specific to particular filesystems.
1443 Where possible, you should first consult filesystem-specific manual pages
1444 for details.
1445 Some of those pages are listed in the following table.
1446 .TS
1447 lb lb
1448 l l.
1449 Filesystem(s) Manual page
1450 btrfs \fBbtrfs\fP(5)
1451 cifs \fBmount.cifs\fP(8)
1452 ext2, ext3, ext4 \fBext4\fP(5)
1453 fuse \fBfuse\fP(8)
1454 nfs \fBnfs\fP(5)
1455 tmpfs \fBtmpfs\fP(5)
1456 xfs \fBxfs\fP(5)
1457 .TE
1458 .PP
1459 Note that some of the pages listed above might be available only
1460 after you install the respective userland tools.
1461 .PP
1462 The following options apply only to certain filesystems.
1463 We sort them by filesystem.
1464 All options follow the
1465 .B \-o
1466 flag.
1467 .PP
1468 What options are supported depends a bit on the running kernel.
1469 Further information may be available in fileystem-specific
1470 files in the kernel source subdirectory
1471 .IR Documentation/filesystems .
1472 .\"
1473 .SS "Mount options for adfs"
1474 .TP
1475 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1476 Set the owner and group of the files in the filesystem (default: uid=gid=0).
1477 .TP
1478 \fBownmask=\fP\,\fIvalue\fP and \fBothmask=\fP\,\fIvalue\fP
1479 Set the permission mask for ADFS 'owner' permissions and 'other' permissions,
1480 respectively (default: 0700 and 0077, respectively).
1481 See also
1482 .IR /usr/src/linux/Documentation/filesystems/adfs.rst .
1483
1484 .SS "Mount options for affs"
1485 .TP
1486 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1487 Set the owner and group of the root of the filesystem (default: uid=gid=0,
1488 but with option
1489 .B uid
1490 or
1491 .B gid
1492 without specified value, the UID and GID of the current process are taken).
1493 .TP
1494 \fBsetuid=\fP\,\fIvalue\fP and \fBsetgid=\fP\,\fIvalue\fP
1495 Set the owner and group of all files.
1496 .TP
1497 .BI mode= value
1498 Set the mode of all files to
1499 .IR value " & 0777"
1500 disregarding the original permissions.
1501 Add search permission to directories that have read permission.
1502 The value is given in octal.
1503 .TP
1504 .B protect
1505 Do not allow any changes to the protection bits on the filesystem.
1506 .TP
1507 .B usemp
1508 Set UID and GID of the root of the filesystem to the UID and GID
1509 of the mount point upon the first sync or umount, and then
1510 clear this option. Strange...
1511 .TP
1512 .B verbose
1513 Print an informational message for each successful mount.
1514 .TP
1515 .BI prefix= string
1516 Prefix used before volume name, when following a link.
1517 .TP
1518 .BI volume= string
1519 Prefix (of length at most 30) used before '/' when following a symbolic link.
1520 .TP
1521 .BI reserved= value
1522 (Default: 2.) Number of unused blocks at the start of the device.
1523 .TP
1524 .BI root= value
1525 Give explicitly the location of the root block.
1526 .TP
1527 .BI bs= value
1528 Give blocksize. Allowed values are 512, 1024, 2048, 4096.
1529 .TP
1530 .BR grpquota | noquota | quota | usrquota
1531 These options are accepted but ignored.
1532 (However, quota utilities may react to such strings in
1533 .IR /etc/fstab .)
1534
1535 .SS "Mount options for debugfs"
1536 The debugfs filesystem is a pseudo filesystem, traditionally mounted on
1537 .IR /sys/kernel/debug .
1538 .\" or just /debug
1539 .\" present since 2.6.11
1540 As of kernel version 3.4, debugfs has the following options:
1541 .TP
1542 .BI uid= n ", gid=" n
1543 Set the owner and group of the mountpoint.
1544 .TP
1545 .BI mode= value
1546 Sets the mode of the mountpoint.
1547
1548 .SS "Mount options for devpts"
1549 The devpts filesystem is a pseudo filesystem, traditionally mounted on
1550 .IR /dev/pts .
1551 In order to acquire a pseudo terminal, a process opens
1552 .IR /dev/ptmx ;
1553 the number of the pseudo terminal is then made available to the process
1554 and the pseudo terminal slave can be accessed as
1555 .IR /dev/pts/ <number>.
1556 .TP
1557 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1558 This sets the owner or the group of newly created pseudo terminals to
1559 the specified values. When nothing is specified, they will
1560 be set to the UID and GID of the creating process.
1561 For example, if there is a tty group with GID 5, then
1562 .B gid=5
1563 will cause newly created pseudo terminals to belong to the tty group.
1564 .TP
1565 .BI mode= value
1566 Set the mode of newly created pseudo terminals to the specified value.
1567 The default is 0600.
1568 A value of
1569 .B mode=620
1570 and
1571 .B gid=5
1572 makes "mesg y" the default on newly created pseudo terminals.
1573 .TP
1574 \fBnewinstance
1575 Create a private instance of the devpts filesystem, such that
1576 indices of pseudo terminals allocated in this new instance are
1577 independent of indices created in other instances of devpts.
1578
1579 All mounts of devpts without this
1580 .B newinstance
1581 option share the same set of pseudo terminal indices (i.e., legacy mode).
1582 Each mount of devpts with the
1583 .B newinstance
1584 option has a private set of pseudo terminal indices.
1585
1586 This option is mainly used to support containers in the
1587 Linux kernel. It is implemented in Linux kernel versions
1588 starting with 2.6.29. Further, this mount option is valid
1589 only if CONFIG_DEVPTS_MULTIPLE_INSTANCES is enabled in the
1590 kernel configuration.
1591
1592 To use this option effectively,
1593 .I /dev/ptmx
1594 must be a symbolic link to
1595 .IR pts/ptmx .
1596 See
1597 .I Documentation/filesystems/devpts.txt
1598 in the Linux kernel source tree for details.
1599 .TP
1600 .BI ptmxmode= value
1601
1602 Set the mode for the new
1603 .I ptmx
1604 device node in the devpts filesystem.
1605
1606 With the support for multiple instances of devpts (see
1607 .B newinstance
1608 option above), each instance has a private
1609 .I ptmx
1610 node in the root of the devpts filesystem (typically
1611 .IR /dev/pts/ptmx ).
1612
1613 For compatibility with older versions of the kernel, the
1614 default mode of the new
1615 .I ptmx
1616 node is 0000.
1617 .BI ptmxmode= value
1618 specifies a more useful mode for the
1619 .I ptmx
1620 node and is highly recommended when the
1621 .B newinstance
1622 option is specified.
1623
1624 This option is only implemented in Linux kernel versions
1625 starting with 2.6.29. Further, this option is valid only if
1626 CONFIG_DEVPTS_MULTIPLE_INSTANCES is enabled in the kernel
1627 configuration.
1628
1629 .SS "Mount options for fat"
1630 (Note:
1631 .I fat
1632 is not a separate filesystem, but a common part of the
1633 .IR msdos ,
1634 .I umsdos
1635 and
1636 .I vfat
1637 filesystems.)
1638 .TP
1639 .BR blocksize= { 512 | 1024 | 2048 }
1640 Set blocksize (default 512). This option is obsolete.
1641 .TP
1642 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1643 Set the owner and group of all files.
1644 (Default: the UID and GID of the current process.)
1645 .TP
1646 .BI umask= value
1647 Set the umask (the bitmask of the permissions that are
1648 .B not
1649 present). The default is the umask of the current process.
1650 The value is given in octal.
1651 .TP
1652 .BI dmask= value
1653 Set the umask applied to directories only.
1654 The default is the umask of the current process.
1655 The value is given in octal.
1656 .TP
1657 .BI fmask= value
1658 Set the umask applied to regular files only.
1659 The default is the umask of the current process.
1660 The value is given in octal.
1661 .TP
1662 .BI allow_utime= value
1663 This option controls the permission check of mtime/atime.
1664 .RS
1665 .TP
1666 .B 20
1667 If current process is in group of file's group ID, you can change timestamp.
1668 .TP
1669 .B 2
1670 Other users can change timestamp.
1671 .PP
1672 The default is set from `dmask' option. (If the directory is writable,
1673 .BR utime (2)
1674 is also allowed. I.e.\& \s+3~\s0dmask & 022)
1675
1676 Normally
1677 .BR utime (2)
1678 checks that the current process is owner of the file, or that it has the
1679 .B CAP_FOWNER
1680 capability. But FAT filesystems don't have UID/GID on disk, so the
1681 normal check is too inflexible. With this option you can relax it.
1682 .RE
1683 .TP
1684 .BI check= value
1685 Three different levels of pickiness can be chosen:
1686 .RS
1687 .TP
1688 .BR r [ elaxed ]
1689 Upper and lower case are accepted and equivalent, long name parts are
1690 truncated (e.g.\&
1691 .I verylongname.foobar
1692 becomes
1693 .IR verylong.foo ),
1694 leading and embedded spaces are accepted in each name part (name and extension).
1695 .TP
1696 .BR n [ ormal ]
1697 Like "relaxed", but many special characters (*, ?, <, spaces, etc.) are
1698 rejected. This is the default.
1699 .TP
1700 .BR s [ trict ]
1701 Like "normal", but names that contain long parts or special characters
1702 that are sometimes used on Linux but are not accepted by MS-DOS
1703 (+, =, etc.) are rejected.
1704 .RE
1705 .TP
1706 .BI codepage= value
1707 Sets the codepage for converting to shortname characters on FAT
1708 and VFAT filesystems. By default, codepage 437 is used.
1709 .TP
1710 .BI conv= mode
1711 This option is obsolete and may fail or be ignored.
1712 .TP
1713 .BI cvf_format= module
1714 Forces the driver to use the CVF (Compressed Volume File) module
1715 .RI cvf_ module
1716 instead of auto-detection. If the kernel supports kmod, the
1717 cvf_format=xxx option also controls on-demand CVF module loading.
1718 This option is obsolete.
1719 .TP
1720 .BI cvf_option= option
1721 Option passed to the CVF module. This option is obsolete.
1722 .TP
1723 .B debug
1724 Turn on the
1725 .I debug
1726 flag. A version string and a list of filesystem parameters will be
1727 printed (these data are also printed if the parameters appear to be
1728 inconsistent).
1729 .TP
1730 .B discard
1731 If set, causes discard/TRIM commands to be issued to the block device
1732 when blocks are freed. This is useful for SSD devices and
1733 sparse/thinly-provisioned LUNs.
1734 .TP
1735 .B dos1xfloppy
1736 If set, use a fallback default BIOS Parameter Block configuration, determined
1737 by backing device size. These static parameters match defaults assumed by DOS
1738 1.x for 160 kiB, 180 kiB, 320 kiB, and 360 kiB floppies and floppy images.
1739 .TP
1740 .BR errors= { panic | continue | remount-ro }
1741 Specify FAT behavior on critical errors: panic, continue without doing
1742 anything, or remount the partition in read-only mode (default behavior).
1743 .TP
1744 .BR fat= { 12 | 16 | 32 }
1745 Specify a 12, 16 or 32 bit fat. This overrides
1746 the automatic FAT type detection routine. Use with caution!
1747 .TP
1748 .BI iocharset= value
1749 Character set to use for converting between 8 bit characters
1750 and 16 bit Unicode characters. The default is iso8859-1.
1751 Long filenames are stored on disk in Unicode format.
1752 .TP
1753 .BR nfs= { stale_rw | nostale_ro }
1754 Enable this only if you want to export the FAT filesystem over NFS.
1755
1756 .BR stale_rw :
1757 This option maintains an index (cache) of directory inodes which is used by the
1758 nfs-related code to improve look-ups. Full file operations (read/write) over
1759 NFS are supported but with cache eviction at NFS server, this could result in
1760 spurious
1761 .B ESTALE
1762 errors.
1763
1764 .BR nostale_ro :
1765 This option bases the inode number and file handle
1766 on the on-disk location of a file in the FAT directory entry.
1767 This ensures that
1768 .B ESTALE
1769 will not be returned after a file is
1770 evicted from the inode cache. However, it means that operations
1771 such as rename, create and unlink could cause file handles that
1772 previously pointed at one file to point at a different file,
1773 potentially causing data corruption. For this reason, this
1774 option also mounts the filesystem readonly.
1775
1776 To maintain backward compatibility, '\-o nfs' is also accepted,
1777 defaulting to
1778 .BR stale_rw .
1779 .TP
1780 .B tz=UTC
1781 This option disables the conversion of timestamps
1782 between local time (as used by Windows on FAT) and UTC
1783 (which Linux uses internally). This is particularly
1784 useful when mounting devices (like digital cameras)
1785 that are set to UTC in order to avoid the pitfalls of
1786 local time.
1787 .TP
1788 .BI time_offset= minutes
1789 Set offset for conversion of timestamps from local time used by FAT to UTC.
1790 I.e.,
1791 .I minutes
1792 will be subtracted from each timestamp to convert it to UTC used
1793 internally by Linux. This is useful when the time zone set in the kernel via
1794 .BR settimeofday (2)
1795 is not the time zone used by the filesystem. Note
1796 that this option still does not provide correct time stamps in all cases in
1797 presence of DST - time stamps in a different DST setting will be off by one
1798 hour.
1799 .TP
1800 .B quiet
1801 Turn on the
1802 .I quiet
1803 flag. Attempts to chown or chmod files do not return errors,
1804 although they fail. Use with caution!
1805 .TP
1806 .B rodir
1807 FAT has the ATTR_RO (read-only) attribute. On Windows, the ATTR_RO of the
1808 directory will just be ignored, and is used only by applications as a flag
1809 (e.g.\& it's set for the customized folder).
1810
1811 If you want to use ATTR_RO as read-only flag even for the directory, set this
1812 option.
1813 .TP
1814 .B showexec
1815 If set, the execute permission bits of the file will be allowed only if
1816 the extension part of the name is \&.EXE, \&.COM, or \&.BAT. Not set by default.
1817 .TP
1818 .B sys_immutable
1819 If set, ATTR_SYS attribute on FAT is handled as IMMUTABLE flag on Linux.
1820 Not set by default.
1821 .TP
1822 .B flush
1823 If set, the filesystem will try to flush to disk more early than normal.
1824 Not set by default.
1825 .TP
1826 .B usefree
1827 Use the "free clusters" value stored on FSINFO. It'll
1828 be used to determine number of free clusters without
1829 scanning disk. But it's not used by default, because
1830 recent Windows don't update it correctly in some
1831 case. If you are sure the "free clusters" on FSINFO is
1832 correct, by this option you can avoid scanning disk.
1833 .TP
1834 .BR dots ", " nodots ", " dotsOK= [ yes | no ]
1835 Various misguided attempts to force Unix or DOS conventions
1836 onto a FAT filesystem.
1837
1838 .SS "Mount options for hfs"
1839 .TP
1840 .BI creator= cccc ", type=" cccc
1841 Set the creator/type values as shown by the MacOS finder
1842 used for creating new files. Default values: '????'.
1843 .TP
1844 .BI uid= n ", gid=" n
1845 Set the owner and group of all files.
1846 (Default: the UID and GID of the current process.)
1847 .TP
1848 .BI dir_umask= n ", file_umask=" n ", umask=" n
1849 Set the umask used for all directories, all regular files, or all
1850 files and directories. Defaults to the umask of the current process.
1851 .TP
1852 .BI session= n
1853 Select the CDROM session to mount.
1854 Defaults to leaving that decision to the CDROM driver.
1855 This option will fail with anything but a CDROM as underlying device.
1856 .TP
1857 .BI part= n
1858 Select partition number n from the device.
1859 Only makes sense for CDROMs.
1860 Defaults to not parsing the partition table at all.
1861 .TP
1862 .B quiet
1863 Don't complain about invalid mount options.
1864
1865 .SS "Mount options for hpfs"
1866 .TP
1867 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1868 Set the owner and group of all files. (Default: the UID and GID
1869 of the current process.)
1870 .TP
1871 .BI umask= value
1872 Set the umask (the bitmask of the permissions that are
1873 .B not
1874 present). The default is the umask of the current process.
1875 The value is given in octal.
1876 .TP
1877 .BR case= { lower | asis }
1878 Convert all files names to lower case, or leave them.
1879 (Default:
1880 .BR case=lower .)
1881 .TP
1882 .BI conv= mode
1883 This option is obsolete and may fail or being ignored.
1884 .TP
1885 .B nocheck
1886 Do not abort mounting when certain consistency checks fail.
1887
1888 .SS "Mount options for iso9660"
1889 ISO 9660 is a standard describing a filesystem structure to be used
1890 on CD-ROMs. (This filesystem type is also seen on some DVDs. See also the
1891 .I udf
1892 filesystem.)
1893
1894 Normal
1895 .I iso9660
1896 filenames appear in an 8.3 format (i.e., DOS-like restrictions on filename
1897 length), and in addition all characters are in upper case. Also there is
1898 no field for file ownership, protection, number of links, provision for
1899 block/character devices, etc.
1900
1901 Rock Ridge is an extension to iso9660 that provides all of these UNIX-like
1902 features. Basically there are extensions to each directory record that
1903 supply all of the additional information, and when Rock Ridge is in use,
1904 the filesystem is indistinguishable from a normal UNIX filesystem (except
1905 that it is read-only, of course).
1906 .TP
1907 .B norock
1908 Disable the use of Rock Ridge extensions, even if available. Cf.\&
1909 .BR map .
1910 .TP
1911 .B nojoliet
1912 Disable the use of Microsoft Joliet extensions, even if available. Cf.\&
1913 .BR map .
1914 .TP
1915 .BR check= { r [ elaxed ]| s [ trict ]}
1916 With
1917 .BR check=relaxed ,
1918 a filename is first converted to lower case before doing the lookup.
1919 This is probably only meaningful together with
1920 .B norock
1921 and
1922 .BR map=normal .
1923 (Default:
1924 .BR check=strict .)
1925 .TP
1926 \fBuid=\fP\,\fIvalue\fP and \fBgid=\fP\,\fIvalue\fP
1927 Give all files in the filesystem the indicated user or group id,
1928 possibly overriding the information found in the Rock Ridge extensions.
1929 (Default:
1930 .BR uid=0,gid=0 .)
1931 .TP
1932 .BR map= { n [ ormal ]| o [ ff ]| a [ corn ]}
1933 For non-Rock Ridge volumes, normal name translation maps upper
1934 to lower case ASCII, drops a trailing `;1', and converts `;' to `.'.
1935 With
1936 .B map=off
1937 no name translation is done. See
1938 .BR norock .
1939 (Default:
1940 .BR map=normal .)
1941 .B map=acorn
1942 is like
1943 .B map=normal
1944 but also apply Acorn extensions if present.
1945 .TP
1946 .BI mode= value
1947 For non-Rock Ridge volumes, give all files the indicated mode.
1948 (Default: read and execute permission for everybody.)
1949 Octal mode values require a leading 0.
1950 .TP
1951 .B unhide
1952 Also show hidden and associated files.
1953 (If the ordinary files and the associated or hidden files have
1954 the same filenames, this may make the ordinary files inaccessible.)
1955 .TP
1956 .BR block= { 512 | 1024 | 2048 }
1957 Set the block size to the indicated value.
1958 (Default:
1959 .BR block=1024 .)
1960 .TP
1961 .BI conv= mode
1962 This option is obsolete and may fail or being ignored.
1963 .TP
1964 .B cruft
1965 If the high byte of the file length contains other garbage,
1966 set this mount option to ignore the high order bits of the file length.
1967 This implies that a file cannot be larger than 16\ MB.
1968 .TP
1969 .BI session= x
1970 Select number of session on multisession CD.
1971 .TP
1972 .BI sbsector= xxx
1973 Session begins from sector xxx.
1974 .LP
1975 The following options are the same as for vfat and specifying them only makes
1976 sense when using discs encoded using Microsoft's Joliet extensions.
1977 .TP
1978 .BI iocharset= value
1979 Character set to use for converting 16 bit Unicode characters on CD
1980 to 8 bit characters. The default is iso8859-1.
1981 .TP
1982 .B utf8
1983 Convert 16 bit Unicode characters on CD to UTF-8.
1984
1985 .SS "Mount options for jfs"
1986 .TP
1987 .BI iocharset= name
1988 Character set to use for converting from Unicode to ASCII. The default is
1989 to do no conversion. Use
1990 .B iocharset=utf8
1991 for UTF8 translations. This requires CONFIG_NLS_UTF8 to be set in
1992 the kernel
1993 .I ".config"
1994 file.
1995 .TP
1996 .BI resize= value
1997 Resize the volume to
1998 .I value
1999 blocks. JFS only supports growing a volume, not shrinking it. This option
2000 is only valid during a remount, when the volume is mounted read-write. The
2001 .B resize
2002 keyword with no value will grow the volume to the full size of the partition.
2003 .TP
2004 .B nointegrity
2005 Do not write to the journal. The primary use of this option is to allow
2006 for higher performance when restoring a volume from backup media. The
2007 integrity of the volume is not guaranteed if the system abnormally ends.
2008 .TP
2009 .B integrity
2010 Default. Commit metadata changes to the journal. Use this option to remount
2011 a volume where the
2012 .B nointegrity
2013 option was previously specified in order to restore normal behavior.
2014 .TP
2015 .BR errors= { continue | remount-ro | panic }
2016 Define the behavior when an error is encountered.
2017 (Either ignore errors and just mark the filesystem erroneous and continue,
2018 or remount the filesystem read-only, or panic and halt the system.)
2019 .TP
2020 .BR noquota | quota | usrquota | grpquota
2021 These options are accepted but ignored.
2022
2023 .SS "Mount options for msdos"
2024 See mount options for fat.
2025 If the
2026 .I msdos
2027 filesystem detects an inconsistency, it reports an error and sets the file
2028 system read-only. The filesystem can be made writable again by remounting
2029 it.
2030
2031 .SS "Mount options for ncpfs"
2032 Just like
2033 .IR nfs ", the " ncpfs
2034 implementation expects a binary argument (a
2035 .IR "struct ncp_mount_data" )
2036 to the mount system call. This argument is constructed by
2037 .BR ncpmount (8)
2038 and the current version of
2039 .B mount
2040 (2.12) does not know anything about ncpfs.
2041
2042 .SS "Mount options for ntfs"
2043 .TP
2044 .BI iocharset= name
2045 Character set to use when returning file names.
2046 Unlike VFAT, NTFS suppresses names that contain
2047 nonconvertible characters. Deprecated.
2048 .TP
2049 .BI nls= name
2050 New name for the option earlier called
2051 .IR iocharset .
2052 .TP
2053 .B utf8
2054 Use UTF-8 for converting file names.
2055 .TP
2056 .BR uni_xlate= { 0 | 1 | 2 }
2057 For 0 (or `no' or `false'), do not use escape sequences
2058 for unknown Unicode characters.
2059 For 1 (or `yes' or `true') or 2, use vfat-style 4-byte escape sequences
2060 starting with ":". Here 2 give a little-endian encoding
2061 and 1 a byteswapped bigendian encoding.
2062 .TP
2063 .B posix=[0|1]
2064 If enabled (posix=1), the filesystem distinguishes between
2065 upper and lower case. The 8.3 alias names are presented as
2066 hard links instead of being suppressed. This option is obsolete.
2067 .TP
2068 \fBuid=\fP\,\fIvalue\fP, \fBgid=\fP\,\fIvalue\fP and \fBumask=\fP\,\fIvalue\fP
2069 Set the file permission on the filesystem.
2070 The umask value is given in octal.
2071 By default, the files are owned by root and not readable by somebody else.
2072
2073 .SS "Mount options for overlay"
2074 Since Linux 3.18 the overlay pseudo filesystem implements a union mount for
2075 other filesystems.
2076
2077 An overlay filesystem combines two filesystems - an \fBupper\fR filesystem and
2078 a \fBlower\fR filesystem. When a name exists in both filesystems, the object
2079 in the upper filesystem is visible while the object in the lower filesystem is
2080 either hidden or, in the case of directories, merged with the upper object.
2081
2082 The lower filesystem can be any filesystem supported by Linux and does not need
2083 to be writable. The lower filesystem can even be another overlayfs. The upper
2084 filesystem will normally be writable and if it is it must support the creation
2085 of trusted.* extended attributes, and must provide a valid d_type in readdir
2086 responses, so NFS is not suitable.
2087
2088 A read-only overlay of two read-only filesystems may use any filesystem type.
2089 The options \fBlowerdir\fR and \fBupperdir\fR are combined into a merged
2090 directory by using:
2091
2092 .RS
2093 .br
2094 .nf
2095 .B "mount \-t overlay overlay \e"
2096 .B " \-olowerdir=/lower,upperdir=/upper,workdir=/work /merged"
2097 .fi
2098 .br
2099 .RE
2100
2101 .TP
2102 .BI lowerdir= directory
2103 Any filesystem, does not need to be on a writable filesystem.
2104 .TP
2105 .BI upperdir= directory
2106 The upperdir is normally on a writable filesystem.
2107 .TP
2108 .BI workdir= directory
2109 The workdir needs to be an empty directory on the same filesystem as upperdir.
2110
2111 .SS "Mount options for reiserfs"
2112 Reiserfs is a journaling filesystem.
2113 .TP
2114 .B conv
2115 Instructs version 3.6 reiserfs software to mount a version 3.5 filesystem,
2116 using the 3.6 format for newly created objects. This filesystem will no
2117 longer be compatible with reiserfs 3.5 tools.
2118 .TP
2119 .BR hash= { rupasov | tea | r5 | detect }
2120 Choose which hash function reiserfs will use to find files within directories.
2121 .RS
2122 .TP
2123 .B rupasov
2124 A hash invented by Yury Yu.\& Rupasov. It is fast and preserves locality,
2125 mapping lexicographically close file names to close hash values.
2126 This option should not be used, as it causes a high probability of hash
2127 collisions.
2128 .TP
2129 .B tea
2130 A Davis-Meyer function implemented by Jeremy Fitzhardinge.
2131 It uses hash permuting bits in the name. It gets high randomness
2132 and, therefore, low probability of hash collisions at some CPU cost.
2133 This may be used if EHASHCOLLISION errors are experienced with the r5 hash.
2134 .TP
2135 .B r5
2136 A modified version of the rupasov hash. It is used by default and is
2137 the best choice unless the filesystem has huge directories and
2138 unusual file-name patterns.
2139 .TP
2140 .B detect
2141 Instructs
2142 .I mount
2143 to detect which hash function is in use by examining
2144 the filesystem being mounted, and to write this information into
2145 the reiserfs superblock. This is only useful on the first mount of
2146 an old format filesystem.
2147 .RE
2148 .TP
2149 .B hashed_relocation
2150 Tunes the block allocator. This may provide performance improvements
2151 in some situations.
2152 .TP
2153 .B no_unhashed_relocation
2154 Tunes the block allocator. This may provide performance improvements
2155 in some situations.
2156 .TP
2157 .B noborder
2158 Disable the border allocator algorithm invented by Yury Yu.\& Rupasov.
2159 This may provide performance improvements in some situations.
2160 .TP
2161 .B nolog
2162 Disable journaling. This will provide slight performance improvements in
2163 some situations at the cost of losing reiserfs's fast recovery from crashes.
2164 Even with this option turned on, reiserfs still performs all journaling
2165 operations, save for actual writes into its journaling area. Implementation
2166 of
2167 .I nolog
2168 is a work in progress.
2169 .TP
2170 .B notail
2171 By default, reiserfs stores small files and `file tails' directly into its
2172 tree. This confuses some utilities such as
2173 .BR LILO (8).
2174 This option is used to disable packing of files into the tree.
2175 .TP
2176 .B replayonly
2177 Replay the transactions which are in the journal, but do not actually
2178 mount the filesystem. Mainly used by
2179 .IR reiserfsck .
2180 .TP
2181 .BI resize= number
2182 A remount option which permits online expansion of reiserfs partitions.
2183 Instructs reiserfs to assume that the device has
2184 .I number
2185 blocks.
2186 This option is designed for use with devices which are under logical
2187 volume management (LVM).
2188 There is a special
2189 .I resizer
2190 utility which can be obtained from
2191 .IR ftp://ftp.namesys.com/pub/reiserfsprogs .
2192 .TP
2193 .B user_xattr
2194 Enable Extended User Attributes. See the
2195 .BR attr (1)
2196 manual page.
2197 .TP
2198 .B acl
2199 Enable POSIX Access Control Lists. See the
2200 .BR acl (5)
2201 manual page.
2202 .TP
2203 .BR barrier=none " / " barrier=flush "
2204 This disables / enables the use of write barriers in the journaling code.
2205 barrier=none disables, barrier=flush enables (default). This also requires an
2206 IO stack which can support barriers, and if reiserfs gets an error on a barrier
2207 write, it will disable barriers again with a warning. Write barriers enforce
2208 proper on-disk ordering of journal commits, making volatile disk write caches
2209 safe to use, at some performance penalty. If your disks are battery-backed in
2210 one way or another, disabling barriers may safely improve performance.
2211
2212 .SS "Mount options for ubifs"
2213 UBIFS is a flash filesystem which works on top of UBI volumes. Note that
2214 \fBatime\fR is not supported and is always turned off.
2215 .TP
2216 The device name may be specified as
2217 .PP
2218 .RS
2219 .B ubiX_Y
2220 UBI device number
2221 .BR X ,
2222 volume number
2223 .B Y
2224 .TP
2225 .B ubiY
2226 UBI device number
2227 .BR 0 ,
2228 volume number
2229 .B Y
2230 .TP
2231 .B ubiX:NAME
2232 UBI device number
2233 .BR X ,
2234 volume with name
2235 .B NAME
2236 .TP
2237 .B ubi:NAME
2238 UBI device number
2239 .BR 0 ,
2240 volume with name
2241 .B NAME
2242 .RE
2243 .PP
2244 Alternative
2245 .B !
2246 separator may be used instead of
2247 .BR : .
2248 .TP
2249 The following mount options are available:
2250 .TP
2251 .B bulk_read
2252 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
2253 the data are read at one go, rather than at several read requests. For
2254 example, OneNAND can do "read-while-load" if it reads more than one NAND page.
2255 .TP
2256 .B no_bulk_read
2257 Do not bulk-read. This is the default.
2258 .TP
2259 .B chk_data_crc
2260 Check data CRC-32 checksums. This is the default.
2261 .TP
2262 .BR no_chk_data_crc .
2263 Do not check data CRC-32 checksums. With this option, the filesystem does not
2264 check CRC-32 checksum for data, but it does check it for the internal indexing
2265 information. This option only affects reading, not writing. CRC-32 is always
2266 calculated when writing the data.
2267 .TP
2268 .BR compr= { none | lzo | zlib }
2269 Select the default compressor which is used when new files are written. It is
2270 still possible to read compressed files if mounted with the
2271 .B none
2272 option.
2273
2274 .SS "Mount options for udf"
2275 UDF is the "Universal Disk Format" filesystem defined by OSTA, the Optical
2276 Storage Technology Association, and is often used for DVD-ROM, frequently
2277 in the form of a hybrid UDF/ISO-9660 filesystem. It is, however,
2278 perfectly usable by itself on disk drives, flash drives and other block devices.
2279 See also
2280 .IR iso9660 .
2281 .TP
2282 .B uid=
2283 Make all files in the filesystem belong to the given user.
2284 uid=forget can be specified independently of (or usually in
2285 addition to) uid=<user> and results in UDF
2286 not storing uids to the media. In fact the recorded uid
2287 is the 32-bit overflow uid \-1 as defined by the UDF standard.
2288 The value is given as either <user> which is a valid user name or the corresponding
2289 decimal user id, or the special string "forget".
2290 .TP
2291 .B gid=
2292 Make all files in the filesystem belong to the given group.
2293 gid=forget can be specified independently of (or usually in
2294 addition to) gid=<group> and results in UDF
2295 not storing gids to the media. In fact the recorded gid
2296 is the 32-bit overflow gid \-1 as defined by the UDF standard.
2297 The value is given as either <group> which is a valid group name or the corresponding
2298 decimal group id, or the special string "forget".
2299 .TP
2300 .B umask=
2301 Mask out the given permissions from all inodes read from the filesystem.
2302 The value is given in octal.
2303 .TP
2304 .B mode=
2305 If mode= is set the permissions of all non-directory inodes read from the
2306 filesystem will be set to the given mode. The value is given in octal.
2307 .TP
2308 .B dmode=
2309 If dmode= is set the permissions of all directory inodes read from the
2310 filesystem will be set to the given dmode. The value is given in octal.
2311 .TP
2312 .B bs=
2313 Set the block size. Default value prior to kernel version 2.6.30 was
2314 2048. Since 2.6.30 and prior to 4.11 it was logical device block size with
2315 fallback to 2048. Since 4.11 it is logical block size with fallback to
2316 any valid block size between logical device block size and 4096.
2317
2318 For other details see the \fBmkudffs\fP(8) 2.0+ manpage, sections
2319 \fBCOMPATIBILITY\fP and \fBBLOCK SIZE\fP.
2320 .TP
2321 .B unhide
2322 Show otherwise hidden files.
2323 .TP
2324 .B undelete
2325 Show deleted files in lists.
2326 .TP
2327 .B adinicb
2328 Embed data in the inode. (default)
2329 .TP
2330 .B noadinicb
2331 Don't embed data in the inode.
2332 .TP
2333 .B shortad
2334 Use short UDF address descriptors.
2335 .TP
2336 .B longad
2337 Use long UDF address descriptors. (default)
2338 .TP
2339 .B nostrict
2340 Unset strict conformance.
2341 .TP
2342 .B iocharset=
2343 Set the NLS character set. This requires kernel compiled with CONFIG_UDF_NLS option.
2344 .TP
2345 .B utf8
2346 Set the UTF-8 character set.
2347 .SS Mount options for debugging and disaster recovery
2348 .TP
2349 .B novrs
2350 Ignore the Volume Recognition Sequence and attempt to mount anyway.
2351 .TP
2352 .B session=
2353 Select the session number for multi-session recorded optical media. (default= last session)
2354 .TP
2355 .B anchor=
2356 Override standard anchor location. (default= 256)
2357 .TP
2358 .B lastblock=
2359 Set the last block of the filesystem.
2360 .SS Unused historical mount options that may be encountered and should be removed
2361 .TP
2362 .B uid=ignore
2363 Ignored, use uid=<user> instead.
2364 .TP
2365 .B gid=ignore
2366 Ignored, use gid=<group> instead.
2367 .TP
2368 .B volume=
2369 Unimplemented and ignored.
2370 .TP
2371 .B partition=
2372 Unimplemented and ignored.
2373 .TP
2374 .B fileset=
2375 Unimplemented and ignored.
2376 .TP
2377 .B rootdir=
2378 Unimplemented and ignored.
2379
2380 .SS "Mount options for ufs"
2381 .TP
2382 .BI ufstype= value
2383 UFS is a filesystem widely used in different operating systems.
2384 The problem are differences among implementations. Features of some
2385 implementations are undocumented, so its hard to recognize the
2386 type of ufs automatically.
2387 That's why the user must specify the type of ufs by mount option.
2388 Possible values are:
2389 .RS
2390 .TP
2391 .B old
2392 Old format of ufs, this is the default, read only.
2393 (Don't forget to give the \-r option.)
2394 .TP
2395 .B 44bsd
2396 For filesystems created by a BSD-like system (NetBSD, FreeBSD, OpenBSD).
2397 .TP
2398 .B ufs2
2399 Used in FreeBSD 5.x supported as read-write.
2400 .TP
2401 .B 5xbsd
2402 Synonym for ufs2.
2403 .TP
2404 .B sun
2405 For filesystems created by SunOS or Solaris on Sparc.
2406 .TP
2407 .B sunx86
2408 For filesystems created by Solaris on x86.
2409 .TP
2410 .B hp
2411 For filesystems created by HP-UX, read-only.
2412 .TP
2413 .B nextstep
2414 For filesystems created by NeXTStep (on NeXT station) (currently read only).
2415 .TP
2416 .B nextstep-cd
2417 For NextStep CDROMs (block_size == 2048), read-only.
2418 .TP
2419 .B openstep
2420 For filesystems created by OpenStep (currently read only).
2421 The same filesystem type is also used by Mac OS X.
2422 .RE
2423
2424 .TP
2425 .BI onerror= value
2426 Set behavior on error:
2427 .RS
2428 .TP
2429 .B panic
2430 If an error is encountered, cause a kernel panic.
2431 .TP
2432 .RB [ lock | umount | repair ]
2433 These mount options don't do anything at present;
2434 when an error is encountered only a console message is printed.
2435 .RE
2436
2437 .SS "Mount options for umsdos"
2438 See mount options for msdos.
2439 The
2440 .B dotsOK
2441 option is explicitly killed by
2442 .IR umsdos .
2443
2444 .SS "Mount options for vfat"
2445 First of all, the mount options for
2446 .I fat
2447 are recognized.
2448 The
2449 .B dotsOK
2450 option is explicitly killed by
2451 .IR vfat .
2452 Furthermore, there are
2453 .TP
2454 .B uni_xlate
2455 Translate unhandled Unicode characters to special escaped sequences.
2456 This lets you backup and restore filenames that are created with any
2457 Unicode characters. Without this option, a '?' is used when no
2458 translation is possible. The escape character is ':' because it is
2459 otherwise invalid on the vfat filesystem. The escape sequence
2460 that gets used, where u is the Unicode character,
2461 is: ':', (u & 0x3f), ((u>>6) & 0x3f), (u>>12).
2462 .TP
2463 .B posix
2464 Allow two files with names that only differ in case.
2465 This option is obsolete.
2466 .TP
2467 .B nonumtail
2468 First try to make a short name without sequence number,
2469 before trying
2470 .IR name\s+3~\s0num.ext .
2471 .TP
2472 .B utf8
2473 UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the
2474 console. It can be enabled for the filesystem with this option or disabled
2475 with utf8=0, utf8=no or utf8=false. If `uni_xlate' gets set, UTF8 gets
2476 disabled.
2477 .TP
2478 .BI shortname= mode
2479 Defines the behavior for creation and display of filenames which fit into
2480 8.3 characters. If a long name for a file exists, it will always be the
2481 preferred one for display. There are four \fImode\fRs:
2482 .RS
2483 .TP
2484 .B lower
2485 Force the short name to lower case upon display; store a long name when
2486 the short name is not all upper case.
2487 .TP
2488 .B win95
2489 Force the short name to upper case upon display; store a long name when
2490 the short name is not all upper case.
2491 .TP
2492 .B winnt
2493 Display the short name as is; store a long name when the short name is
2494 not all lower case or all upper case.
2495 .TP
2496 .B mixed
2497 Display the short name as is; store a long name when the short name is not
2498 all upper case. This mode is the default since Linux 2.6.32.
2499 .RE
2500
2501 .SS "Mount options for usbfs"
2502 .TP
2503 \fBdevuid=\fP\,\fIuid\fP and \fBdevgid=\fP\,\fIgid\fP and \fBdevmode=\fP\,\fImode\fP
2504 Set the owner and group and mode of the device files in the usbfs filesystem
2505 (default: uid=gid=0, mode=0644). The mode is given in octal.
2506 .TP
2507 \fBbusuid=\fP\,\fIuid\fP and \fBbusgid=\fP\,\fIgid\fP and \fBbusmode=\fP\,\fImode\fP
2508 Set the owner and group and mode of the bus directories in the usbfs
2509 filesystem (default: uid=gid=0, mode=0555). The mode is given in octal.
2510 .TP
2511 \fBlistuid=\fP\,\fIuid\fP and \fBlistgid=\fP\,\fIgid\fP and \fBlistmode=\fP\,\fImode\fP
2512 Set the owner and group and mode of the file
2513 .I devices
2514 (default: uid=gid=0, mode=0444). The mode is given in octal.
2515
2516 .SH DM-VERITY SUPPORT (experimental)
2517 The device-mapper verity target provides read-only transparent integrity
2518 checking of block devices using kernel crypto API. The
2519 .B mount
2520 command can open
2521 the dm-verity device and do the integrity verification before on the device
2522 filesystem is mounted. Requires libcryptsetup with in libmount. If
2523 libcryptsetup supports extracting the root hash of an already mounted device,
2524 existing devices will be automatically reused in case of a match.
2525 Mount options for dm-verity:
2526 .TP
2527 \fBverity.hashdevice=\fP\,\fIpath\fP
2528 Path to the hash tree device associated with the source volume to pass to dm-verity.
2529 .TP
2530 \fBverity.roothash=\fP\,\fIhex\fP
2531 Hex-encoded hash of the root of
2532 .I verity.hashdevice
2533 Mutually exclusive with
2534 .I verity.roothashfile.
2535 .TP
2536 \fBverity.roothashfile=\fP\,\fIpath\fP
2537 Path to file containing the hex-encoded hash of the root of
2538 .I verity.hashdevice.
2539 Mutually exclusive with
2540 .I verity.roothash.
2541 .TP
2542 \fBverity.hashoffset=\fP\,\fIoffset\fP
2543 If the hash tree device is embedded in the source volume,
2544 .I offset
2545 (default: 0) is used by dm-verity to get to the tree.
2546 .TP
2547 \fBverity.fecdevice=\fP\,\fIpath\fP
2548 Path to the Forward Error Correction (FEC) device associated with the source volume to pass to dm-verity.
2549 Optional. Requires kernel built with CONFIG_DM_VERITY_FEC.
2550 .TP
2551 \fBverity.fecoffset=\fP\,\fIoffset\fP
2552 If the FEC device is embedded in the source volume,
2553 .I offset
2554 (default: 0) is used by dm-verity to get to the FEC area. Optional.
2555 .TP
2556 \fBverity.fecroots=\fP\,\fIvalue\fP
2557 Parity bytes for FEC (default: 2). Optional.
2558 .TP
2559 \fBverity.roothashsig=\fP\,\fIpath\fP
2560 Path to pkcs7 signature of root hash hex string. Requires crypt_activate_by_signed_key() from cryptsetup and
2561 kernel built with CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG. For device reuse, signatures have to be either used by all
2562 mounts of a device or by none. Optional.
2563 .PP
2564 Supported since util-linux v2.35.
2565 .PP
2566 For example commands:
2567 .sp
2568 .RS
2569 .nf
2570 .B mksquashfs /etc /tmp/etc.squashfs
2571 .B dd if=/dev/zero of=/tmp/etc.hash bs=1M count=10
2572 .B veritysetup format /tmp/etc.squashfs /tmp/etc.hash
2573 .B openssl smime \-sign \-in <hash> \-nocerts \-inkey private.key \-signer private.crt \-noattr \-binary \-outform der \-out /tmp/etc.p7
2574 .B mount \-o verity.hashdevice=/tmp/etc.hash,verity.roothash=<hash>,verity.roothashsig=/tmp/etc.p7 /tmp/etc.squashfs /mnt
2575 .fi
2576 .RE
2577 .sp
2578 create squashfs image from /etc directory, verity hash device
2579 and mount verified filesystem image to /mnt.
2580 The kernel will verify that the root hash is signed by a key from the kernel keyring if roothashsig is used.
2581
2582 .SH LOOP-DEVICE SUPPORT
2583 One further possible type is a mount via the loop device. For example,
2584 the command
2585 .RS
2586 .sp
2587 .B "mount /tmp/disk.img /mnt \-t vfat \-o loop=/dev/loop3"
2588 .sp
2589 .RE
2590 will set up the loop device
2591 .I /dev/loop3
2592 to correspond to the file
2593 .IR /tmp/disk.img ,
2594 and then mount this device on
2595 .IR /mnt .
2596
2597 If no explicit loop device is mentioned
2598 (but just an option `\fB\-o loop\fP' is given), then
2599 .B mount
2600 will try to find some unused loop device and use that, for example
2601 .RS
2602 .sp
2603 .B "mount /tmp/disk.img /mnt \-o loop"
2604 .sp
2605 .RE
2606 The
2607 .B mount
2608 command
2609 .B automatically
2610 creates a loop device from a regular file if a filesystem type is
2611 not specified or the filesystem is known for libblkid, for example:
2612 .RS
2613 .sp
2614 .B "mount /tmp/disk.img /mnt"
2615 .sp
2616 .B "mount \-t ext4 /tmp/disk.img /mnt"
2617 .sp
2618 .RE
2619 This type of mount knows about three options, namely
2620 .BR loop ", " offset " and " sizelimit ,
2621 that are really options to
2622 .BR \%losetup (8).
2623 (These options can be used in addition to those specific
2624 to the filesystem type.)
2625
2626 Since Linux 2.6.25 auto-destruction of loop devices is supported,
2627 meaning that any loop device allocated by
2628 .B mount
2629 will be freed by
2630 .B umount
2631 independently of
2632 .IR /etc/mtab .
2633
2634 You can also free a loop device by hand, using
2635 .BR "losetup \-d " or " umount \-d" .
2636
2637 Since util-linux v2.29,
2638 .B mount
2639 re-uses the loop device rather than
2640 initializing a new device if the same backing file is already used for some loop
2641 device with the same offset and sizelimit. This is necessary to avoid
2642 a filesystem corruption.
2643
2644 .SH EXIT STATUS
2645 .B mount
2646 has the following exit status values (the bits can be ORed):
2647 .TP
2648 .B 0
2649 success
2650 .TP
2651 .B 1
2652 incorrect invocation or permissions
2653 .TP
2654 .B 2
2655 system error (out of memory, cannot fork, no more loop devices)
2656 .TP
2657 .B 4
2658 internal
2659 .B mount
2660 bug
2661 .TP
2662 .B 8
2663 user interrupt
2664 .TP
2665 .B 16
2666 problems writing or locking /etc/mtab
2667 .TP
2668 .B 32
2669 mount failure
2670 .TP
2671 .B 64
2672 some mount succeeded
2673
2674 The command \fBmount \-a\fR returns 0 (all succeeded), 32 (all failed), or 64 (some
2675 failed, some succeeded).
2676
2677 .SH EXTERNAL HELPERS
2678 The syntax of external mount helpers is:
2679 .sp
2680 .in +4
2681 .BI /sbin/mount. suffix
2682 .I spec dir
2683 .RB [ \-sfnv ]
2684 .RB [ \-N
2685 .IR namespace ]
2686 .RB [ \-o
2687 .IR options ]
2688 .RB [ \-t
2689 .IR type \fB. subtype ]
2690 .in
2691 .sp
2692 where the \fIsuffix\fR is the filesystem type and the \fB\-sfnvoN\fR options have
2693 the same meaning as the normal mount options. The \fB\-t\fR option is used for
2694 filesystems with subtypes support (for example
2695 .BR "/sbin/mount.fuse \-t fuse.sshfs" ).
2696
2697 The command \fBmount\fR does not pass the mount options
2698 .BR unbindable ,
2699 .BR runbindable ,
2700 .BR private ,
2701 .BR rprivate ,
2702 .BR slave ,
2703 .BR rslave ,
2704 .BR shared ,
2705 .BR rshared ,
2706 .BR auto ,
2707 .BR noauto ,
2708 .BR comment ,
2709 .BR x-* ,
2710 .BR loop ,
2711 .B offset
2712 and
2713 .B sizelimit
2714 to the mount.<suffix> helpers. All other options are used in a
2715 comma-separated list as an argument to the \fB\-o\fR option.
2716
2717 .SH ENVIRONMENT
2718 .IP LIBMOUNT_FSTAB=<path>
2719 overrides the default location of the
2720 .I fstab
2721 file (ignored for suid)
2722 .IP LIBMOUNT_MTAB=<path>
2723 overrides the default location of the
2724 .I mtab
2725 file (ignored for suid)
2726 .IP LIBMOUNT_DEBUG=all
2727 enables libmount debug output
2728 .IP LIBBLKID_DEBUG=all
2729 enables libblkid debug output
2730 .IP LOOPDEV_DEBUG=all
2731 enables loop device setup debug output
2732 .SH FILES
2733 See also "\fBThe files /etc/fstab, /etc/mtab and /proc/mounts\fR" section above.
2734 .TP 18n
2735 .I /etc/fstab
2736 filesystem table
2737 .TP
2738 .I /run/mount
2739 libmount private runtime directory
2740 .TP
2741 .I /etc/mtab
2742 table of mounted filesystems or symlink to
2743 .I /proc/mounts
2744 .TP
2745 .I /etc/mtab\s+3~\s0
2746 lock file (unused on systems with
2747 .I mtab
2748 symlink)
2749 .TP
2750 .I /etc/mtab.tmp
2751 temporary file (unused on systems with
2752 .I mtab
2753 symlink)
2754 .TP
2755 .I /etc/filesystems
2756 a list of filesystem types to try
2757 .SH HISTORY
2758 A
2759 .B mount
2760 command existed in Version 5 AT&T UNIX.
2761 .SH BUGS
2762 It is possible for a corrupted filesystem to cause a crash.
2763 .PP
2764 Some Linux filesystems don't support
2765 .BR "\-o sync " and " \-o dirsync"
2766 (the ext2, ext3, ext4, fat and vfat filesystems
2767 .I do
2768 support synchronous updates (a la BSD) when mounted with the
2769 .B sync
2770 option).
2771 .PP
2772 The
2773 .B "\-o remount"
2774 may not be able to change mount parameters (all
2775 .IR ext2fs -specific
2776 parameters, except
2777 .BR sb ,
2778 are changeable with a remount, for example, but you can't change
2779 .B gid
2780 or
2781 .B umask
2782 for the
2783 .IR fatfs ).
2784 .PP
2785 It is possible that the files
2786 .I /etc/mtab
2787 and
2788 .I /proc/mounts
2789 don't match on systems with a regular
2790 .I mtab
2791 file. The first file is based only on
2792 the mount command options, but the content of the second file also depends on
2793 the kernel and others settings (e.g.\& on a remote NFS server -- in certain cases
2794 the mount command may report unreliable information about an NFS mount point
2795 and the
2796 .I /proc/mount
2797 file usually contains more reliable information.) This is
2798 another reason to replace the
2799 .I mtab
2800 file with a symlink to the
2801 .I /proc/mounts
2802 file.
2803 .PP
2804 Checking files on NFS filesystems referenced by file descriptors (i.e.\& the
2805 .B fcntl
2806 and
2807 .B ioctl
2808 families of functions) may lead to inconsistent results due to the lack of
2809 a consistency check in the kernel even if the
2810 .B noac
2811 mount option is used.
2812 .PP
2813 The
2814 .B loop
2815 option with the
2816 .B offset
2817 or
2818 .B sizelimit
2819 options used may fail when using older kernels if the
2820 .B mount
2821 command can't confirm that the size of the block device has been configured
2822 as requested. This situation can be worked around by using
2823 the
2824 .B losetup
2825 command manually before calling
2826 .B mount
2827 with the configured loop device.
2828 .SH AUTHORS
2829 .nf
2830 Karel Zak <kzak@redhat.com>
2831 .fi
2832 .SH SEE ALSO
2833 .na
2834 .BR lsblk (1),
2835 .BR mount (2),
2836 .BR umount (2),
2837 .BR fileystems (5),
2838 .BR fstab (5),
2839 .BR nfs (5),
2840 .BR xfs (5),
2841 .BR mount_namespaces (7)
2842 .BR xattr (7)
2843 .BR e2label (8),
2844 .BR findmnt (8),
2845 .BR losetup (8),
2846 .BR mke2fs (8),
2847 .BR mountd (8),
2848 .BR nfsd (8),
2849 .BR swapon (8),
2850 .BR tune2fs (8),
2851 .BR umount (8),
2852 .BR xfs_admin (8)
2853 .ad
2854 .SH AVAILABILITY
2855 The mount command is part of the util-linux package and is available from
2856 https://www.kernel.org/pub/linux/utils/util-linux/.