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.\" 35c06fe0a0SPeter Wemm.Dd June 16, 1994 368fae3551SRodney W. Grimes.Dt MOUNT 8 379fe48c6eSRuslan Ermilov.Os 388fae3551SRodney W. Grimes.Sh NAME 398fae3551SRodney W. Grimes.Nm mount 408fae3551SRodney W. Grimes.Nd mount filesystems 418fae3551SRodney W. Grimes.Sh SYNOPSIS 427c7fb079SRuslan Ermilov.Nm 43a257a45eSJordan K. Hubbard.Op Fl adfpruvw 44e867267bSAlexey Zelkin.Op Fl t Ar ufs | external_type 457c7fb079SRuslan Ermilov.Nm 46a257a45eSJordan K. Hubbard.Op Fl dfpruvw 478fae3551SRodney W. Grimes.Ar special | node 487c7fb079SRuslan Ermilov.Nm 49a257a45eSJordan K. Hubbard.Op Fl dfpruvw 508fae3551SRodney W. Grimes.Op Fl o Ar options 51e867267bSAlexey Zelkin.Op Fl t Ar ufs | external_type 528fae3551SRodney W. Grimes.Ar special node 538fae3551SRodney W. Grimes.Sh DESCRIPTION 548fae3551SRodney W. GrimesThe 55951122deSSteve Price.Nm 56e1205e80SPhilippe Charnierutility calls the 578fae3551SRodney W. Grimes.Xr mount 2 588fae3551SRodney W. Grimessystem call to prepare and graft a 598fae3551SRodney W. Grimes.Ar "special device" 608fae3551SRodney W. Grimesor the remote node (rhost:path) on to the filesystem tree at the point 618fae3551SRodney W. Grimes.Ar node . 628fae3551SRodney W. GrimesIf either 638fae3551SRodney W. Grimes.Ar special 648fae3551SRodney W. Grimesor 658fae3551SRodney W. Grimes.Ar node 668fae3551SRodney W. Grimesare not provided, the appropriate information is taken from the 678fae3551SRodney W. Grimes.Xr fstab 5 688fae3551SRodney W. Grimesfile. 698fae3551SRodney W. Grimes.Pp 708fae3551SRodney W. GrimesThe system maintains a list of currently mounted filesystems. 718fae3551SRodney W. GrimesIf no arguments are given to 727c7fb079SRuslan Ermilov.Nm , 738fae3551SRodney W. Grimesthis list is printed. 748fae3551SRodney W. Grimes.Pp 758fae3551SRodney W. GrimesThe options are as follows: 768fae3551SRodney W. Grimes.Bl -tag -width indent 77c4e95187SDavid Greenman.It Fl a 78c06fe0a0SPeter WemmAll the filesystems described in 79c06fe0a0SPeter Wemm.Xr fstab 5 80c06fe0a0SPeter Wemmare mounted. 817f804728SRuslan ErmilovExceptions are those marked as 827f804728SRuslan Ermilov.Dq noauto , 837f804728SRuslan Ermilovexcluded by the 84c06fe0a0SPeter Wemm.Fl t 85fba1c154SSteve Priceflag (see below), or if they are already mounted (except the 86fba1c154SSteve Priceroot filesystem which is always remounted to preserve 87fba1c154SSteve Pricetraditional single user mode behavior). 888fae3551SRodney W. Grimes.It Fl d 898fae3551SRodney W. GrimesCauses everything to be done except for the actual system call. 908fae3551SRodney W. GrimesThis option is useful in conjunction with the 918fae3551SRodney W. Grimes.Fl v 928fae3551SRodney W. Grimesflag to 938fae3551SRodney W. Grimesdetermine what the 94951122deSSteve Price.Nm 958fae3551SRodney W. Grimescommand is trying to do. 968fae3551SRodney W. Grimes.It Fl f 978fae3551SRodney W. GrimesForces the revocation of write access when trying to downgrade 98ef8f7ac9SSheldon Hearna filesystem mount status from read-write to read-only. 99ef8f7ac9SSheldon HearnAlso 1001469eec8SDavid Greenmanforces the R/W mount of an unclean filesystem (dangerous; use with 1011469eec8SDavid Greenmancaution). 1028fae3551SRodney W. Grimes.It Fl o 1038fae3551SRodney W. GrimesOptions are specified with a 1048fae3551SRodney W. Grimes.Fl o 1058fae3551SRodney W. Grimesflag followed by a comma separated string of options. 10618af6044SJoseph KoshyIn case of conflicting options being specified, the rightmost option 10718af6044SJoseph Koshytakes effect. 1088fae3551SRodney W. GrimesThe following options are available: 1098fae3551SRodney W. Grimes.Bl -tag -width indent 1107f804728SRuslan Ermilov.It Cm async 1118fae3551SRodney W. GrimesAll 1128fae3551SRodney W. Grimes.Tn I/O 1138fae3551SRodney W. Grimesto the filesystem should be done asynchronously. 1148fae3551SRodney W. GrimesThis is a 1158fae3551SRodney W. Grimes.Em dangerous 1168fae3551SRodney W. Grimesflag to set, 1178fae3551SRodney W. Grimesand should not be used unless you are prepared to recreate the file 1188fae3551SRodney W. Grimessystem should your system crash. 1197f804728SRuslan Ermilov.It Cm current 12018af6044SJoseph KoshyWhen used with the 12118af6044SJoseph Koshy.Fl u 12218af6044SJoseph Koshyflag, this is the same as specifying the options currently in effect for 12318af6044SJoseph Koshythe mounted filesystem. 1247f804728SRuslan Ermilov.It Cm force 1258fae3551SRodney W. GrimesThe same as 1268fae3551SRodney W. Grimes.Fl f ; 1278fae3551SRodney W. Grimesforces the revocation of write access when trying to downgrade 128ef8f7ac9SSheldon Hearna filesystem mount status from read-write to read-only. 129ef8f7ac9SSheldon HearnAlso 1301469eec8SDavid Greenmanforces the R/W mount of an unclean filesystem (dangerous; use with caution). 1317f804728SRuslan Ermilov.It Cm fstab 13218af6044SJoseph KoshyWhen used with the 13318af6044SJoseph Koshy.Fl u 13418af6044SJoseph Koshyflag, this is the same as specifying all the options listed in the 13518af6044SJoseph Koshy.Xr fstab 5 13618af6044SJoseph Koshyfile for the filesystem. 1377f804728SRuslan Ermilov.It Cm noasync 138534e0080SDavid E. O'BrienMetadata I/O should be done synchronously, while data I/O should be done 1397f804728SRuslan Ermilovasynchronously. 1407f804728SRuslan ErmilovThis is the default. 1417f804728SRuslan Ermilov.It Cm noatime 142ef8f7ac9SSheldon HearnDo not update the file access time when reading from a file. 143ef8f7ac9SSheldon HearnThis option 144fa947154SDavid Greenmanis useful on filesystems where there are large numbers of files and 145fa947154SDavid Greenmanperformance is more critical than updating the file access time (which is 1467f804728SRuslan Ermilovrarely ever important). 1477f804728SRuslan ErmilovThis option is currently only supported on local filesystems. 1487f804728SRuslan Ermilov.It Cm noauto 1497f804728SRuslan ErmilovThis filesystem should be skipped when 1507f804728SRuslan Ermilov.Nm 1517f804728SRuslan Ermilovis run with the 152c06fe0a0SPeter Wemm.Fl a 153c06fe0a0SPeter Wemmflag. 1547f804728SRuslan Ermilov.It Cm noclusterr 15575b714acSKATO TakenoriDisable read clustering. 1567f804728SRuslan Ermilov.It Cm noclusterw 15775b714acSKATO TakenoriDisable write clustering. 1587f804728SRuslan Ermilov.It Cm nodev 1598fae3551SRodney W. GrimesDo not interpret character or block special devices on the filesystem. 1608fae3551SRodney W. GrimesThis option is useful for a server that has filesystems containing 1618fae3551SRodney W. Grimesspecial devices for architectures other than its own. 1627f804728SRuslan Ermilov.It Cm noexec 1638fae3551SRodney W. GrimesDo not allow execution of any binaries on the mounted filesystem. 1648fae3551SRodney W. GrimesThis option is useful for a server that has filesystems containing 1658fae3551SRodney W. Grimesbinaries for architectures other than its own. 1667f804728SRuslan Ermilov.It Cm nosuid 1678fae3551SRodney W. GrimesDo not allow set-user-identifier or set-group-identifier bits to take effect. 168b23472acSWolfram SchneiderNote: this option is worthless if a public available suid or sgid 169b23472acSWolfram Schneiderwrapper like 170951122deSSteve Price.Xr suidperl 1 171b23472acSWolfram Schneideris installed on your system. 1727f804728SRuslan Ermilov.It Cm nosymfollow 1735ddc8dedSWolfram SchneiderDo not follow symlinks 1745ddc8dedSWolfram Schneideron the mounted filesystem. 1757f804728SRuslan Ermilov.It Cm rdonly 1768fae3551SRodney W. GrimesThe same as 1778fae3551SRodney W. Grimes.Fl r ; 1788fae3551SRodney W. Grimesmount the filesystem read-only (even the super-user may not write it). 1797f804728SRuslan Ermilov.It Cm sync 1808fae3551SRodney W. GrimesAll 1818fae3551SRodney W. Grimes.Tn I/O 1828fae3551SRodney W. Grimesto the filesystem should be done synchronously. 183299f1561STom Rhodes.It Cm snapshot 184299f1561STom RhodesThis option allows a snapshot of the specified filesystem to be taken. 185299f1561STom RhodesThe 186299f1561STom Rhodes.Fl u 187299f1561STom Rhodesflag is required with this option. 188299f1561STom RhodesNote that snapshot files must be created in the filesystem that is being 189299f1561STom Rhodessnapshotted. 190299f1561STom RhodesYou may create up to 20 snapshots per filesystem. 191299f1561STom RhodesActive snapshots are recorded in the superblock, so they persist across unmount 192299f1561STom Rhodesand remount operations and across system reboots. 193299f1561STom RhodesWhen you are done with a snapshot, it can be removed with the 194299f1561STom Rhodes.Xr rm 195299f1561STom Rhodescommand. 196299f1561STom RhodesSnapshots may be removed in any order, however you may not get back all the 197299f1561STom Rhodesspace contained in the snapshot as another snapshot may claim some of the blocks 198299f1561STom Rhodesthat it is releasing. 199299f1561STom RhodesNote that the schg flag is set on snapshots to ensure that not even the root 200299f1561STom Rhodesuser can write to them. 201299f1561STom RhodesThe unlink command makes an exception for snapshot files in that it allows them 202299f1561STom Rhodesto be removed even though they have the schg flag set, so it is not necessary to 203299f1561STom Rhodesclear the schg flag before removing a snapshot file. 204299f1561STom Rhodes.Pp 205299f1561STom RhodesOnce you have taken a snapshot, there are three interesting things that you can 206299f1561STom Rhodesdo with it: 207299f1561STom Rhodes.Pp 208299f1561STom Rhodes.Bl -enum -compact 209299f1561STom Rhodes.It 210299f1561STom RhodesRun fsck on the snapshot file. 211299f1561STom RhodesAssuming that the filesystem was clean when it was mounted, you should always 212299f1561STom Rhodesget a clean (and unchanging) result from running fsck on the snapshot. 213299f1561STom RhodesThis is essentially what the background fsck process does. 214299f1561STom Rhodes.Pp 215299f1561STom Rhodes.It 216299f1561STom RhodesRun dump on the snapshot. 217299f1561STom RhodesYou will get a dump that is consistent with the filesystem as of the timestamp 218299f1561STom Rhodesof the snapshot. 219299f1561STom RhodesNote that 220299f1561STom Rhodes.Xr dump 221299f1561STom Rhodeshas not yet been changed to set the dumpdates file correctly, so do not use this 222299f1561STom Rhodesfeature in production until that fix is made. 223299f1561STom Rhodes.Pp 224299f1561STom Rhodes.It 225299f1561STom RhodesMount the snapshot as a frozen image of the filesystem. 226299f1561STom RhodesTo mount the snapshot 227299f1561STom Rhodes.Pa /var/snapshot/snap1 : 228299f1561STom Rhodes.Bd -literal 229299f1561STom Rhodesmdconfig -a -t vnode -f /var/snapshot/snap1 -u 4 230299f1561STom Rhodesmount -r /dev/md4 /mnt 231299f1561STom Rhodes.Ed 232299f1561STom Rhodes.Pp 233299f1561STom RhodesYou can now cruise around your frozen 234299f1561STom Rhodes.Pa /var 235299f1561STom Rhodesfilesystem at 236299f1561STom Rhodes.Pa /mnt . 237299f1561STom RhodesEverything will be in the same state that it was at the time the snapshot was 238299f1561STom Rhodestaken. 239299f1561STom RhodesThe one exception is that any earlier snapshots will appear as zero length 240299f1561STom Rhodesfiles. 241299f1561STom RhodesWhen you are done with the mounted snapshot: 242299f1561STom Rhodes.Bd -literal 243299f1561STom Rhodesumount /mnt 244299f1561STom Rhodesmdconfig -d -u 4 245299f1561STom Rhodes.Ed 246299f1561STom Rhodes.Pp 247299f1561STom RhodesFurther details can be found in the file at 248299f1561STom Rhodes.Pa /usr/src/sys/ufs/ffs/README.snapshot . 249299f1561STom Rhodes.El 2507f804728SRuslan Ermilov.It Cm suiddir 25152bf64c7SJulian ElischerA directory on the mounted filesystem will respond to the SUID bit 25252bf64c7SJulian Elischerbeing set, by setting the owner of any new files to be the same 25352bf64c7SJulian Elischeras the owner of the directory. 25452bf64c7SJulian ElischerNew directories will inherit the bit from their parents. 25552bf64c7SJulian ElischerExecute bits are removed from 25652bf64c7SJulian Elischerthe file, and it will not be given to root. 25752bf64c7SJulian Elischer.Pp 25852bf64c7SJulian ElischerThis feature is designed for use on fileservers serving PC users via 259ef8f7ac9SSheldon Hearnftp, SAMBA, or netatalk. 260ef8f7ac9SSheldon HearnIt provides security holes for shell users and as 26152bf64c7SJulian Elischersuch should not be used on shell machines, especially on home directories. 26252bf64c7SJulian ElischerThis option requires the SUIDDIR 263ef8f7ac9SSheldon Hearnoption in the kernel to work. 264ef8f7ac9SSheldon HearnOnly UFS filesystems support this option. 26552bf64c7SJulian ElischerSee 26652bf64c7SJulian Elischer.Xr chmod 2 26752bf64c7SJulian Elischerfor more information. 2687f804728SRuslan Ermilov.It Cm update 2698fae3551SRodney W. GrimesThe same as 2708fae3551SRodney W. Grimes.Fl u ; 2718fae3551SRodney W. Grimesindicate that the status of an already mounted filesystem should be changed. 2727f804728SRuslan Ermilov.It Cm union 2738fae3551SRodney W. GrimesCauses the namespace at the mount point to appear as the union 2748fae3551SRodney W. Grimesof the mounted filesystem root and the existing directory. 2758fae3551SRodney W. GrimesLookups will be done in the mounted filesystem first. 2768fae3551SRodney W. GrimesIf those operations fail due to a non-existent file the underlying 2778fae3551SRodney W. Grimesdirectory is then accessed. 2788fae3551SRodney W. GrimesAll creates are done in the mounted filesystem. 2798fae3551SRodney W. Grimes.El 2808fae3551SRodney W. Grimes.Pp 2818fae3551SRodney W. GrimesAny additional options specific to a filesystem type that is not 2828fae3551SRodney W. Grimesone of the internally known types (see the 2838fae3551SRodney W. Grimes.Fl t 2848fae3551SRodney W. Grimesoption) may be passed as a comma separated list; these options are 2858fae3551SRodney W. Grimesdistinguished by a leading 2868fae3551SRodney W. Grimes.Dq \&- 2878fae3551SRodney W. Grimes(dash). 2888fae3551SRodney W. GrimesOptions that take a value are specified using the syntax -option=value. 289951122deSSteve PriceFor example, the 290951122deSSteve Price.Nm 291951122deSSteve Pricecommand: 2928fae3551SRodney W. Grimes.Bd -literal -offset indent 2930b381bf1SRuslan Ermilovmount -t unionfs -o -b /sys $HOME/sys 2948fae3551SRodney W. Grimes.Ed 2958fae3551SRodney W. Grimes.Pp 2968fae3551SRodney W. Grimescauses 297951122deSSteve Price.Nm 2988fae3551SRodney W. Grimesto execute the equivalent of: 2998fae3551SRodney W. Grimes.Bd -literal -offset indent 3000b381bf1SRuslan Ermilov/sbin/mount_unionfs -b /sys $HOME/sys 3018fae3551SRodney W. Grimes.Ed 302e4bc2e34SSheldon Hearn.Pp 303e4bc2e34SSheldon HearnAdditional options specific to filesystem types 304e4bc2e34SSheldon Hearnwhich are not internally known 305e4bc2e34SSheldon Hearn(see the description of the 306e4bc2e34SSheldon Hearn.Fl t 307e4bc2e34SSheldon Hearnoption below) 308e4bc2e34SSheldon Hearnmay be described in the manual pages for the associated 309e4bc2e34SSheldon Hearn.Pa /sbin/mount_ Ns Sy XXX 310e4bc2e34SSheldon Hearnutilities. 311a257a45eSJordan K. Hubbard.It Fl p 3127f804728SRuslan ErmilovPrint mount information in 3137f804728SRuslan Ermilov.Xr fstab 5 3147f804728SRuslan Ermilovformat. 315ef8f7ac9SSheldon HearnImplies also the 316a257a45eSJordan K. Hubbard.Fl v 317a257a45eSJordan K. Hubbardoption. 3188fae3551SRodney W. Grimes.It Fl r 3198fae3551SRodney W. GrimesThe filesystem is to be mounted read-only. 3208fae3551SRodney W. GrimesMount the filesystem read-only (even the super-user may not write it). 3218fae3551SRodney W. GrimesThe same as the 3227f804728SRuslan Ermilov.Cm rdonly 3238fae3551SRodney W. Grimesargument to the 3248fae3551SRodney W. Grimes.Fl o 3258fae3551SRodney W. Grimesoption. 3267f804728SRuslan Ermilov.It Fl t Ar ufs | external_type 3278fae3551SRodney W. GrimesThe argument following the 3288fae3551SRodney W. Grimes.Fl t 3298fae3551SRodney W. Grimesis used to indicate the filesystem type. 3308fae3551SRodney W. GrimesThe type 3318fae3551SRodney W. Grimes.Ar ufs 3328fae3551SRodney W. Grimesis the default. 33393eb5567SGarrett WollmanThe 33493eb5567SGarrett Wollman.Fl t 33593eb5567SGarrett Wollmanoption can be used 3368fae3551SRodney W. Grimesto indicate that the actions should only be taken on 3378fae3551SRodney W. Grimesfilesystems of the specified type. 3388fae3551SRodney W. GrimesMore than one type may be specified in a comma separated list. 3398fae3551SRodney W. GrimesThe list of filesystem types can be prefixed with 3408fae3551SRodney W. Grimes.Dq no 3418fae3551SRodney W. Grimesto specify the filesystem types for which action should 3428fae3551SRodney W. Grimes.Em not 3438fae3551SRodney W. Grimesbe taken. 3448fae3551SRodney W. GrimesFor example, the 345951122deSSteve Price.Nm 3468fae3551SRodney W. Grimescommand: 3478fae3551SRodney W. Grimes.Bd -literal -offset indent 3480b381bf1SRuslan Ermilovmount -a -t nonfs,nullfs 3498fae3551SRodney W. Grimes.Ed 3508fae3551SRodney W. Grimes.Pp 3518fae3551SRodney W. Grimesmounts all filesystems except those of type 3528fae3551SRodney W. Grimes.Tn NFS 3538fae3551SRodney W. Grimesand 3540b381bf1SRuslan Ermilov.Tn NULLFS . 3558fae3551SRodney W. Grimes.Pp 3568fae3551SRodney W. GrimesIf the type is not one of the internally known types, 357951122deSSteve Price.Nm 358951122deSSteve Pricewill attempt to execute a program in 359e4bc2e34SSheldon Hearn.Pa /sbin/mount_ Ns Sy XXX 3608fae3551SRodney W. Grimeswhere 361e4bc2e34SSheldon Hearn.Sy XXX 3628fae3551SRodney W. Grimesis replaced by the type name. 3638fae3551SRodney W. GrimesFor example, nfs filesystems are mounted by the program 3648fae3551SRodney W. Grimes.Pa /sbin/mount_nfs . 36593eb5567SGarrett Wollman.Pp 36626fbf78bSMaxime HenrionMost filesystems will be dynamically loaded by the kernel 36726fbf78bSMaxime Henrionif not already present, and if the kernel module is available. 3688fae3551SRodney W. Grimes.It Fl u 3698fae3551SRodney W. GrimesThe 3708fae3551SRodney W. Grimes.Fl u 3718fae3551SRodney W. Grimesflag indicates that the status of an already mounted file 3728fae3551SRodney W. Grimessystem should be changed. 3738fae3551SRodney W. GrimesAny of the options discussed above (the 3748fae3551SRodney W. Grimes.Fl o 3758fae3551SRodney W. Grimesoption) 3768fae3551SRodney W. Grimesmay be changed; 3778fae3551SRodney W. Grimesalso a filesystem can be changed from read-only to read-write 3788fae3551SRodney W. Grimesor vice versa. 3798fae3551SRodney W. GrimesAn attempt to change from read-write to read-only will fail if any 3808fae3551SRodney W. Grimesfiles on the filesystem are currently open for writing unless the 3818fae3551SRodney W. Grimes.Fl f 3828fae3551SRodney W. Grimesflag is also specified. 38318af6044SJoseph KoshyThe set of options is determined by applying the options specified 38418af6044SJoseph Koshyin the argument to 3858fae3551SRodney W. Grimes.Fl o 3868fae3551SRodney W. Grimesand finally applying the 3878fae3551SRodney W. Grimes.Fl r 3888fae3551SRodney W. Grimesor 3898fae3551SRodney W. Grimes.Fl w 3908fae3551SRodney W. Grimesoption. 3918fae3551SRodney W. Grimes.It Fl v 3928fae3551SRodney W. GrimesVerbose mode. 3938fae3551SRodney W. Grimes.It Fl w 3948fae3551SRodney W. GrimesThe filesystem object is to be read and write. 3951252c1bbSRuslan Ermilov.El 3966caa839dSJoerg Wunsch.Sh DIAGNOSTICS 3976caa839dSJoerg WunschVarious, most of them are self-explanatory. 3986caa839dSJoerg Wunsch.Pp 3996caa839dSJoerg Wunsch.Dl XXXXX filesystem is not available 4006caa839dSJoerg Wunsch.Pp 4017f804728SRuslan ErmilovThe kernel does not support the respective filesystem type. 4027f804728SRuslan ErmilovNote that 4036caa839dSJoerg Wunschsupport for a particular filesystem might be provided either on a static 4046caa839dSJoerg Wunsch(kernel compile-time), or dynamic basis (loaded as a kernel module by 405a7efcd4bSGuy Helmer.Xr kldload 8 ) . 4068fae3551SRodney W. Grimes.Sh FILES 4078fae3551SRodney W. Grimes.Bl -tag -width /etc/fstab -compact 4088fae3551SRodney W. Grimes.It Pa /etc/fstab 4098fae3551SRodney W. Grimesfilesystem table 4108fae3551SRodney W. Grimes.El 4118fae3551SRodney W. Grimes.Sh SEE ALSO 4128fae3551SRodney W. Grimes.Xr mount 2 , 4138fae3551SRodney W. Grimes.Xr fstab 5 , 414a7efcd4bSGuy Helmer.Xr kldload 8 , 4158fae3551SRodney W. Grimes.Xr mount_cd9660 8 , 4168546f807SSteve Price.Xr mount_devfs 8 , 4171ce9f317SNik Clayton.Xr mount_ext2fs 8 , 4186ad10804SRuslan Ermilov.Xr mount_fdescfs 8 , 4191ce9f317SNik Clayton.Xr mount_hpfs 8 , 4201ce9f317SNik Clayton.Xr mount_linprocfs 8 , 4214ccd7546SRuslan Ermilov.Xr mount_msdosfs 8 , 4228fae3551SRodney W. Grimes.Xr mount_nfs 8 , 42301c78dbbSNik Clayton.Xr mount_ntfs 8 , 4246ad10804SRuslan Ermilov.Xr mount_nullfs 8 , 4251ce9f317SNik Clayton.Xr mount_nwfs 8 , 4266ad10804SRuslan Ermilov.Xr mount_portalfs 8 , 4278fae3551SRodney W. Grimes.Xr mount_procfs 8 , 428b6925fa9SDavid Malone.Xr mount_smbfs 8 , 4291ce9f317SNik Clayton.Xr mount_std 8 , 430b6925fa9SDavid Malone.Xr mount_udf 8 , 4316ad10804SRuslan Ermilov.Xr mount_umapfs 8 , 4326ad10804SRuslan Ermilov.Xr mount_unionfs 8 , 4338fae3551SRodney W. Grimes.Xr umount 8 4348fae3551SRodney W. Grimes.Sh BUGS 4358fae3551SRodney W. GrimesIt is possible for a corrupted filesystem to cause a crash. 436ce602323SJoseph Koshy.Sh CAVEATS 4377f804728SRuslan ErmilovAfter a successful 4387f804728SRuslan Ermilov.Nm , 4397f804728SRuslan Ermilovthe permissions on the original mount point determine if 4407f804728SRuslan Ermilov.Pa ..\& 4417f804728SRuslan Ermilovis accessible from the mounted filesystem. 4427f804728SRuslan ErmilovThe minimum permissions for 443ce602323SJoseph Koshythe mount point for traversal across the mount point in both 444ce602323SJoseph Koshydirections to be possible for all users is 0111 (execute for all). 4458fae3551SRodney W. Grimes.Sh HISTORY 4468fae3551SRodney W. GrimesA 447951122deSSteve Price.Nm 448e1205e80SPhilippe Charnierutility appeared in 449b8923d4cSWolfram Schneider.At v1 . 450