mount(1M) INTERACTIVE UNIX System mount(1M)
NAME
mount, umount - mount and unmount file systems and remote
resources
SYNOPSIS
/etc/mount [ -r ] [ -f fstyp ] special directory
/etc/mount [ -r ] [ -c ] -d resource directory
/etc/mount
/etc/umount special
/etc/umount -d resource
DESCRIPTION
File systems other than root ( / ) are considered removable
in the sense that they can be either available to users or
unavailable. mount announces to the system that special, a
block special device or resource, a remote resource, is
available to users from the mount point directory. direc-
tory must exist already; it becomes the name of the root of
the newly mounted special or resource. A unique resource
may be mounted only once (no multiple mounts).
mount, when entered with arguments, adds an entry to the
table of mounted devices, /etc/mnttab. umount removes the
entry. If invoked with no arguments, mount prints the
entire mount table. If invoked with any of the following
partial argument lists, mount will search /etc/fstab to fill
in the missing arguments: special, -d resource, directory,
or -d directory.
The following options are available:
-r indicates that special or resource is to be
mounted read-only. If special or resource is
write-protected or read-only advertised, this flag
must be used.
-d indicates that resource is a remote resource that
is to be mounted on directory or unmounted. To
mount a remote resource, Remote File Sharing must
be up and running and the resource must be adver-
tised by a remote computer [see rfstart(1M) and
adv(1M)]. If -d is not used, special must be a
local block special device.
-c indicates that remote reads and writes should not
be cached in the local buffer pool. -c is used in
conjunction with -d.
-f fstyp indicates that fstyp is the file system type to be
mounted. If this argument is omitted, it defaults
first to the root fstyp, then, if it cannot be
mounted as that type but it is a local file sys-
tem, it will attempt to determine the fstyp by
Rev. 1.2 Page 1
mount(1M) INTERACTIVE UNIX System mount(1M)
executing /etc/fstyp.
special indicates the block special device that is to be
mounted on directory.
resource indicates the remote resource name that is to be
mounted on a directory.
directory indicates the directory mount point for special or
resource. (The directory must already exist.)
umount announces to the system that the previously mounted
special or resource is to be made unavailable. If invoked
with directory or -d directory, umount will search
/etc/fstab to fill in the missing argument(s).
mount can be used by any user to list mounted file systems
and resources. Only a super-user can mount and unmount file
systems.
Example
To mount a DOS file system on a system where DOS resides on
the first fdisk partition, type:
mount [-f DOS] /dev/dsk/0p1 /mnt
FILES
/etc/mnttab mount table
/etc/fstab file system table
SEE ALSO
adv(1M), fuser(1M), fstyp(1M), nsquery(1M), rfstart(1M),
rmntstat(1M), setmnt(1M), unadv(1M).
mount(2), umount(2), fstab(4), mnttab(4) in the INTERACTIVE
SDS Guide and Programmer's Reference Manual.
INTERACTIVE Network Connection Facilities Guide for guide-
lines on mounting remote resources.
DIAGNOSTICS
If the mount(2) system call fails, mount prints an appropri-
ate diagnostic. mount issues a warning if the file system
to be mounted is currently labeled under another name. A
remote resource mount will fail if the resource is not
available or if Remote File Sharing is not running or if it
is advertised read-only and not mounted with -r.
umount fails if special or resource is not mounted or if it
is busy. special or resource is busy if it contains an open
file or some user's working directory. In such a case, you
can use fuser(1M) to list and kill processes that are using
special or resource.
Rev. 1.2 Page 2
mount(1M) INTERACTIVE UNIX System mount(1M)
WARNINGS
Physically removing a mounted file system diskette from the
diskette drive before issuing the umount command damages the
file system.
ADDED VALUE
This entry, supplied by INTERACTIVE Systems Corporation,
contains enhancements to UNIX System V.
Rev. 1.2 Page 3