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