xref: /freebsd/sbin/mount/mount.8 (revision c14d21f6cf21c2cb6969081ada02235efc7373ca)
18fae3551SRodney W. Grimes.\" Copyright (c) 1980, 1989, 1991, 1993
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
68fae3551SRodney W. Grimes.\" are met:
78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
88fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
108fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
118fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
128fae3551SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software
138fae3551SRodney W. Grimes.\"    must display the following acknowledgement:
148fae3551SRodney W. Grimes.\"	This product includes software developed by the University of
158fae3551SRodney W. Grimes.\"	California, Berkeley and its contributors.
168fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
178fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
188fae3551SRodney W. Grimes.\"    without specific prior written permission.
198fae3551SRodney W. Grimes.\"
208fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
218fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
228fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
238fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
248fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
258fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
268fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
278fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
288fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
298fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
308fae3551SRodney W. Grimes.\" SUCH DAMAGE.
318fae3551SRodney W. Grimes.\"
32c06fe0a0SPeter Wemm.\"     @(#)mount.8	8.8 (Berkeley) 6/16/94
337f3dea24SPeter Wemm.\" $FreeBSD$
348fae3551SRodney W. Grimes.\"
356e3bc9daSMatthew N. Dodd.Dd April 7, 2003
368fae3551SRodney W. Grimes.Dt MOUNT 8
379fe48c6eSRuslan Ermilov.Os
388fae3551SRodney W. Grimes.Sh NAME
398fae3551SRodney W. Grimes.Nm mount
408fae3551SRodney W. Grimes.Nd mount file systems
418fae3551SRodney W. Grimes.Sh SYNOPSIS
427c7fb079SRuslan Ermilov.Nm
43a257a45eSJordan K. Hubbard.Op Fl adfpruvw
44ef258dd9SMatthew N. Dodd.Op Fl F Ar fstab
45c14d21f6SGuido van Rooij.Op Fl o Ar options
46e867267bSAlexey Zelkin.Op Fl t Ar ufs | external_type
477c7fb079SRuslan Ermilov.Nm
48a257a45eSJordan K. Hubbard.Op Fl dfpruvw
498fae3551SRodney W. Grimes.Ar special | node
507c7fb079SRuslan Ermilov.Nm
51a257a45eSJordan K. Hubbard.Op Fl dfpruvw
528fae3551SRodney W. Grimes.Op Fl o Ar options
53e867267bSAlexey Zelkin.Op Fl t Ar ufs | external_type
548fae3551SRodney W. Grimes.Ar special node
558fae3551SRodney W. Grimes.Sh DESCRIPTION
568fae3551SRodney W. GrimesThe
57951122deSSteve Price.Nm
58e1205e80SPhilippe Charnierutility calls the
598fae3551SRodney W. Grimes.Xr mount 2
608fae3551SRodney W. Grimessystem call to prepare and graft a
618fae3551SRodney W. Grimes.Ar "special device"
628fae3551SRodney W. Grimesor the remote node (rhost:path) on to the file system tree at the point
638fae3551SRodney W. Grimes.Ar node .
648fae3551SRodney W. GrimesIf either
658fae3551SRodney W. Grimes.Ar special
668fae3551SRodney W. Grimesor
678fae3551SRodney W. Grimes.Ar node
688fae3551SRodney W. Grimesare not provided, the appropriate information is taken from the
698fae3551SRodney W. Grimes.Xr fstab 5
708fae3551SRodney W. Grimesfile.
718fae3551SRodney W. Grimes.Pp
728fae3551SRodney W. GrimesThe system maintains a list of currently mounted file systems.
738fae3551SRodney W. GrimesIf no arguments are given to
747c7fb079SRuslan Ermilov.Nm ,
758fae3551SRodney W. Grimesthis list is printed.
768fae3551SRodney W. Grimes.Pp
778fae3551SRodney W. GrimesThe options are as follows:
788fae3551SRodney W. Grimes.Bl -tag -width indent
79c4e95187SDavid Greenman.It Fl a
80c06fe0a0SPeter WemmAll the file systems described in
81c06fe0a0SPeter Wemm.Xr fstab 5
82c06fe0a0SPeter Wemmare mounted.
837f804728SRuslan ErmilovExceptions are those marked as
847f804728SRuslan Ermilov.Dq noauto ,
857f804728SRuslan Ermilovexcluded by the
86c06fe0a0SPeter Wemm.Fl t
87fba1c154SSteve Priceflag (see below), or if they are already mounted (except the
88fba1c154SSteve Priceroot file system which is always remounted to preserve
89fba1c154SSteve Pricetraditional single user mode behavior).
908fae3551SRodney W. Grimes.It Fl d
918fae3551SRodney W. GrimesCauses everything to be done except for the actual system call.
928fae3551SRodney W. GrimesThis option is useful in conjunction with the
938fae3551SRodney W. Grimes.Fl v
948fae3551SRodney W. Grimesflag to
958fae3551SRodney W. Grimesdetermine what the
96951122deSSteve Price.Nm
978fae3551SRodney W. Grimescommand is trying to do.
98ef258dd9SMatthew N. Dodd.It Fl F Ar fstab
99ef258dd9SMatthew N. DoddSpecify the
100ef258dd9SMatthew N. Dodd.Pa fstab
101ef258dd9SMatthew N. Doddfile to use.
1028fae3551SRodney W. Grimes.It Fl f
1038fae3551SRodney W. GrimesForces the revocation of write access when trying to downgrade
104ef8f7ac9SSheldon Hearna file system mount status from read-write to read-only.
105ef8f7ac9SSheldon HearnAlso
1061469eec8SDavid Greenmanforces the R/W mount of an unclean file system (dangerous; use with
1071469eec8SDavid Greenmancaution).
1088fae3551SRodney W. Grimes.It Fl o
1098fae3551SRodney W. GrimesOptions are specified with a
1108fae3551SRodney W. Grimes.Fl o
1118fae3551SRodney W. Grimesflag followed by a comma separated string of options.
11218af6044SJoseph KoshyIn case of conflicting options being specified, the rightmost option
11318af6044SJoseph Koshytakes effect.
1148fae3551SRodney W. GrimesThe following options are available:
1158fae3551SRodney W. Grimes.Bl -tag -width indent
1167f804728SRuslan Ermilov.It Cm async
1178fae3551SRodney W. GrimesAll
1188fae3551SRodney W. Grimes.Tn I/O
1198fae3551SRodney W. Grimesto the file system should be done asynchronously.
1208fae3551SRodney W. GrimesThis is a
1218fae3551SRodney W. Grimes.Em dangerous
1228fae3551SRodney W. Grimesflag to set,
1238fae3551SRodney W. Grimesand should not be used unless you are prepared to recreate the file
1248fae3551SRodney W. Grimessystem should your system crash.
1257f804728SRuslan Ermilov.It Cm current
12618af6044SJoseph KoshyWhen used with the
12718af6044SJoseph Koshy.Fl u
12818af6044SJoseph Koshyflag, this is the same as specifying the options currently in effect for
12918af6044SJoseph Koshythe mounted file system.
1307f804728SRuslan Ermilov.It Cm force
1318fae3551SRodney W. GrimesThe same as
1328fae3551SRodney W. Grimes.Fl f ;
1338fae3551SRodney W. Grimesforces the revocation of write access when trying to downgrade
134ef8f7ac9SSheldon Hearna file system mount status from read-write to read-only.
135ef8f7ac9SSheldon HearnAlso
1361469eec8SDavid Greenmanforces the R/W mount of an unclean file system (dangerous; use with caution).
1377f804728SRuslan Ermilov.It Cm fstab
13818af6044SJoseph KoshyWhen used with the
13918af6044SJoseph Koshy.Fl u
14018af6044SJoseph Koshyflag, this is the same as specifying all the options listed in the
14118af6044SJoseph Koshy.Xr fstab 5
14218af6044SJoseph Koshyfile for the file system.
1437f804728SRuslan Ermilov.It Cm noasync
144534e0080SDavid E. O'BrienMetadata I/O should be done synchronously, while data I/O should be done
1457f804728SRuslan Ermilovasynchronously.
1467f804728SRuslan ErmilovThis is the default.
1477f804728SRuslan Ermilov.It Cm noatime
148ef8f7ac9SSheldon HearnDo not update the file access time when reading from a file.
149ef8f7ac9SSheldon HearnThis option
150fa947154SDavid Greenmanis useful on file systems where there are large numbers of files and
151fa947154SDavid Greenmanperformance is more critical than updating the file access time (which is
1527f804728SRuslan Ermilovrarely ever important).
1537f804728SRuslan ErmilovThis option is currently only supported on local file systems.
1547f804728SRuslan Ermilov.It Cm noauto
1557f804728SRuslan ErmilovThis file system should be skipped when
1567f804728SRuslan Ermilov.Nm
1577f804728SRuslan Ermilovis run with the
158c06fe0a0SPeter Wemm.Fl a
159c06fe0a0SPeter Wemmflag.
1607f804728SRuslan Ermilov.It Cm noclusterr
16175b714acSKATO TakenoriDisable read clustering.
1627f804728SRuslan Ermilov.It Cm noclusterw
16375b714acSKATO TakenoriDisable write clustering.
1647f804728SRuslan Ermilov.It Cm nodev
1658fae3551SRodney W. GrimesDo not interpret character or block special devices on the file system.
1668fae3551SRodney W. GrimesThis option is useful for a server that has file systems containing
1678fae3551SRodney W. Grimesspecial devices for architectures other than its own.
168b4206324SJoerg WunschThis option is set automatically when the user does not have super-user
169b4206324SJoerg Wunschprivileges.
1707f804728SRuslan Ermilov.It Cm noexec
1718fae3551SRodney W. GrimesDo not allow execution of any binaries on the mounted file system.
1728fae3551SRodney W. GrimesThis option is useful for a server that has file systems containing
1738fae3551SRodney W. Grimesbinaries for architectures other than its own.
1747f804728SRuslan Ermilov.It Cm nosuid
1758fae3551SRodney W. GrimesDo not allow set-user-identifier or set-group-identifier bits to take effect.
176b23472acSWolfram SchneiderNote: this option is worthless if a public available suid or sgid
177b23472acSWolfram Schneiderwrapper like
178951122deSSteve Price.Xr suidperl 1
179b23472acSWolfram Schneideris installed on your system.
180b4206324SJoerg WunschIt is set automatically when the user does not have super-user privileges.
1817f804728SRuslan Ermilov.It Cm nosymfollow
1825ddc8dedSWolfram SchneiderDo not follow symlinks
1835ddc8dedSWolfram Schneideron the mounted file system.
184c80f12d0SSean Chittenden.It Cm ro
1858fae3551SRodney W. GrimesThe same as
1868fae3551SRodney W. Grimes.Fl r ;
1878fae3551SRodney W. Grimesmount the file system read-only (even the super-user may not write it).
1887f804728SRuslan Ermilov.It Cm sync
1898fae3551SRodney W. GrimesAll
1908fae3551SRodney W. Grimes.Tn I/O
1918fae3551SRodney W. Grimesto the file system should be done synchronously.
192299f1561STom Rhodes.It Cm snapshot
193299f1561STom RhodesThis option allows a snapshot of the specified file system to be taken.
194299f1561STom RhodesThe
195299f1561STom Rhodes.Fl u
196299f1561STom Rhodesflag is required with this option.
197299f1561STom RhodesNote that snapshot files must be created in the file system that is being
198299f1561STom Rhodessnapshotted.
199299f1561STom RhodesYou may create up to 20 snapshots per file system.
200299f1561STom RhodesActive snapshots are recorded in the superblock, so they persist across unmount
201299f1561STom Rhodesand remount operations and across system reboots.
202299f1561STom RhodesWhen you are done with a snapshot, it can be removed with the
2039acd9d01SRuslan Ermilov.Xr rm 1
204299f1561STom Rhodescommand.
205299f1561STom RhodesSnapshots may be removed in any order, however you may not get back all the
206299f1561STom Rhodesspace contained in the snapshot as another snapshot may claim some of the blocks
207299f1561STom Rhodesthat it is releasing.
208299f1561STom RhodesNote that the schg flag is set on snapshots to ensure that not even the root
209299f1561STom Rhodesuser can write to them.
210299f1561STom RhodesThe unlink command makes an exception for snapshot files in that it allows them
211299f1561STom Rhodesto be removed even though they have the schg flag set, so it is not necessary to
212299f1561STom Rhodesclear the schg flag before removing a snapshot file.
213299f1561STom Rhodes.Pp
214299f1561STom RhodesOnce you have taken a snapshot, there are three interesting things that you can
215299f1561STom Rhodesdo with it:
216299f1561STom Rhodes.Pp
217299f1561STom Rhodes.Bl -enum -compact
218299f1561STom Rhodes.It
2199acd9d01SRuslan ErmilovRun
2209acd9d01SRuslan Ermilov.Xr fsck 8
2219acd9d01SRuslan Ermilovon the snapshot file.
222299f1561STom RhodesAssuming that the file system was clean when it was mounted, you should always
223299f1561STom Rhodesget a clean (and unchanging) result from running fsck on the snapshot.
224299f1561STom RhodesThis is essentially what the background fsck process does.
225299f1561STom Rhodes.Pp
226299f1561STom Rhodes.It
2279acd9d01SRuslan ErmilovRun
2289acd9d01SRuslan Ermilov.Xr dump 8
2299acd9d01SRuslan Ermilovon the snapshot.
230299f1561STom RhodesYou will get a dump that is consistent with the file system as of the timestamp
231299f1561STom Rhodesof the snapshot.
232299f1561STom Rhodes.Pp
233299f1561STom Rhodes.It
234299f1561STom RhodesMount the snapshot as a frozen image of the file system.
235299f1561STom RhodesTo mount the snapshot
236299f1561STom Rhodes.Pa /var/snapshot/snap1 :
237299f1561STom Rhodes.Bd -literal
238299f1561STom Rhodesmdconfig -a -t vnode -f /var/snapshot/snap1 -u 4
239299f1561STom Rhodesmount -r /dev/md4 /mnt
240299f1561STom Rhodes.Ed
241299f1561STom Rhodes.Pp
242299f1561STom RhodesYou can now cruise around your frozen
243299f1561STom Rhodes.Pa /var
244299f1561STom Rhodesfile system at
245299f1561STom Rhodes.Pa /mnt .
246299f1561STom RhodesEverything will be in the same state that it was at the time the snapshot was
247299f1561STom Rhodestaken.
248299f1561STom RhodesThe one exception is that any earlier snapshots will appear as zero length
249299f1561STom Rhodesfiles.
250299f1561STom RhodesWhen you are done with the mounted snapshot:
251299f1561STom Rhodes.Bd -literal
252299f1561STom Rhodesumount /mnt
253299f1561STom Rhodesmdconfig -d -u 4
254299f1561STom Rhodes.Ed
255299f1561STom Rhodes.Pp
256299f1561STom RhodesFurther details can be found in the file at
257299f1561STom Rhodes.Pa /usr/src/sys/ufs/ffs/README.snapshot .
258299f1561STom Rhodes.El
2597f804728SRuslan Ermilov.It Cm suiddir
26052bf64c7SJulian ElischerA directory on the mounted file system will respond to the SUID bit
26152bf64c7SJulian Elischerbeing set, by setting the owner of any new files to be the same
26252bf64c7SJulian Elischeras the owner of the directory.
26352bf64c7SJulian ElischerNew directories will inherit the bit from their parents.
26452bf64c7SJulian ElischerExecute bits are removed from
26552bf64c7SJulian Elischerthe file, and it will not be given to root.
26652bf64c7SJulian Elischer.Pp
26752bf64c7SJulian ElischerThis feature is designed for use on fileservers serving PC users via
268ef8f7ac9SSheldon Hearnftp, SAMBA, or netatalk.
269ef8f7ac9SSheldon HearnIt provides security holes for shell users and as
27052bf64c7SJulian Elischersuch should not be used on shell machines, especially on home directories.
27152bf64c7SJulian ElischerThis option requires the SUIDDIR
272ef8f7ac9SSheldon Hearnoption in the kernel to work.
273ef8f7ac9SSheldon HearnOnly UFS file systems support this option.
27452bf64c7SJulian ElischerSee
27552bf64c7SJulian Elischer.Xr chmod 2
27652bf64c7SJulian Elischerfor more information.
2777f804728SRuslan Ermilov.It Cm update
2788fae3551SRodney W. GrimesThe same as
2798fae3551SRodney W. Grimes.Fl u ;
2808fae3551SRodney W. Grimesindicate that the status of an already mounted file system should be changed.
2817f804728SRuslan Ermilov.It Cm union
2828fae3551SRodney W. GrimesCauses the namespace at the mount point to appear as the union
2838fae3551SRodney W. Grimesof the mounted file system root and the existing directory.
2848fae3551SRodney W. GrimesLookups will be done in the mounted file system first.
2858fae3551SRodney W. GrimesIf those operations fail due to a non-existent file the underlying
2868fae3551SRodney W. Grimesdirectory is then accessed.
2878fae3551SRodney W. GrimesAll creates are done in the mounted file system.
2888fae3551SRodney W. Grimes.El
2898fae3551SRodney W. Grimes.Pp
2908fae3551SRodney W. GrimesAny additional options specific to a file system type that is not
2918fae3551SRodney W. Grimesone of the internally known types (see the
2928fae3551SRodney W. Grimes.Fl t
2938fae3551SRodney W. Grimesoption) may be passed as a comma separated list; these options are
2948fae3551SRodney W. Grimesdistinguished by a leading
2958fae3551SRodney W. Grimes.Dq \&-
2968fae3551SRodney W. Grimes(dash).
2978fae3551SRodney W. GrimesOptions that take a value are specified using the syntax -option=value.
298951122deSSteve PriceFor example, the
299951122deSSteve Price.Nm
300951122deSSteve Pricecommand:
3018fae3551SRodney W. Grimes.Bd -literal -offset indent
3020b381bf1SRuslan Ermilovmount -t unionfs -o -b /sys $HOME/sys
3038fae3551SRodney W. Grimes.Ed
3048fae3551SRodney W. Grimes.Pp
3058fae3551SRodney W. Grimescauses
306951122deSSteve Price.Nm
3078fae3551SRodney W. Grimesto execute the equivalent of:
3088fae3551SRodney W. Grimes.Bd -literal -offset indent
3090b381bf1SRuslan Ermilov/sbin/mount_unionfs -b /sys $HOME/sys
3108fae3551SRodney W. Grimes.Ed
311e4bc2e34SSheldon Hearn.Pp
312e4bc2e34SSheldon HearnAdditional options specific to file system types
313e4bc2e34SSheldon Hearnwhich are not internally known
314e4bc2e34SSheldon Hearn(see the description of the
315e4bc2e34SSheldon Hearn.Fl t
316e4bc2e34SSheldon Hearnoption below)
317e4bc2e34SSheldon Hearnmay be described in the manual pages for the associated
318e4bc2e34SSheldon Hearn.Pa /sbin/mount_ Ns Sy XXX
319e4bc2e34SSheldon Hearnutilities.
320a257a45eSJordan K. Hubbard.It Fl p
3217f804728SRuslan ErmilovPrint mount information in
3227f804728SRuslan Ermilov.Xr fstab 5
3237f804728SRuslan Ermilovformat.
324ef8f7ac9SSheldon HearnImplies also the
325a257a45eSJordan K. Hubbard.Fl v
326a257a45eSJordan K. Hubbardoption.
3278fae3551SRodney W. Grimes.It Fl r
3288fae3551SRodney W. GrimesThe file system is to be mounted read-only.
3298fae3551SRodney W. GrimesMount the file system read-only (even the super-user may not write it).
3308fae3551SRodney W. GrimesThe same as the
331c80f12d0SSean Chittenden.Cm ro
3328fae3551SRodney W. Grimesargument to the
3338fae3551SRodney W. Grimes.Fl o
3348fae3551SRodney W. Grimesoption.
3357f804728SRuslan Ermilov.It Fl t Ar ufs | external_type
3368fae3551SRodney W. GrimesThe argument following the
3378fae3551SRodney W. Grimes.Fl t
3388fae3551SRodney W. Grimesis used to indicate the file system type.
3398fae3551SRodney W. GrimesThe type
3408fae3551SRodney W. Grimes.Ar ufs
3418fae3551SRodney W. Grimesis the default.
34293eb5567SGarrett WollmanThe
34393eb5567SGarrett Wollman.Fl t
34493eb5567SGarrett Wollmanoption can be used
3458fae3551SRodney W. Grimesto indicate that the actions should only be taken on
3468fae3551SRodney W. Grimesfile systems of the specified type.
3478fae3551SRodney W. GrimesMore than one type may be specified in a comma separated list.
3488fae3551SRodney W. GrimesThe list of file system types can be prefixed with
3498fae3551SRodney W. Grimes.Dq no
3508fae3551SRodney W. Grimesto specify the file system types for which action should
3518fae3551SRodney W. Grimes.Em not
3528fae3551SRodney W. Grimesbe taken.
3538fae3551SRodney W. GrimesFor example, the
354951122deSSteve Price.Nm
3558fae3551SRodney W. Grimescommand:
3568fae3551SRodney W. Grimes.Bd -literal -offset indent
3570b381bf1SRuslan Ermilovmount -a -t nonfs,nullfs
3588fae3551SRodney W. Grimes.Ed
3598fae3551SRodney W. Grimes.Pp
3608fae3551SRodney W. Grimesmounts all file systems except those of type
3618fae3551SRodney W. Grimes.Tn NFS
3628fae3551SRodney W. Grimesand
3630b381bf1SRuslan Ermilov.Tn NULLFS .
3648fae3551SRodney W. Grimes.Pp
3658fae3551SRodney W. GrimesIf the type is not one of the internally known types,
366951122deSSteve Price.Nm
367951122deSSteve Pricewill attempt to execute a program in
368e4bc2e34SSheldon Hearn.Pa /sbin/mount_ Ns Sy XXX
3698fae3551SRodney W. Grimeswhere
370e4bc2e34SSheldon Hearn.Sy XXX
3718fae3551SRodney W. Grimesis replaced by the type name.
3728fae3551SRodney W. GrimesFor example, nfs file systems are mounted by the program
3738fae3551SRodney W. Grimes.Pa /sbin/mount_nfs .
37493eb5567SGarrett Wollman.Pp
37526fbf78bSMaxime HenrionMost file systems will be dynamically loaded by the kernel
37626fbf78bSMaxime Henrionif not already present, and if the kernel module is available.
3778fae3551SRodney W. Grimes.It Fl u
3788fae3551SRodney W. GrimesThe
3798fae3551SRodney W. Grimes.Fl u
3808fae3551SRodney W. Grimesflag indicates that the status of an already mounted file
3818fae3551SRodney W. Grimessystem should be changed.
3828fae3551SRodney W. GrimesAny of the options discussed above (the
3838fae3551SRodney W. Grimes.Fl o
3848fae3551SRodney W. Grimesoption)
3858fae3551SRodney W. Grimesmay be changed;
3868fae3551SRodney W. Grimesalso a file system can be changed from read-only to read-write
3878fae3551SRodney W. Grimesor vice versa.
3888fae3551SRodney W. GrimesAn attempt to change from read-write to read-only will fail if any
3898fae3551SRodney W. Grimesfiles on the file system are currently open for writing unless the
3908fae3551SRodney W. Grimes.Fl f
3918fae3551SRodney W. Grimesflag is also specified.
39218af6044SJoseph KoshyThe set of options is determined by applying the options specified
39318af6044SJoseph Koshyin the argument to
3948fae3551SRodney W. Grimes.Fl o
3958fae3551SRodney W. Grimesand finally applying the
3968fae3551SRodney W. Grimes.Fl r
3978fae3551SRodney W. Grimesor
3988fae3551SRodney W. Grimes.Fl w
3998fae3551SRodney W. Grimesoption.
4008fae3551SRodney W. Grimes.It Fl v
4018fae3551SRodney W. GrimesVerbose mode.
4028fae3551SRodney W. Grimes.It Fl w
4038fae3551SRodney W. GrimesThe file system object is to be read and write.
4041252c1bbSRuslan Ermilov.El
4056caa839dSJoerg Wunsch.Sh DIAGNOSTICS
4066caa839dSJoerg WunschVarious, most of them are self-explanatory.
4076caa839dSJoerg Wunsch.Pp
4086caa839dSJoerg Wunsch.Dl XXXXX file system is not available
4096caa839dSJoerg Wunsch.Pp
4107f804728SRuslan ErmilovThe kernel does not support the respective file system type.
4117f804728SRuslan ErmilovNote that
4126caa839dSJoerg Wunschsupport for a particular file system might be provided either on a static
4136caa839dSJoerg Wunsch(kernel compile-time), or dynamic basis (loaded as a kernel module by
414a7efcd4bSGuy Helmer.Xr kldload 8 ) .
415ef258dd9SMatthew N. Dodd.Sh ENVIRONMENT
416a0b6213bSRuslan Ermilov.Bl -tag -width ".Ev PATH_FSTAB"
417a0b6213bSRuslan Ermilov.It Ev PATH_FSTAB
418ef258dd9SMatthew N. DoddIf the environment variable
419a0b6213bSRuslan Ermilov.Ev PATH_FSTAB
420a0b6213bSRuslan Ermilovis set, all operations are performed against the specified file.
421a0b6213bSRuslan Ermilov.Ev PATH_FSTAB
422564b641eSMatthew N. Doddwill not be honored if the process environment or memory address space is
423564b641eSMatthew N. Doddconsidred
424564b641eSMatthew N. Dodd.Dq tainted .
425564b641eSMatthew N. Dodd(See
426a0b6213bSRuslan Ermilov.Xr issetugid 2
427564b641eSMatthew N. Doddfor more information.)
428ef258dd9SMatthew N. Dodd.El
4298fae3551SRodney W. Grimes.Sh FILES
4308fae3551SRodney W. Grimes.Bl -tag -width /etc/fstab -compact
4318fae3551SRodney W. Grimes.It Pa /etc/fstab
4328fae3551SRodney W. Grimesfile system table
4338fae3551SRodney W. Grimes.El
4348fae3551SRodney W. Grimes.Sh SEE ALSO
4358fae3551SRodney W. Grimes.Xr mount 2 ,
4368fae3551SRodney W. Grimes.Xr fstab 5 ,
437a7efcd4bSGuy Helmer.Xr kldload 8 ,
4388fae3551SRodney W. Grimes.Xr mount_cd9660 8 ,
4398546f807SSteve Price.Xr mount_devfs 8 ,
4401ce9f317SNik Clayton.Xr mount_ext2fs 8 ,
4416ad10804SRuslan Ermilov.Xr mount_fdescfs 8 ,
4421ce9f317SNik Clayton.Xr mount_hpfs 8 ,
4431ce9f317SNik Clayton.Xr mount_linprocfs 8 ,
4444ccd7546SRuslan Ermilov.Xr mount_msdosfs 8 ,
4458fae3551SRodney W. Grimes.Xr mount_nfs 8 ,
44601c78dbbSNik Clayton.Xr mount_ntfs 8 ,
4476ad10804SRuslan Ermilov.Xr mount_nullfs 8 ,
4481ce9f317SNik Clayton.Xr mount_nwfs 8 ,
4496ad10804SRuslan Ermilov.Xr mount_portalfs 8 ,
4508fae3551SRodney W. Grimes.Xr mount_procfs 8 ,
451b6925fa9SDavid Malone.Xr mount_smbfs 8 ,
4521ce9f317SNik Clayton.Xr mount_std 8 ,
453b6925fa9SDavid Malone.Xr mount_udf 8 ,
4546ad10804SRuslan Ermilov.Xr mount_umapfs 8 ,
4556ad10804SRuslan Ermilov.Xr mount_unionfs 8 ,
4568fae3551SRodney W. Grimes.Xr umount 8
4578fae3551SRodney W. Grimes.Sh BUGS
4588fae3551SRodney W. GrimesIt is possible for a corrupted file system to cause a crash.
459ce602323SJoseph Koshy.Sh CAVEATS
4607f804728SRuslan ErmilovAfter a successful
4617f804728SRuslan Ermilov.Nm ,
4627f804728SRuslan Ermilovthe permissions on the original mount point determine if
4637f804728SRuslan Ermilov.Pa ..\&
4647f804728SRuslan Ermilovis accessible from the mounted file system.
4657f804728SRuslan ErmilovThe minimum permissions for
466ce602323SJoseph Koshythe mount point for traversal across the mount point in both
467ce602323SJoseph Koshydirections to be possible for all users is 0111 (execute for all).
4688fae3551SRodney W. Grimes.Sh HISTORY
4698fae3551SRodney W. GrimesA
470951122deSSteve Price.Nm
471e1205e80SPhilippe Charnierutility appeared in
472b8923d4cSWolfram Schneider.At v1 .
473