]> git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/mount.8
Imported from util-linux-2.12 tarball.
[thirdparty/util-linux.git] / mount / mount.8
1 .\" Copyright (c) 1996 Andries Brouwer
2 .\"
3 .\" This page is somewhat derived from a page that was
4 .\" (c) 1980, 1989, 1991 The Regents of the University of California
5 .\" and had been heavily modified by Rik Faith and myself.
6 .\" (Probably no BSD text remains.)
7 .\" Fragments of text were written by Werner Almesberger, Remy Card,
8 .\" Stephen Tweedie and Eric Youngdale.
9 .\"
10 .\" This is free documentation; you can redistribute it and/or
11 .\" modify it under the terms of the GNU General Public License as
12 .\" published by the Free Software Foundation; either version 2 of
13 .\" the License, or (at your option) any later version.
14 .\"
15 .\" The GNU General Public License's references to "object code"
16 .\" and "executables" are to be interpreted as the output of any
17 .\" document formatting or typesetting system, including
18 .\" intermediate and printed output.
19 .\"
20 .\" This manual is distributed in the hope that it will be useful,
21 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
22 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 .\" GNU General Public License for more details.
24 .\"
25 .\" You should have received a copy of the GNU General Public
26 .\" License along with this manual; if not, write to the Free
27 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
28 .\" USA.
29 .\"
30 .\" 960705, aeb: version for mount-2.7g
31 .\" 970114, aeb: xiafs and ext are dead; romfs is new
32 .\" 970623, aeb: -F option
33 .\" 970914, reg: -s option
34 .\" 981111, K.Garloff: /etc/filesystems
35 .\" 990111, aeb: documented /sbin/mount.smbfs
36 .\" 990730, Yann Droneaud <lch@multimania.com>: updated page
37 .\" 991214, Elrond <Elrond@Wunder-Nett.org>: added some docs on devpts
38 .\" 010714, Michael K. Johnson <johnsonm@redhat.com> added -O
39 .\" 010725, Nikita Danilov <NikitaDanilov@Yahoo.COM>: reiserfs options
40 .\" 011124, Karl Eichwalder <ke@gnu.franken.de>: tmpfs options
41 .\"
42 .TH MOUNT 8 "14 September 1997" "Linux 2.0" "Linux Programmer's Manual"
43 .SH NAME
44 mount \- mount a file system
45 .SH SYNOPSIS
46 .BI "mount [\-lhV]"
47 .LP
48 .BI "mount \-a [\-fFnrsvw] [\-t " vfstype "] [\-O " optlist ]
49 .br
50 .BI "mount [\-fnrsvw] [\-o " options " [,...]] " "device " | " dir"
51 .br
52 .BI "mount [\-fnrsvw] [\-t " vfstype "] [\-o " options "] " "device dir"
53 .SH DESCRIPTION
54 All files accessible in a Unix system are arranged in one big
55 tree, the file hierarchy, rooted at
56 .BR / .
57 These files can be spread out over several devices. The
58 .B mount
59 command serves to attach the file system found on some device
60 to the big file tree. Conversely, the
61 .BR umount (8)
62 command will detach it again.
63
64 The standard form of the
65 .B mount
66 command, is
67 .RS
68 .br
69 .BI "mount \-t" " type device dir"
70 .RE
71 This tells the kernel to attach the file system found on
72 .I device
73 (which is of type
74 .IR type )
75 at the directory
76 .IR dir .
77 The previous contents (if any) and owner and mode of
78 .I dir
79 become invisible, and as long as this file system remains mounted,
80 the pathname
81 .I dir
82 refers to the root of the file system on
83 .IR device .
84
85 Three forms of invocation do not actually mount anything:
86 .RS
87 .br
88 .B "mount \-h"
89 .RE
90 prints a help message;
91 .RS
92 .br
93 .B "mount \-V"
94 .RE
95 prints a version string; and just
96 .RS
97 .BI "mount [-l] [-t" " type" ]
98 .RE
99 lists all mounted file systems (of type
100 .IR type ).
101 The option \-l adds the (ext2, ext3 and XFS) labels in this listing.
102 See below.
103
104 .\" In fact since 2.3.99. At first the syntax was mount -t bind.
105 Since Linux 2.4.0 it is possible to remount part of the
106 file hierarchy somewhere else. The call is
107 .RS
108 .br
109 .B "mount --bind olddir newdir"
110 .RE
111 After this call the same contents is accessible in two places.
112
113 This call attaches only (part of) a single filesystem, not possible
114 submounts. The entire file hierarchy including submounts is attached
115 a second place using
116 .RS
117 .br
118 .B "mount --rbind olddir newdir"
119 .RE
120 .\" available since Linux 2.4.11.
121
122 Since Linux 2.5.1 it is possible to atomically move a subtree
123 to another place. The call is
124 .RS
125 .br
126 .B "mount --move olddir newdir"
127 .RE
128
129 The
130 .I proc
131 file system is not associated with a special device, and when
132 mounting it, an arbitrary keyword, such as
133 .I proc
134 can be used instead of a device specification.
135 (The customary choice
136 .I none
137 is less fortunate: the error message `none busy' from
138 .B umount
139 can be confusing.)
140
141 Most devices are indicated by a file name (of a block special device), like
142 .IR /dev/sda1 ,
143 but there are other possibilities. For example, in the case of an NFS mount,
144 .I device
145 may look like
146 .IR knuth.cwi.nl:/dir .
147 It is possible to indicate a block special device using its
148 volume label or UUID (see the \-L and \-U options below).
149
150 The file
151 .I /etc/fstab
152 (see
153 .BR fstab (5)),
154 may contain lines describing what devices are usually
155 mounted where, using which options. This file is used in three ways:
156 .LP
157 (i) The command
158 .RS
159 .br
160 .BI "mount \-a [\-t " type "] [\-O " optlist ]
161 .RE
162 (usually given in a bootscript) causes all file systems mentioned in
163 .I fstab
164 (of the proper type and/or having or not having the proper options)
165 to be mounted as indicated, except for those whose line contains the
166 .B noauto
167 keyword. Adding the
168 .B \-F
169 option will make mount fork, so that the
170 filesystems are mounted simultaneously.
171 .LP
172 (ii) When mounting a file system mentioned in
173 .IR fstab ,
174 it suffices to give only the device, or only the mount point.
175 .LP
176 (iii) Normally, only the superuser can mount file systems.
177 However, when
178 .I fstab
179 contains the
180 .B user
181 option on a line, then anybody can mount the corresponding system.
182 .LP
183 Thus, given a line
184 .RS
185 .br
186 .B "/dev/cdrom /cd iso9660 ro,user,noauto,unhide"
187 .RE
188 any user can mount the iso9660 file system found on his CDROM
189 using the command
190 .RS
191 .br
192 .B "mount /dev/cdrom"
193 .RE
194 or
195 .RS
196 .br
197 .B "mount /cd"
198 .RE
199 For more details, see
200 .BR fstab (5).
201 Only the user that mounted a filesystem can unmount it again.
202 If any user should be able to unmount, then use
203 .B users
204 instead of
205 .B user
206 in the
207 .I fstab
208 line.
209 The
210 .B owner
211 option is similar to the
212 .B user
213 option, with the restriction that the user must be the owner
214 of the special file. This may be useful e.g. for
215 .I /dev/fd
216 if a login script makes the console user owner of this device.
217
218 The programs
219 .B mount
220 and
221 .B umount
222 maintain a list of currently mounted file systems in the file
223 .IR /etc/mtab .
224 If no arguments are given to
225 .BR mount ,
226 this list is printed.
227
228 When the
229 .I proc
230 filesystem is mounted (say at
231 .IR /proc ),
232 the files
233 .I /etc/mtab
234 and
235 .I /proc/mounts
236 have very similar contents. The former has somewhat
237 more information, such as the mount options used,
238 but is not necessarily up-to-date (cf. the
239 .B \-n
240 option below). It is possible to replace
241 .I /etc/mtab
242 by a symbolic link to
243 .IR /proc/mounts ,
244 but some information is lost that way, and in particular
245 working with the loop device will be less convenient,
246 and using the "user" option will fail.
247
248 .SH OPTIONS
249 The full set of options used by an invocation of
250 .B mount
251 is determined by first extracting the
252 options for the file system from the
253 .I fstab
254 table, then applying any options specified by the
255 .B \-o
256 argument, and finally applying a
257 .BR \-r " or " \-w
258 option, when present.
259
260 Options available for the
261 .B mount
262 command:
263 .TP
264 .B \-V
265 Output version.
266 .TP
267 .B \-h
268 Print a help message.
269 .TP
270 .B \-v
271 Verbose mode.
272 .TP
273 .B \-a
274 Mount all filesystems (of the given types) mentioned in
275 .IR fstab .
276 .TP
277 .B \-F
278 (Used in conjunction with
279 .BR \-a .)
280 Fork off a new incarnation of mount for each device.
281 This will do the mounts on different devices or different NFS servers
282 in parallel.
283 This has the advantage that it is faster; also NFS timeouts go in
284 parallel. A disadvantage is that the mounts are done in undefined order.
285 Thus, you cannot use this option if you want to mount both
286 .I /usr
287 and
288 .IR /usr/spool .
289 .TP
290 .B \-f
291 Causes everything to be done except for the actual system call; if it's not
292 obvious, this ``fakes'' mounting the file system. This option is useful in
293 conjunction with the
294 .B \-v
295 flag to determine what the
296 .B mount
297 command is trying to do. It can also be used to add entries for devices
298 that were mounted earlier with the -n option.
299 .TP
300 .B \-i
301 Don't call the /sbin/mount.<filesystem> helper even if it exists.
302 .TP
303 .B \-l
304 Add the ext2, ext3 and XFS labels in the mount output. Mount must have
305 permission to read the disk device (e.g. be suid root) for this to work.
306 One can set such a label for ext2 or ext3 using the
307 .BR e2label (8)
308 utility, or for XFS using
309 .BR xfs_admin (8).
310 .TP
311 .B \-n
312 Mount without writing in
313 .IR /etc/mtab .
314 This is necessary for example when
315 .I /etc
316 is on a read-only file system.
317 .TP
318 .BI \-p " num"
319 In case of a loop mount with encryption, read the passphrase from
320 file descriptor
321 .I num
322 instead of from the terminal.
323 .TP
324 .B \-s
325 Tolerate sloppy mount options rather than failing. This will ignore
326 mount options not supported by a filesystem type. Not all filesystems
327 support this option. This option exists for support of the Linux
328 autofs\-based automounter.
329 .TP
330 .B \-r
331 Mount the file system read-only. A synonym is
332 .BR "\-o ro" .
333 .TP
334 .B \-w
335 Mount the file system read/write. This is the default. A synonym is
336 .BR "\-o rw" .
337 .TP
338 .BI \-L " label"
339 Mount the partition that has the specified
340 .IR label .
341 .TP
342 .BI \-U " uuid"
343 Mount the partition that has the specified
344 .IR uuid .
345 These two options require the file
346 .I /proc/partitions
347 (present since Linux 2.1.116) to exist.
348 .TP
349 .BI \-t " vfstype"
350 The argument following the
351 .B \-t
352 is used to indicate the file system type. The file system types which are
353 currently supported are:
354 .IR adfs ,
355 .IR affs ,
356 .IR autofs ,
357 .IR coda ,
358 .IR coherent ,
359 .IR cramfs ,
360 .IR devpts ,
361 .IR efs ,
362 .IR ext ,
363 .IR ext2 ,
364 .IR ext3 ,
365 .IR hfs ,
366 .IR hpfs ,
367 .IR iso9660 ,
368 .IR jfs ,
369 .IR minix ,
370 .IR msdos ,
371 .IR ncpfs ,
372 .IR nfs ,
373 .IR ntfs ,
374 .IR proc ,
375 .IR qnx4 ,
376 .IR ramfs ,
377 .IR reiserfs ,
378 .IR romfs ,
379 .IR smbfs ,
380 .IR sysv ,
381 .IR tmpfs ,
382 .IR udf ,
383 .IR ufs ,
384 .IR umsdos ,
385 .IR vfat ,
386 .IR xenix ,
387 .IR xfs ,
388 .IR xiafs .
389 Note that coherent, sysv and xenix are equivalent and that
390 .I xenix
391 and
392 .I coherent
393 will be removed at some point in the future \(em use
394 .I sysv
395 instead. Since kernel version 2.1.21 the types
396 .I ext
397 and
398 .I xiafs
399 do not exist anymore.
400
401 For most types all the
402 .B mount
403 program has to do is issue a simple
404 .IR mount (2)
405 system call, and no detailed knowledge of the filesystem type is required.
406 For a few types however (like nfs, smbfs, ncpfs) ad hoc code is
407 necessary. The nfs ad hoc code is built in, but smbfs and ncpfs
408 have a separate mount program. In order to make it possible to
409 treat all types in a uniform way, mount will execute the program
410 .I /sbin/mount.TYPE
411 (if that exists) when called with type
412 .IR TYPE .
413 Since various versions of the
414 .I smbmount
415 program have different calling conventions,
416 .I /sbin/mount.smbfs
417 may have to be a shell script that sets up the desired call.
418
419 The type
420 .I iso9660
421 is the default. If no
422 .B \-t
423 option is given, or if the
424 .B auto
425 type is specified, the superblock is probed for the filesystem type
426 .RI ( adfs ,
427 .IR bfs ,
428 .IR cramfs ,
429 .IR ext ,
430 .IR ext2 ,
431 .IR ext3 ,
432 .IR hfs ,
433 .IR hpfs ,
434 .IR iso9660 ,
435 .IR jfs ,
436 .IR minix ,
437 .IR ntfs ,
438 .IR qnx4 ,
439 .IR reiserfs ,
440 .IR romfs ,
441 .IR udf ,
442 .IR ufs ,
443 .IR vxfs ,
444 .IR xfs ,
445 .IR xiafs
446 are supported).
447 If this probe fails, mount will try to read the file
448 .IR /etc/filesystems ,
449 or, if that does not exist,
450 .IR /proc/filesystems .
451 All of the filesystem types listed there will be tried,
452 except for those that are labeled "nodev" (e.g.,
453 .IR devpts ,
454 .I proc
455 and
456 .IR nfs ).
457 If
458 .I /etc/filesystems
459 ends in a line with a single * only, mount will read
460 .I /proc/filesystems
461 afterwards.
462
463 The
464 .B auto
465 type may be useful for user-mounted floppies.
466 Creating a file
467 .I /etc/filesystems
468 can be useful to change the probe order (e.g., to try vfat before msdos)
469 or if you use a kernel module autoloader.
470 Warning: the probing uses a heuristic (the presence of appropriate `magic'),
471 and could recognize the wrong filesystem type, possibly with catastrophic
472 consequences. If your data is valuable, don't ask
473 .B mount
474 to guess.
475
476 More than one type may be specified in a comma separated
477 list. The list of file system types can be prefixed with
478 .B no
479 to specify the file system types on which no action should be taken.
480 (This can be meaningful with the
481 .B \-a
482 option.)
483
484 For example, the command:
485 .RS
486 .RS
487 .B "mount \-a \-t nomsdos,ext"
488 .RE
489 mounts all file systems except those of type
490 .I msdos
491 and
492 .IR ext .
493 .RE
494 .TP
495 .B \-O
496 Used in conjunction with
497 .BR \-a ,
498 to limit the set of filesystems to which the
499 .B \-a
500 is applied. Like
501 .B \-t
502 in this regard except that it is useless except in the context of
503 .BR \-a .
504 For example, the command:
505 .RS
506 .RS
507 .B "mount \-a \-O no_netdev"
508 .RE
509 mounts all file systems except those which have the option
510 .I _netdev
511 specified in the options field in the
512 .I /etc/fstab
513 file.
514
515 It is different from
516 .B \-t
517 in that each option is matched exactly; a leading
518 .B no
519 at the beginning of one option does not negate the rest.
520
521 The
522 .B \-t
523 and
524 .B \-O
525 options are cumulative in effect; that is, the command
526 .RS
527 .B "mount \-a \-t ext2 \-O _netdev"
528 .RE
529 mounts all ext2 filesystems with the _netdev option, not all filesystems
530 that are either ext2 or have the _netdev option specified.
531 .RE
532 .TP
533 .B \-o
534 Options are specified with a
535 .B \-o
536 flag followed by a comma separated string of options.
537 Some of these options are only useful when they appear in the
538 .I /etc/fstab
539 file. The following options apply to any file system that is being
540 mounted (but not every file system actually honors them - e.g., the
541 .B sync
542 option today has effect only for ext2, ext3 and ufs):
543 .RS
544 .TP
545 .B async
546 All I/O to the file system should be done asynchronously.
547 .TP
548 .B atime
549 Update inode access time for each access. This is the default.
550 .TP
551 .B auto
552 Can be mounted with the
553 .B \-a
554 option.
555 .TP
556 .B defaults
557 Use default options:
558 .BR rw ", " suid ", " dev ", " exec ", " auto ", " nouser ", and " async.
559 .TP
560 .B dev
561 Interpret character or block special devices on the file system.
562 .TP
563 .B exec
564 Permit execution of binaries.
565 .TP
566 .B _netdev
567 The filesystem resides on a device that requires network access
568 (used to prevent the system from attempting to mount these filesystems
569 until the network has been enabled on the system).
570 .TP
571 .B noatime
572 Do not update inode access times on this file system (e.g, for faster
573 access on the news spool to speed up news servers).
574 .TP
575 .B noauto
576 Can only be mounted explicitly (i.e., the
577 .B \-a
578 option will not cause the file system to be mounted).
579 .TP
580 .B nodev
581 Do not interpret character or block special devices on the file
582 system.
583 .TP
584 .B noexec
585 Do not allow execution of any binaries on the mounted file system.
586 This option might be useful for a server that has file systems containing
587 binaries for architectures other than its own.
588 .TP
589 .B nosuid
590 Do not allow set-user-identifier or set-group-identifier bits to take
591 effect. (This seems safe, but is in fact rather unsafe if you have
592 suidperl(1) installed.)
593 .TP
594 .B nouser
595 Forbid an ordinary (i.e., non-root) user to mount the file system.
596 This is the default.
597 .TP
598 .B remount
599 Attempt to remount an already-mounted file system. This is commonly
600 used to change the mount flags for a file system, especially to make a
601 readonly file system writeable. It does not change device or mount point.
602 .TP
603 .B ro
604 Mount the file system read-only.
605 .TP
606 .B rw
607 Mount the file system read-write.
608 .TP
609 .B suid
610 Allow set-user-identifier or set-group-identifier bits to take
611 effect.
612 .TP
613 .B sync
614 All I/O to the file system should be done synchronously.
615 .TP
616 .B dirsync
617 All directory updates within the file system should be done synchronously.
618 This affects the following system calls: creat, link, unlink, symlink,
619 mkdir, rmdir, mknod and rename.
620 .TP
621 .B user
622 Allow an ordinary user to mount the file system.
623 The name of the mounting user is written to mtab so that he can unmount
624 the file system again.
625 This option implies the options
626 .BR noexec ", " nosuid ", and " nodev
627 (unless overridden by subsequent options, as in the option line
628 .BR user,exec,dev,suid ).
629 .TP
630 .B users
631 Allow every user to mount and unmount the file system.
632 This option implies the options
633 .BR noexec ", " nosuid ", and " nodev
634 (unless overridden by subsequent options, as in the option line
635 .BR users,exec,dev,suid ).
636 .RE
637 .TP
638 .B \-\-bind
639 Remount a subtree somewhere else (so that its contents are available
640 in both places). See above.
641 .TP
642 .B \-\-move
643 Move a subtree to some other place. See above.
644
645 .SH "FILESYSTEM SPECIFIC MOUNT OPTIONS"
646 The following options apply only to certain file systems.
647 We sort them by file system. They all follow the
648 .B \-o
649 flag.
650 .SH "Mount options for adfs"
651 .TP
652 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
653 Set the owner and group of the files in the file system (default: uid=gid=0).
654 .TP
655 \fBownmask=\fP\fIvalue\fP and \fBothmask=\fP\fIvalue\fP
656 Set the permission mask for ADFS 'owner' permissions and 'other' permissions,
657 respectively (default: 0700 and 0077, respectively).
658 See also
659 .IR /usr/src/linux/Documentation/filesystems/adfs.txt .
660 .SH "Mount options for affs"
661 .TP
662 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
663 Set the owner and group of the root of the file system (default: uid=gid=0,
664 but with option
665 .B uid
666 or
667 .B gid
668 without specified value, the uid and gid of the current process are taken).
669 .TP
670 \fBsetuid=\fP\fIvalue\fP and \fBsetgid=\fP\fIvalue\fP
671 Set the owner and group of all files.
672 .TP
673 .BI mode= value
674 Set the mode of all files to
675 .IR value " & 0777"
676 disregarding the original permissions.
677 Add search permission to directories that have read permission.
678 The value is given in octal.
679 .TP
680 .B protect
681 Do not allow any changes to the protection bits on the file system.
682 .TP
683 .B usemp
684 Set uid and gid of the root of the file system to the uid and gid
685 of the mount point upon the first sync or umount, and then
686 clear this option. Strange...
687 .TP
688 .B verbose
689 Print an informational message for each successful mount.
690 .TP
691 .BI prefix= string
692 Prefix used before volume name, when following a link.
693 .TP
694 .BI volume= string
695 Prefix (of length at most 30) used before '/' when following a symbolic link.
696 .TP
697 .BI reserved= value
698 (Default: 2.) Number of unused blocks at the start of the device.
699 .TP
700 .BI root= value
701 Give explicitly the location of the root block.
702 .TP
703 .BI bs= value
704 Give blocksize. Allowed values are 512, 1024, 2048, 4096.
705 .TP
706 .BR grpquota " / " noquota " / " quota " / " usrquota
707 These options are accepted but ignored.
708 (However, quota utilities may react to such strings in
709 .IR /etc/fstab .)
710
711 .SH "Mount options for coherent"
712 None.
713
714 .SH "Mount options for devpts"
715 The devpts file system is a pseudo file system, traditionally mounted on
716 .IR /dev/pts .
717 In order to acquire a pseudo terminal, a process opens
718 .IR /dev/ptmx ;
719 the number of the pseudo terminal is then made available to the process
720 and the pseudo terminal slave can be accessed as
721 .IR /dev/pts/ <number>.
722 .TP
723 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
724 This sets the owner or the group of newly created PTYs to
725 the specified values. When nothing is specified, they will
726 be set to the UID and GID of the creating process.
727 For example, if there is a tty group with GID 5, then
728 .B gid=5
729 will cause newly created PTYs to belong to the tty group.
730 .TP
731 .BI mode= value
732 Set the mode of newly created PTYs to the specified value.
733 The default is 0600.
734 A value of
735 .B mode=620
736 and
737 .B gid=5
738 makes "mesg y" the default on newly created PTYs.
739
740 .SH "Mount options for ext"
741 None.
742 Note that the `ext' file system is obsolete. Don't use it.
743 Since Linux version 2.1.21 extfs is no longer part of the kernel source.
744
745 .SH "Mount options for ext2"
746 The `ext2' file system is the standard Linux file system.
747 Due to a kernel bug, it may be mounted with random mount options
748 (fixed in Linux 2.0.4).
749 .TP
750 .BR bsddf " / " minixdf
751 Set the behaviour for the
752 .I statfs
753 system call. The
754 .B minixdf
755 behaviour is to return in the
756 .I f_blocks
757 field the total number of blocks of the file system, while the
758 .B bsddf
759 behaviour (which is the default) is to subtract the overhead blocks
760 used by the ext2 file system and not available for file storage. Thus
761 .RE
762 .nf
763
764 % mount /k -o minixdf; df /k; umount /k
765 Filesystem 1024-blocks Used Available Capacity Mounted on
766 /dev/sda6 2630655 86954 2412169 3% /k
767 % mount /k -o bsddf; df /k; umount /k
768 Filesystem 1024-blocks Used Available Capacity Mounted on
769 /dev/sda6 2543714 13 2412169 0% /k
770
771 .fi
772 (Note that this example shows that one can add command line options
773 to the options given in
774 .IR /etc/fstab .)
775
776 .TP
777 .BR check " / " check=normal " / " check=strict
778 Set checking level. When at least one of these options is set (and
779 .B check=normal
780 is set by default) the inodes and blocks bitmaps are checked upon mount
781 (which can take half a minute or so on a big disk, and is rather useless).
782 With strict checking, block deallocation checks that the block to free
783 is in the data zone.
784 .TP
785 .BR check=none " / " nocheck
786 No checking is done. This is fast. Recent kernels do not have a
787 check option anymore - checking with
788 .BR e2fsck (8)
789 is more meaningful.
790 .TP
791 .B debug
792 Print debugging info upon each (re)mount.
793 .TP
794 .BR errors=continue " / " errors=remount-ro " / " errors=panic
795 Define the behaviour when an error is encountered.
796 (Either ignore errors and just mark the file system erroneous and continue,
797 or remount the file system read-only, or panic and halt the system.)
798 The default is set in the filesystem superblock, and can be
799 changed using
800 .BR tune2fs (8).
801 .TP
802 .BR grpid " or " bsdgroups " / " nogrpid " or " sysvgroups
803 These options define what group id a newly created file gets.
804 When
805 .BR grpid
806 is set, it takes the group id of the directory in which it is created;
807 otherwise (the default) it takes the fsgid of the current process, unless
808 the directory has the setgid bit set, in which case it takes the gid
809 from the parent directory, and also gets the setgid bit set
810 if it is a directory itself.
811 .TP
812 \fBresgid=\fP\fIn\fP and \fBresuid=\fP\fIn\fP
813 The ext2 file system reserves a certain percentage of the available
814 space (by default 5%, see
815 .BR mke2fs (8)
816 and
817 .BR tune2fs (8)).
818 These options determine who can use the reserved blocks.
819 (Roughly: whoever has the specified uid, or belongs to the specified group.)
820 .TP
821 .BI sb= n
822 Instead of block 1, use block
823 .I n
824 as superblock. This could be useful when the filesystem has been damaged.
825 (Earlier, copies of the superblock would be made every 8192 blocks: in
826 block 1, 8193, 16385, ... (and one got hundreds or even thousands
827 of copies on a big filesystem). Since version 1.08,
828 .B mke2fs
829 has a \-s (sparse superblock) option to reduce the number of backup
830 superblocks, and since version 1.15 this is the default. Note
831 that this may mean that ext2 filesystems created by a recent
832 .B mke2fs
833 cannot be mounted r/w under Linux 2.0.*.)
834 The block number here uses 1k units. Thus, if you want to use logical
835 block 32768 on a filesystem with 4k blocks, use "sb=131072".
836 .TP
837 .BR grpquota " / " noquota " / " quota " / " usrquota
838 These options are accepted but ignored.
839
840 .TP
841 .BR nouid32
842 Disables 32-bit UIDs and GIDs. This is for interoperability with older
843 kernels which only store and expect 16-bit values.
844
845
846 .SH "Mount options for ext3"
847 The `ext3' file system is version of the ext2 file system which has been
848 enhanced with journalling. It supports the same options as ext2 as
849 well as the following additions:
850 .\" .TP
851 .\" .BR abort
852 .\" Mount the file system in abort mode, as if a fatal error has occurred.
853 .TP
854 .BR journal=update
855 Update the ext3 file system's journal to the current format.
856 .TP
857 .BR journal=inum
858 When a journal already exists, this option is ignored. Otherwise, it
859 specifies the number of the inode which will represent the ext3 file system's
860 journal file; ext3 will create a new journal, overwriting the old contents
861 of the file whose inode number is
862 .IR inum .
863 .TP
864 .BR noload
865 Do not load the ext3 file system's journal on mounting.
866 .TP
867 .BR data=journal " / " data=ordered " / " data=writeback
868 Specifies the journalling mode for file data. Metadata is always journaled.
869 .RS
870 .TP
871 .B journal
872 All data is committed into the journal prior to being written into the
873 main file system.
874 .TP
875 .B ordered
876 This is the default mode. All data is forced directly out to the main file
877 system prior to its metadata being committed to the journal.
878 .TP
879 .B writeback
880 Data ordering is not preserved - data may be written into the main
881 file system after its metadata has been committed to the journal.
882 This is rumoured to be the highest-throughput option. It guarantees
883 internal file system integrity, however it can allow old data to appear
884 in files after a crash and journal recovery.
885
886 .SH "Mount options for fat"
887 (Note:
888 .I fat
889 is not a separate filesystem, but a common part of the
890 .IR msdos ,
891 .I umsdos
892 and
893 .I vfat
894 filesystems.)
895 .TP
896 .BR blocksize=512 " / " blocksize=1024 " / " blocksize=2048
897 Set blocksize (default 512).
898 .TP
899 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
900 Set the owner and group of all files. (Default: the uid and gid
901 of the current process.)
902 .TP
903 .BI umask= value
904 Set the umask (the bitmask of the permissions that are
905 .B not
906 present). The default is the umask of the current process.
907 The value is given in octal.
908 .TP
909 .BI dmask= value
910 Set the umask applied to directories only.
911 The default is the umask of the current process.
912 The value is given in octal. Present since 2.5.43.
913 .TP
914 .BI fmask= value
915 Set the umask applied to regular files only.
916 The default is the umask of the current process.
917 The value is given in octal. Present since 2.5.43.
918 .TP
919 .BI check= value
920 Three different levels of pickyness can be chosen:
921 .RS
922 .TP
923 .B r[elaxed]
924 Upper and lower case are accepted and equivalent, long name parts are
925 truncated (e.g.
926 .I verylongname.foobar
927 becomes
928 .IR verylong.foo ),
929 leading and embedded spaces are accepted in each name part (name and extension).
930 .TP
931 .B n[ormal]
932 Like "relaxed", but many special characters (*, ?, <, spaces, etc.) are
933 rejected. This is the default.
934 .TP
935 .B s[trict]
936 Like "normal", but names may not contain long parts and special characters
937 that are sometimes used on Linux, but are not accepted by MS-DOS are
938 rejected. (+, =, spaces, etc.)
939 .RE
940 .TP
941 .BI codepage= value
942 Sets the codepage for converting to shortname characters on FAT
943 and VFAT filesystems. By default, codepage 437 is used.
944 .TP
945 .BR conv=b[inary] " / " conv=t[ext] " / " conv=a[uto]
946 The
947 .I fat
948 file system can perform CRLF<-->NL (MS-DOS text format to UNIX text
949 format) conversion in the kernel. The following conversion modes are
950 available:
951 .RS
952 .TP
953 .B binary
954 no translation is performed. This is the default.
955 .TP
956 .B text
957 CRLF<-->NL translation is performed on all files.
958 .TP
959 .B auto
960 CRLF<-->NL translation is performed on all files that don't have a
961 "well-known binary" extension. The list of known extensions can be found at
962 the beginning of
963 .I fs/fat/misc.c
964 (as of 2.0, the list is: exe, com, bin, app, sys, drv, ovl, ovr, obj,
965 lib, dll, pif, arc, zip, lha, lzh, zoo, tar, z, arj, tz, taz, tzp, tpz,
966 gz, tgz, deb, gif, bmp, tif, gl, jpg, pcx, tfm, vf, gf, pk, pxl, dvi).
967 .PP
968 Programs that do computed lseeks won't like in-kernel text conversion.
969 Several people have had their data ruined by this translation. Beware!
970
971 For file systems mounted in binary mode, a conversion tool
972 (fromdos/todos) is available.
973 .RE
974 .TP
975 .BI cvf_format= module
976 Forces the driver to use the CVF (Compressed Volume File) module
977 .RI cvf_ module
978 instead of auto-detection. If the kernel supports kmod, the
979 cvf_format=xxx option also controls on-demand CVF module loading.
980 .TP
981 .BI cvf_option= option
982 Option passed to the CVF module.
983 .TP
984 .B debug
985 Turn on the
986 .I debug
987 flag. A version string and a list of file system parameters will be
988 printed (these data are also printed if the parameters appear to be
989 inconsistent).
990 .TP
991 .BR fat=12 " / " fat=16 " / " fat=32
992 Specify a 12, 16 or 32 bit fat. This overrides
993 the automatic FAT type detection routine. Use with caution!
994 .TP
995 .BI iocharset= value
996 Character set to use for converting between 8 bit characters
997 and 16 bit Unicode characters. The default is iso8859-1.
998 Long filenames are stored on disk in Unicode format.
999 .TP
1000 .B quiet
1001 Turn on the
1002 .I quiet
1003 flag. Attempts to chown or chmod files do not return errors,
1004 although they fail. Use with caution!
1005 .TP
1006 .B "sys_immutable, showexec, dots, nodots, dotsOK=[yes|no]"
1007 Various misguided attempts to force Unix or DOS conventions
1008 onto a FAT file system.
1009
1010 .SH "Mount options for hpfs"
1011 .TP
1012 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1013 Set the owner and group of all files. (Default: the uid and gid
1014 of the current process.)
1015 .TP
1016 .BI umask= value
1017 Set the umask (the bitmask of the permissions that are
1018 .B not
1019 present). The default is the umask of the current process.
1020 The value is given in octal.
1021 .TP
1022 .BR case=lower " / " case=asis
1023 Convert all files names to lower case, or leave them.
1024 (Default:
1025 .BR case=lower .)
1026 .TP
1027 .BR conv=binary " / " conv=text " / " conv=auto
1028 For
1029 .BR conv=text ,
1030 delete some random CRs (in particular, all followed by NL)
1031 when reading a file.
1032 For
1033 .BR conv=auto ,
1034 choose more or less at random between
1035 .BR conv=binary " and " conv=text .
1036 For
1037 .BR conv=binary ,
1038 just read what is in the file. This is the default.
1039 .TP
1040 .B nocheck
1041 Do not abort mounting when certain consistency checks fail.
1042
1043 .SH "Mount options for iso9660"
1044 ISO 9660 is a standard describing a filesystem structure to be used
1045 on CD-ROMs. (This filesystem type is also seen on some DVDs. See also the
1046 .I udf
1047 filesystem.)
1048
1049 Normal
1050 .I iso9660
1051 filenames appear in a 8.3 format (i.e., DOS-like restrictions on filename
1052 length), and in addition all characters are in upper case. Also there is
1053 no field for file ownership, protection, number of links, provision for
1054 block/character devices, etc.
1055
1056 Rock Ridge is an extension to iso9660 that provides all of these unix like
1057 features. Basically there are extensions to each directory record that
1058 supply all of the additional information, and when Rock Ridge is in use,
1059 the filesystem is indistinguishable from a normal UNIX file system (except
1060 that it is read-only, of course).
1061 .TP
1062 .B norock
1063 Disable the use of Rock Ridge extensions, even if available. Cf.\&
1064 .BR map .
1065 .TP
1066 .B nojoliet
1067 Disable the use of Microsoft Joliet extensions, even if available. Cf.\&
1068 .BR map .
1069 .TP
1070 .BR check=r[elaxed] " / " check=s[trict]
1071 With
1072 .BR check=relaxed ,
1073 a filename is first converted to lower case before doing the lookup.
1074 This is probably only meaningful together with
1075 .B norock
1076 and
1077 .BR map=normal .
1078 (Default:
1079 .BR check=strict .)
1080 .TP
1081 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1082 Give all files in the file system the indicated user or group id,
1083 possibly overriding the information found in the Rock Ridge extensions.
1084 (Default:
1085 .BR uid=0,gid=0 .)
1086 .TP
1087 .BR map=n[ormal] " / " map=o[ff] " / " map=a[corn]
1088 For non-Rock Ridge volumes, normal name translation maps upper
1089 to lower case ASCII, drops a trailing `;1', and converts `;' to `.'.
1090 With
1091 .B map=off
1092 no name translation is done. See
1093 .BR norock .
1094 (Default:
1095 .BR map=normal .)
1096 .B map=acorn
1097 is like
1098 .BR map=normal
1099 but also apply Acorn extensions if present.
1100 .TP
1101 .BI mode= value
1102 For non-Rock Ridge volumes, give all files the indicated mode.
1103 (Default: read permission for everybody.)
1104 Since Linux 2.1.37 one no longer needs to specify the mode in
1105 decimal. (Octal is indicated by a leading 0.)
1106 .TP
1107 .B unhide
1108 Also show hidden and associated files.
1109 (If the ordinary files and the associated or hidden files have
1110 the same filenames, this may make the ordinary files inaccessible.)
1111 .TP
1112 .B block=[512|1024|2048]
1113 Set the block size to the indicated value.
1114 (Default:
1115 .BR block=1024 .)
1116 .TP
1117 .BR conv=a[uto] " / " conv=b[inary] " / " conv=m[text] " / " conv=t[ext]
1118 (Default:
1119 .BR conv=binary .)
1120 Since Linux 1.3.54 this option has no effect anymore.
1121 (And non-binary settings used to be very dangerous,
1122 possibly leading to silent data corruption.)
1123 .TP
1124 .B cruft
1125 If the high byte of the file length contains other garbage,
1126 set this mount option to ignore the high order bits of the file length.
1127 This implies that a file cannot be larger than 16MB.
1128 The `cruft' option is set automatically if the entire CDROM
1129 has a weird size (negative, or more than 800MB). It is also
1130 set when volume sequence numbers other than 0 or 1 are seen.
1131 .TP
1132 .BI session= x
1133 Select number of session on multisession CD. (Since 2.3.4.)
1134 .TP
1135 .BI sbsector= xxx
1136 Session begins from sector xxx. (Since 2.3.4.)
1137 .LP
1138 The following options are the same as for vfat and specifying them only makes
1139 sense when using discs encoded using Microsoft's Joliet extensions.
1140 .TP
1141 .BI iocharset= value
1142 Character set to use for converting 16 bit Unicode characters on CD
1143 to 8 bit characters. The default is iso8859-1.
1144 .TP
1145 .B utf8
1146 Convert 16 bit Unicode characters on CD to UTF-8.
1147
1148 .SH "Mount options for minix"
1149 None.
1150
1151 .SH "Mount options for msdos"
1152 See mount options for fat.
1153 If the
1154 .I msdos
1155 file system detects an inconsistency, it reports an error and sets the file
1156 system read-only. The file system can be made writeable again by remounting
1157 it.
1158
1159 .SH "Mount options for ncpfs"
1160 Just like
1161 .IR nfs ", the " ncpfs
1162 implementation expects a binary argument (a
1163 .IR "struct ncp_mount_data" )
1164 to the mount system call. This argument is constructed by
1165 .BR ncpmount (8)
1166 and the current version of
1167 .B mount
1168 (2.12) does not know anything about ncpfs.
1169
1170 .SH "Mount options for nfs"
1171 Instead of a textual option string, parsed by the kernel, the
1172 .I nfs
1173 file system expects a binary argument of type
1174 .IR "struct nfs_mount_data" .
1175 The program
1176 .B mount
1177 itself parses the following options of the form `tag=value',
1178 and puts them in the structure mentioned:
1179 .BI rsize= n,
1180 .BI wsize= n,
1181 .BI timeo= n,
1182 .BI retrans= n,
1183 .BI acregmin= n,
1184 .BI acregmax= n,
1185 .BI acdirmin= n,
1186 .BI acdirmax= n,
1187 .BI actimeo= n,
1188 .BI retry= n,
1189 .BI port= n,
1190 .BI mountport= n,
1191 .BI mounthost= name,
1192 .BI mountprog= n,
1193 .BI mountvers= n,
1194 .BI nfsprog= n,
1195 .BI nfsvers= n,
1196 .BI namlen= n.
1197 The option
1198 .BI addr= n
1199 is accepted but ignored.
1200 Also the following Boolean options, possibly preceded by
1201 .B no
1202 are recognized:
1203 .BR bg ,
1204 .BR fg ,
1205 .BR soft ,
1206 .BR hard ,
1207 .BR intr ,
1208 .BR posix ,
1209 .BR cto ,
1210 .BR ac ,
1211 .BR tcp ,
1212 .BR udp ,
1213 .BR lock .
1214 For details, see
1215 .BR nfs (5).
1216
1217 Especially useful options include
1218 .TP
1219 .B rsize=8192,wsize=8192
1220 This will make your nfs connection faster than with the default
1221 buffer size of 4096. (NFSv2 does not work with larger values of
1222 .B rsize
1223 and
1224 .BR wsize .)
1225 .TP
1226 .B hard
1227 The program accessing a file on a NFS mounted file system will hang
1228 when the server crashes. The process cannot be interrupted or
1229 killed unless you also specify
1230 .BR intr .
1231 When the NFS server is back online the program will continue undisturbed
1232 from where it was. This is probably what you want.
1233 .TP
1234 .B soft
1235 This option allows the kernel to time out if the nfs server is not
1236 responding for some time. The time can be
1237 specified with
1238 .BR timeo=time .
1239 This option might be useful if your nfs server sometimes doesn't respond
1240 or will be rebooted while some process tries to get a file from the server.
1241 Usually it just causes lots of trouble.
1242 .TP
1243 .B nolock
1244 Do not use locking. Do not start lockd.
1245
1246 .SH "Mount options for ntfs"
1247 .TP
1248 .BI iocharset= name
1249 Character set to use when returning file names.
1250 Unlike VFAT, NTFS suppresses names that contain
1251 unconvertible characters.
1252 .TP
1253 .BR utf8
1254 Use UTF-8 for converting file names.
1255 .TP
1256 .B uni_xlate=[0|1|2]
1257 For 0 (or `no' or `false'), do not use escape sequences
1258 for unknown Unicode characters.
1259 For 1 (or `yes' or `true') or 2, use vfat-style 4-byte escape sequences
1260 starting with ":". Here 2 give a little-endian encoding
1261 and 1 a byteswapped bigendian encoding.
1262 .TP
1263 .B posix=[0|1]
1264 If enabled (posix=1), the file system distinguishes between
1265 upper and lower case. The 8.3 alias names are presented as
1266 hard links instead of being suppressed.
1267 .TP
1268 \fBuid=\fP\fIvalue\fP, \fBgid=\fP\fIvalue\fP and \fBumask=\fP\fIvalue\fP
1269 Set the file permission on the filesystem.
1270 The umask value is given in octal.
1271 By default, the files are owned by root and not readable by somebody else.
1272
1273 .SH "Mount options for proc"
1274 .TP
1275 \fBuid=\fP\fIvalue\fP and \fBgid=\fP\fIvalue\fP
1276 These options are recognized, but have no effect as far as I can see.
1277
1278 .SH "Mount options for ramfs"
1279 Ramfs is a memory based filesystem. Mount it and you have it. Unmount it
1280 and it is gone. Present since Linux 2.3.99pre4.
1281 There are no mount options.
1282
1283 .SH "Mount options for reiserfs"
1284 Reiserfs is a journaling filesystem.
1285 The reiserfs mount options are more fully described at
1286 .IR http://www.namesys.com/mount-options.html .
1287 .TP
1288 .BR conv
1289 Instructs version 3.6 reiserfs software to mount a version 3.5 file system,
1290 using the 3.6 format for newly created objects. This file system will no
1291 longer be compatible with reiserfs 3.5 tools.
1292 .TP
1293 .BR hash=rupasov " / " hash=tea " / " hash=r5 " / " hash=detect
1294 Choose which hash function reiserfs will use to find files within directories.
1295 .RS
1296 .TP
1297 .B rupasov
1298 A hash invented by Yury Yu. Rupasov. It is fast and preserves locality,
1299 mapping lexicographically close file names to close hash values.
1300 This option should not be used, as it causes a high probability of hash
1301 collisions.
1302 .TP
1303 .B tea
1304 A Davis-Meyer function implemented by Jeremy Fitzhardinge.
1305 It uses hash permuting bits in the name. It gets high randomness
1306 and, therefore, low probability of hash collisions at come CPU cost.
1307 This may be used if EHASHCOLLISION errors are experienced with the r5 hash.
1308 .TP
1309 .B r5
1310 A modified version of the rupasov hash. It is used by default and is
1311 the best choice unless the file system has huge directories and
1312 unusual file-name patterns.
1313 .TP
1314 .B detect
1315 Instructs
1316 .IR mount
1317 to detect which hash function is in use by examining
1318 the file system being mounted, and to write this information into
1319 the reiserfs superblock. This is only useful on the first mount of
1320 an old format file system.
1321 .RE
1322 .TP
1323 .BR hashed_relocation
1324 Tunes the block allocator. This may provide performance improvements
1325 in some situations.
1326 .TP
1327 .BR no_unhashed_relocation
1328 Tunes the block allocator. This may provide performance improvements
1329 in some situations.
1330 .TP
1331 .BR noborder
1332 Disable the border allocator algorithm invented by Yury Yu. Rupasov.
1333 This may provide performance improvements in some situations.
1334 .TP
1335 .BR nolog
1336 Disable journalling. This will provide slight performance improvements in
1337 some situations at the cost of losing reiserfs's fast recovery from crashes.
1338 Even with this option turned on, reiserfs still performs all journalling
1339 operations, save for actual writes into its journalling area. Implementation
1340 of
1341 .IR nolog
1342 is a work in progress.
1343 .TP
1344 .BR notail
1345 By default, reiserfs stores small files and `file tails' directly into its
1346 tree. This confuses some utilities such as
1347 .BR LILO (8) .
1348 This option is used to disable packing of files into the tree.
1349 .TP
1350 .BR replayonly
1351 Replay the transactions which are in the journal, but do not actually
1352 mount the file system. Mainly used by
1353 .IR reiserfsck .
1354 .TP
1355 .BI resize= number
1356 A remount option which permits online expansion of reiserfs partitions.
1357 Instructs reiserfs to assume that the device has
1358 .I number
1359 blocks.
1360 This option is designed for use with devices which are under logical
1361 volume management (LVM).
1362 There is a special
1363 .I resizer
1364 utility which can be obtained from
1365 .IR ftp://ftp.namesys.com/pub/reiserfsprogs .
1366
1367 .SH "Mount options for romfs"
1368 None.
1369
1370 .SH "Mount options for smbfs"
1371 Just like
1372 .IR nfs ", the " smbfs
1373 implementation expects a binary argument (a
1374 .IR "struct smb_mount_data" )
1375 to the mount system call. This argument is constructed by
1376 .BR smbmount (8)
1377 and the current version of
1378 .B mount
1379 (2.12) does not know anything about smbfs.
1380
1381 .SH "Mount options for sysv"
1382 None.
1383
1384 .SH "Mount options for tmpfs"
1385 The following parameters accept a suffix
1386 .BR k ,
1387 .B m
1388 or
1389 .B g
1390 for Ki, Mi, Gi (binary kilo, mega and giga) and can be changed on remount.
1391 .TP
1392 .BI size= nbytes
1393 Override default size of the filesystem.
1394 The size is given in bytes, and rounded down to entire pages.
1395 The default is half of the memory.
1396 .TP
1397 .B nr_blocks=
1398 Set number of blocks.
1399 .TP
1400 .B nr_inodes=
1401 Set number of inodes.
1402 .TP
1403 .B mode=
1404 Set initial permissions of the root directory.
1405
1406 .SH "Mount options for udf"
1407 udf is the "Universal Disk Format" filesystem defined by the Optical
1408 Storage Technology Association, and is often used for DVD-ROM.
1409 See also
1410 .IR iso9660 .
1411 .TP
1412 .B gid=
1413 Set the default group.
1414 .TP
1415 .B umask=
1416 Set the default umask.
1417 The value is given in octal.
1418 .TP
1419 .B uid=
1420 Set the default user.
1421 .TP
1422 .B unhide
1423 Show otherwise hidden files.
1424 .TP
1425 .B undelete
1426 Show deleted files in lists.
1427 .TP
1428 .B strict
1429 Set strict conformance (unused).
1430 .TP
1431 .B utf8
1432 (unused).
1433 .TP
1434 .B iocharset
1435 (unused).
1436 .TP
1437 .B bs=
1438 Set the block size. (May not work unless 2048.)
1439 .TP
1440 .B novrs
1441 Skip volume sequence recognition.
1442 .TP
1443 .B session=
1444 Set the CDROM session counting from 0. Default: last session.
1445 .TP
1446 .B anchor=
1447 Override standard anchor location. Default: 256.
1448 .TP
1449 .B volume=
1450 Override the VolumeDesc location. (unused)
1451 .TP
1452 .B partition=
1453 Override the PartitionDesc location. (unused)
1454 .TP
1455 .B lastblock=
1456 Set the last block of the filesystem.
1457 .TP
1458 .B fileset=
1459 Override the fileset block location. (unused)
1460 .TP
1461 .B rootdir=
1462 Override the root directory location. (unused)
1463
1464 .SH "Mount options for ufs"
1465 .TP
1466 .BI ufstype= value
1467 UFS is a file system widely used in different operating systems.
1468 The problem are differences among implementations. Features of some
1469 implementations are undocumented, so its hard to recognize the
1470 type of ufs automatically.
1471 That's why the user must specify the type of ufs by mount option.
1472 Possible values are:
1473 .RS
1474 .TP
1475 .B old
1476 Old format of ufs, this is the default, read only.
1477 (Don't forget to give the \-r option.)
1478 .TP
1479 .B 44bsd
1480 For filesystems created by a BSD-like system (NetBSD,FreeBSD,OpenBSD).
1481 .TP
1482 .B sun
1483 For filesystems created by SunOS or Solaris on Sparc.
1484 .TP
1485 .B sunx86
1486 For filesystems created by Solaris on x86.
1487 .TP
1488 .B nextstep
1489 For filesystems created by NeXTStep (on NeXT station) (currently read only).
1490 .TP
1491 .B nextstep-cd
1492 For NextStep CDROMs (block_size == 2048), read-only.
1493 .TP
1494 .B openstep
1495 For filesystems created by OpenStep (currently read only).
1496 The same filesystem type is also used by Mac OS X.
1497 .RE
1498
1499 .TP
1500 .BI onerror= value
1501 Set behaviour on error:
1502 .RS
1503 .TP
1504 .B panic
1505 If an error is encountered, cause a kernel panic.
1506 .TP
1507 .B [lock|umount|repair]
1508 These mount options don't do anything at present;
1509 when an error is encountered only a console message is printed.
1510 .RE
1511
1512 .SH "Mount options for umsdos"
1513 See mount options for msdos.
1514 The
1515 .B dotsOK
1516 option is explicitly killed by
1517 .IR umsdos .
1518
1519 .SH "Mount options for vfat"
1520 First of all, the mount options for
1521 .I fat
1522 are recognized.
1523 The
1524 .B dotsOK
1525 option is explicitly killed by
1526 .IR vfat .
1527 Furthermore, there are
1528 .TP
1529 .B uni_xlate
1530 Translate unhandled Unicode characters to special escaped sequences.
1531 This lets you backup and restore filenames that are created with any
1532 Unicode characters. Without this option, a '?' is used when no
1533 translation is possible. The escape character is ':' because it is
1534 otherwise illegal on the vfat filesystem. The escape sequence
1535 that gets used, where u is the unicode character,
1536 is: ':', (u & 0x3f), ((u>>6) & 0x3f), (u>>12).
1537 .TP
1538 .B posix
1539 Allow two files with names that only differ in case.
1540 .TP
1541 .B nonumtail
1542 First try to make a short name without sequence number,
1543 before trying
1544 .IR name~num.ext .
1545 .TP
1546 .B utf8
1547 UTF8 is the filesystem safe 8-bit encoding of Unicode that is used
1548 by the console. It can be be enabled for the filesystem with this option.
1549 If `uni_xlate' gets set, UTF8 gets disabled.
1550 .TP
1551 .B shortname=[lower|win95|winnt|mixed]
1552
1553 Defines the behaviour for creation and display of filenames which fit into
1554 8.3 characters. If a long name for a file exists, it will always be
1555 preferred display. There are four modes:
1556 .RS
1557 .TP
1558 .I lower
1559 Force the short name to lower case upon display; store a long name when
1560 the short name is not all upper case.
1561 .TP
1562 .I win95
1563 Force the short name to upper case upon display; store a long name when
1564 the short name is not all upper case.
1565 . TP
1566 .I winnt
1567 Display the shortname as is; store a long name when the short name is
1568 not all lower case or all upper case.
1569 .TP
1570 .I mixed
1571 Display the short name as is; store a long name when the short name is not
1572 all upper case.
1573 .RE
1574
1575 The default is "lower".
1576
1577 .SH "Mount options for xenix"
1578 None.
1579
1580 .SH "Mount options for xfs"
1581 .TP
1582 .BI biosize= size
1583 Sets the preferred buffered I/O size (default size is 64K).
1584 .I size
1585 must be expressed as the logarithm (base2) of the desired I/O size.
1586 Valid values for this option are 14 through 16, inclusive
1587 (i.e. 16K, 32K, and 64K bytes).
1588 On machines with a 4K pagesize, 13 (8K bytes) is also a valid
1589 .IR size .
1590 The preferred buffered I/O size can also be altered on an individual
1591 file basis using the
1592 .BR ioctl (2)
1593 system call.
1594 .TP
1595 .B dmapi " / " xdsm
1596 Enable the DMAPI (Data Management API) event callouts.
1597 .TP
1598 .BI logbufs= value
1599 Set the number of in-memory log buffers.
1600 Valid numbers range from 2-8 inclusive.
1601 The default value is 8 buffers for filesystems with a blocksize of 64K,
1602 4 buffers for filesystems with a blocksize of 32K,
1603 3 buffers for filesystems with a blocksize of 16K,
1604 and 2 buffers for all other configurations.
1605 Increasing the number of buffers may increase performance on
1606 some workloads at the cost of the memory used for the
1607 additional log buffers and their associated control structures.
1608 .TP
1609 .BI logbsize= value
1610 Set the size of each in-memory log buffer.
1611 Valid sizes are 16384 (16K) and 32768 (32K).
1612 The default value for machines with more than 32MB of memory is 32768,
1613 machines with less memory use 16384 by default.
1614 .TP
1615 \fBlogdev=\fP\fIdevice\fP and \fBrtdev=\fP\fIdevice\fP
1616 Use an external log (metadata journal) and/or real-time device.
1617 An XFS filesystem has up to three parts: a data section, a log section,
1618 and a real-time section.
1619 The real-time section is optional, and the log section can be separate
1620 from the data section or contained within it.
1621 Refer to
1622 .BR xfs (5).
1623 .TP
1624 .B noalign
1625 Data allocations will not be aligned at stripe unit boundaries.
1626 .TP
1627 .B noatime
1628 Access timestamps are not updated when a file is read.
1629 .TP
1630 .B norecovery
1631 The filesystem will be mounted without running log recovery.
1632 If the filesystem was not cleanly unmounted, it is likely to
1633 be inconsistent when mounted in
1634 .B norecovery
1635 mode.
1636 Some files or directories may not be accessible because of this.
1637 Filesystems mounted
1638 .B norecovery
1639 must be mounted read-only or the mount will fail.
1640 .TP
1641 .B osyncisdsync
1642 Make writes to files opened with the O_SYNC flag set behave
1643 as if the O_DSYNC flag had been used instead.
1644 This can result in better performance without compromising
1645 data safety.
1646 However if this option is in effect, timestamp updates from
1647 O_SYNC writes can be lost if the system crashes.
1648 .TP
1649 .BR quota " / " usrquota " / " uqnoenforce
1650 User disk quota accounting enabled, and limits (optionally) enforced.
1651 .TP
1652 .BR grpquota " / " gqnoenforce
1653 Group disk quota accounting enabled and limits (optionally) enforced.
1654 .TP
1655 \fBsunit=\fP\fIvalue\fP and \fBswidth=\fP\fIvalue\fP
1656 Used to specify the stripe unit and width for a RAID device or a stripe
1657 volume.
1658 .I value
1659 must be specified in 512-byte block units.
1660 If this option is not specified and the filesystem was made on a stripe
1661 volume or the stripe width or unit were specified for the RAID device at
1662 mkfs time, then the mount system call will restore the value from the
1663 superblock.
1664 For filesystems that are made directly on RAID devices, these options can be
1665 used to override the information in the superblock if the underlying disk
1666 layout changes after the filesystem has been created.
1667 The
1668 .B swidth
1669 option is required if the
1670 .B sunit
1671 option has been specified,
1672 and must be a multiple of the
1673 .B sunit
1674 value.
1675
1676 .SH "Mount options for xiafs"
1677 None. Although nothing is wrong with xiafs, it is not used much,
1678 and is not maintained. Probably one shouldn't use it.
1679 Since Linux version 2.1.21 xiafs is no longer part of the kernel source.
1680
1681 .SH "THE LOOP DEVICE"
1682 One further possible type is a mount via the loop device. For example,
1683 the command
1684
1685 .nf
1686 .B " mount /tmp/fdimage /mnt -t msdos -o loop=/dev/loop3,blocksize=1024"
1687 .fi
1688
1689 will set up the loop device
1690 .I /dev/loop3
1691 to correspond to the file
1692 .IR /tmp/fdimage ,
1693 and then mount this device on
1694 .IR /mnt .
1695 This type of mount knows about three options, namely
1696 .BR loop ", " offset " and " encryption ,
1697 that are really options to
1698 .BR losetup (8).
1699 If no explicit loop device is mentioned
1700 (but just an option `\fB\-o loop\fP' is given), then
1701 .B mount
1702 will try to find some unused loop device and use that.
1703 If you are not so unwise as to make
1704 .I /etc/mtab
1705 a symbolic link to
1706 .I /proc/mounts
1707 then any loop device allocated by
1708 .B mount
1709 will be freed by
1710 .BR umount .
1711 You can also free a loop device by hand, using `losetup -d', see
1712 .BR losetup (8).
1713
1714 .SH RETURN CODES
1715 .B mount
1716 has the following return codes (the bits can be ORed):
1717 .TP
1718 .BR 0
1719 success
1720 .TP
1721 .BR 1
1722 incorrect invocation or permissions
1723 .TP
1724 .BR 2
1725 system error (out of memory, cannot fork, no more loop devices)
1726 .TP
1727 .BR 4
1728 internal
1729 .B mount
1730 bug or missing
1731 .BR nfs
1732 support in
1733 .B mount
1734 .TP
1735 .BR 8
1736 user interrupt
1737 .TP
1738 .BR 16
1739 problems writing or locking /etc/mtab
1740 .TP
1741 .BR 32
1742 mount failure
1743 .TP
1744 .BR 64
1745 some mount succeeded
1746
1747 .SH FILES
1748 .I /etc/fstab
1749 file system table
1750 .br
1751 .I /etc/mtab
1752 table of mounted file systems
1753 .br
1754 .I /etc/mtab~
1755 lock file
1756 .br
1757 .I /etc/mtab.tmp
1758 temporary file
1759 .SH "SEE ALSO"
1760 .BR mount (2),
1761 .BR umount (2),
1762 .BR fstab (5),
1763 .BR umount (8),
1764 .BR swapon (8),
1765 .BR nfs (5),
1766 .BR xfs (5),
1767 .BR e2label (8),
1768 .BR xfs_admin (8),
1769 .BR mountd (8),
1770 .BR nfsd (8),
1771 .BR mke2fs (8),
1772 .BR tune2fs (8),
1773 .BR losetup (8)
1774 .SH BUGS
1775 It is possible for a corrupted file system to cause a crash.
1776 .PP
1777 Some Linux file systems don't support
1778 .B "\-o sync and \-o dirsync"
1779 (the ext2 and ext3 file systems
1780 .I do
1781 support synchronous updates (a la BSD) when mounted with the
1782 .B sync
1783 option).
1784 .PP
1785 The
1786 .B "\-o remount"
1787 may not be able to change mount parameters (all
1788 .IR ext2fs -specific
1789 parameters, except
1790 .BR sb ,
1791 are changeable with a remount, for example, but you can't change
1792 .B gid
1793 or
1794 .B umask
1795 for the
1796 .IR fatfs ).
1797 .SH HISTORY
1798 A
1799 .B mount
1800 command existed in Version 5 AT&T UNIX.