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