MOUNT(1M) MOUNT(1M)
NAME
mount, umount - mount and dismount filesystems
SYNOPSIS
/etc/mount [ -p ]
/etc/mount -a[cfv] [ -t type ]
/etc/mount [ -cfrv ] [ -t type ] [ -o options ] fsname dir
/etc/mount [ -cfv ] fsname | dir
/etc/umount [ -h host ] [ -fkrv ]
/etc/umount -a[kv]
/etc/umount [ -kv ]
/etc/umount [ -t type ]
DESCRIPTION
mount announces to the system that a filesystem fsname is to
be attached to the file tree at the directory dir. The
directory dir must already exist. It becomes the name of
the newly mounted root. The contents of dir are hidden
until the filesystem is unmounted. If fsname is of the form
host:path the filesystem type is assumed to be nfs(4).
Umount announces to the system that the filesystem fsname
previously mounted on directory dir should be removed.
Either the filesystem name or the mounted-on directory may
be used.
mount and umount maintain a table of mounted filesystems in
/etc/mtab, described in mtab(4). If invoked without an
argument, mount displays the table. If invoked with only
one of fsname or dir mount searches the file /etc/fstab (see
fstab(4)) for an entry whose dir or fsname field matches the
given argument. For example, if this line is in /etc/fstab:
/dev/xy0g /usr efs rw 1 1
then the commands mount /usr and mount /dev/xy0g are
shorthand for mount /dev/xy0g /usr
MOUNT OPTIONS
-p Print the list of mounted filesystems in a format
suitable for use in /etc/fstab.
-a Attempt to mount all the filesystems described in
/etc/fstab. (In this case, fsname and dir are taken
from /etc/fstab.) If a type is specified all of the
filesystems in /etc/fstab with that type are mounted.
Filesystems are not necessarily mounted in the order
listed in /etc/fstab .
-c Invoke fsstat(1m) on each filesystem being mounted, and
if it indicates that the filesystem is dirty, call
Page 1 (last mod. 8/20/87)
MOUNT(1M) MOUNT(1M)
fsck(1m) to clean the filesystem. fsck is passed the
-D and -y options.
-f Fake a new /etc/mtab entry, but do not actually mount
any filesystems.
-v Verbose - mount displays a message indicating the
filesystem being mounted.
-t The next argument is the filesystem type. The accepted
types are efs and nfs; see fstab(4) for a description
of these filesystem types.
-r Mount the specified filesystem read-only. This is a
shorthand for:
mount -o ro fsname dir
Physically write-protected and magnetic tape
filesystems must be mounted read-only, or errors occur
when access times are updated, whether or not any
explicit write is attempted.
-o Specify options, a list of comma-separated words from
the list below. Some options are valid for all
filesystem types, while others apply to a specific type
only.
options valid on all file systems (the defaults are
rw,suid,fsck):
rw read/write.
ro read-only.
suid set-uid execution allowed.
nosuid set-uid execution not allowed.
suid and nosuid are currently not supported.
raw=path
the filesystem's raw device interface pathname.
fsck fsck(1M) invoked with no filesystem arguments
should check this filesystem.
nofsck
fsck(1M) should not check this filesystem by
default.
Page 2 (last mod. 8/20/87)
MOUNT(1M) MOUNT(1M)
hide ignore this entry during a mount -a command to
allow you to define fstab entries for commonly
used filesystems you don't want to automatically
mount.
options specific to nfs (NFS) file systems (the defaults
are:
fg,retry=0,timeo=7,retrans=4,port=NFSPORT,hard
with defaults for rsize and wsize set by the kernel):
bg if the first mount attempt fails, retry in the
background.
fg retry in foreground.
retry=nset number of mount failure retries to n.
rsize=nset read buffer size to n bytes.
wsize=nset write buffer size to n bytes.
timeo=nset NFS timeout to n tenths of a second.
retrans=n
set number of NFS retransmissions to n.
port=n set server IP port number to n.
soft return error if server doesn't respond.
hard retry request until server responds.
The bg option causes mount to run in the background if
the server's mountd(1M) does not respond. If bg is
specified and retry is not specified, retry defaults to
10000. mount attempts each request retry=n times
before giving up. Once the filesystem is mounted, each
NFS request made in the kernel waits timeo= n tenths of
a second for a response. If no response arrives, the
time-out is multiplied by 2 and the request is
retransmitted. When retrans=n retransmissions have
been sent with no reply a soft mounted filesystem
returns an error on the request and a hard mounted
filesystem retries the request. Filesystems that are
mounted rw (read-write) should use the hard option.
The number of bytes in a read or write request can be
set with the rsize and wsize options.
UMOUNT OPTIONS
-h host
Unmount all filesystems listed in /etc/mtab that are
Page 3 (last mod. 8/20/87)
MOUNT(1M) MOUNT(1M)
remote-mounted from host.
-a Attempt to unmount all the filesystems currently
mounted (listed in /etc/mtab). In this case, fsname is
taken from /etc/mtab.
-k Attempt to kill processes which have open files or
current directories on the filesystem being unmounted.
-t Unmounts all filesystems of a given filesystem type.
The accepted types are efs and nfs.
-v Verbose - umount displays a message indicating the
filesystem being unmounted.
EXAMPLES
mount /dev/xy0g /usr mount a local disk
mount -at efs mount all efs filesystems
mount -t nfs serv:/usr/src /usr/src mount remote filesystem
mount serv:/usr/src /usr/src same as above
mount -o hard serv:/usr/src /usr/src same as above but hard mount
mount -p > /etc/fstab save current mount state
FILES
/etc/mtab mount table
/etc/fstab filesystem table
SEE ALSO
nfsmount(2), fstab(4), mountd(1M), nfsd(1M)
BUGS
Mounting filesystems full of garbage crashes the system.
If the directory on which a filesystem is to be mounted is a
symbolic link, the filesystem is mounted on the directory to
which the symbolic link refers, rather than being mounted on
top of the symbolic link itself.
ORIGIN
Sun Microsystems
------- End of Forwarded Message
Page 4 (last mod. 8/20/87)