Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/mount/mount.8
Show All 33 Lines | |||||
.Sh NAME | .Sh NAME | ||||
.Nm mount | .Nm mount | ||||
.Nd mount file systems | .Nd mount file systems | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl adflpruvw | .Op Fl adflpruvw | ||||
.Op Fl F Ar fstab | .Op Fl F Ar fstab | ||||
.Op Fl o Ar options | .Op Fl o Ar options | ||||
.Op Fl t Cm ufs | Ar external_type | .Op Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ... | ||||
.Nm | .Nm | ||||
.Op Fl dfpruvw | .Op Fl dfpruvw | ||||
.Ar special | node | .Ar special | node | ||||
.Nm | .Nm | ||||
.Op Fl dfpruvw | .Op Fl dfpruvw | ||||
.Op Fl o Ar options | .Op Fl o Ar options | ||||
.Op Fl t Cm ufs | Ar external_type | .Op Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ... | ||||
.Ar special node | .Ar special node | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm | .Nm | ||||
utility calls the | utility calls the | ||||
.Xr nmount 2 | .Xr nmount 2 | ||||
system call to prepare and graft a | system call to prepare and graft a | ||||
.Ar special | .Ar special | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
.Xr setfacl 1 | .Xr setfacl 1 | ||||
and | and | ||||
.Xr getfacl 1 | .Xr getfacl 1 | ||||
commands. | commands. | ||||
This flag is mutually exclusive with | This flag is mutually exclusive with | ||||
.Cm nfsv4acls | .Cm nfsv4acls | ||||
flag. | flag. | ||||
.It Cm async | .It Cm async | ||||
All | All I/O to the file system should be done asynchronously. | ||||
.Tn I/O | |||||
to the file system should be done asynchronously. | |||||
This is a | This is a | ||||
.Em dangerous | .Em dangerous | ||||
flag to set, since it does not guarantee that the file system structure | flag to set, since it does not guarantee that the file system structure | ||||
on the disk will remain consistent. | on the disk will remain consistent. | ||||
For this reason, the | For this reason, the | ||||
.Cm async | .Cm async | ||||
flag should be used sparingly, and only when some data recovery | flag should be used sparingly, and only when some data recovery | ||||
mechanism is present. | mechanism is present. | ||||
▲ Show 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | |||||
such should not be used on shell machines, especially on home directories. | such should not be used on shell machines, especially on home directories. | ||||
This option requires the SUIDDIR | This option requires the SUIDDIR | ||||
option in the kernel to work. | option in the kernel to work. | ||||
Only UFS file systems support this option. | Only UFS file systems support this option. | ||||
See | See | ||||
.Xr chmod 2 | .Xr chmod 2 | ||||
for more information. | for more information. | ||||
.It Cm sync | .It Cm sync | ||||
All | All I/O to the file system should be done synchronously. | ||||
.Tn I/O | |||||
to the file system should be done synchronously. | |||||
.It Cm update | .It Cm update | ||||
The same as | The same as | ||||
.Fl u ; | .Fl u ; | ||||
indicate that the status of an already mounted file system should be changed. | indicate that the status of an already mounted file system should be changed. | ||||
.It Cm union | .It Cm union | ||||
Causes the namespace at the mount point to appear as the union | Causes the namespace at the mount point to appear as the union | ||||
of the mounted file system root and the existing directory. | of the mounted file system root and the existing directory. | ||||
Lookups will be done in the mounted file system first. | Lookups will be done in the mounted file system first. | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
.It Fl r | .It Fl r | ||||
The file system is to be mounted read-only. | The file system is to be mounted read-only. | ||||
Mount the file system read-only (even the super-user may not write it). | Mount the file system read-only (even the super-user may not write it). | ||||
The same as the | The same as the | ||||
.Cm ro | .Cm ro | ||||
argument to the | argument to the | ||||
.Fl o | .Fl o | ||||
option. | option. | ||||
.It Fl t Cm ufs | Ar external_type | .It Fl t Oo Cm no Oc Ns Cm Ar type Ns Op Cm , Ns Ar type ... | ||||
The argument following the | The argument following the | ||||
.Fl t | .Fl t | ||||
is used to indicate the file system type. | is used to indicate the file system type. | ||||
The type | The type | ||||
.Cm ufs | .Cm ufs | ||||
is the default. | is the default. | ||||
The | The | ||||
.Fl t | .Fl t | ||||
option can be used | option can be used | ||||
to indicate that the actions should only be taken on | to indicate that the actions should only be taken on | ||||
file systems of the specified type. | file systems of the specified type. | ||||
More than one type may be specified in a comma separated list. | More than one type may be specified in a comma separated list. | ||||
The list of file system types can be prefixed with | The list of file system types can be prefixed with | ||||
.Dq Li no | .Cm no | ||||
to specify the file system types for which action should | to specify the file system types for which action should | ||||
.Em not | .Em not | ||||
be taken. | be taken. | ||||
For example, the | For example, the | ||||
.Nm | .Nm | ||||
command: | command: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
mount -a -t nonfs,nullfs | mount -a -t nonfs,nullfs | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
mounts all file systems except those of type | mounts all file systems except those of type NFS and NULLFS. | ||||
.Tn NFS | |||||
and | |||||
.Tn NULLFS . | |||||
.Pp | .Pp | ||||
The default behavior of | The default behavior of | ||||
.Nm | .Nm | ||||
is to pass the | is to pass the | ||||
.Fl t | .Fl t | ||||
option directly to the | option directly to the | ||||
.Xr nmount 2 | .Xr nmount 2 | ||||
system call in the | system call in the | ||||
.Li fstype | .Li fstype | ||||
option. | option. | ||||
.Pp | .Pp | ||||
However, for the following file system types: | However, for the following file system types: | ||||
.Cm cd9660 , | .Cm cd9660 , | ||||
.Cm mfs , | .Cm mfs , | ||||
.Cm msdosfs , | .Cm msdosfs , | ||||
.Cm nfs , | .Cm nfs , | ||||
.Cm nullfs , | .Cm nullfs , | ||||
.Cm smbfs , | .Cm smbfs , | ||||
.Cm udf , | .Cm udf , | ||||
and | and | ||||
.Cm unionfs . | .Cm unionfs | ||||
.Nm | .Nm | ||||
will not call | will not call | ||||
.Xr nmount 2 | .Xr nmount 2 | ||||
directly and will instead attempt to execute a program in | directly and will instead attempt to execute a program in | ||||
.Pa /sbin/mount_ Ns Sy XXX | .Pa /sbin/mount_ Ns Ar type | ||||
where | where | ||||
.Sy XXX | .Ar type | ||||
is replaced by the file system type name. | is replaced by the file system type name. | ||||
For example, nfs file systems are mounted by the program | For example, | ||||
.Cm nfs | |||||
file systems are mounted by the program | |||||
.Pa /sbin/mount_nfs . | .Pa /sbin/mount_nfs . | ||||
.Pp | .Pp | ||||
Most file systems will be dynamically loaded by the kernel | Most file systems will be dynamically loaded by the kernel | ||||
if not already present, and if the kernel module is available. | if not already present, and if the kernel module is available. | ||||
.It Fl u | .It Fl u | ||||
The | The | ||||
.Fl u | .Fl u | ||||
flag indicates that the status of an already mounted file | flag indicates that the status of an already mounted file | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |