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 directory
/etc/umount −d resource
DESCRIPTION
File systems other than root (/) are considered removable in the sense that they can be either available or unavailable to users. The mount command announces to the system that special, a block special device, or resource, a remote resource, is available to users from the mount point directory. The directory 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).
The mount command, when entered with arguments, adds an entry to the table of mounted devices, /etc/mnttab. The umount command removes the entry. If invoked with no arguments, mount prints the entire mount table. If invoked with any of the following partial argument list, mount searches /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 or unmounted on directory. To mount a remote resource, Remote File Sharing must be up and running and the resource must be advertised by a remote computer.
−c Indicates that remote reads and writes should not be cached in the local buffer pool. The −c option is used in conjunction with −d.
−ffstyp Indicates that fstype is the file system type to be mounted. If this argument is omitted, it defaults to the root fstyp. If fstyp is NFS, then NFS options may be added after the fstyp separated by commas. The available NFS options are:
soft Return error if the server does not respond.
nosuid
Ignore setuid and setgid bits during exec.
bg Background this mount; this is recommended for automatic mounts done during system startup.
rsize=n
Set the read buffer size to n bytes.
wsize=n
Set the write buffer size to n bytes.
timeo=n
Set the initial NFS timeout to n tenths of a second.
retrans=n
Set the number of NFS retransmissions to n.
port=n
Set the server IP port number to n.
noac Don’t cache attributes. This is necessary when close synchronization with the server is required. NOTE: Use of this option will drastically cut performance on the file system being mounted.
special Indicates the block special device that is to be mounted on directory. If fstyp is NFS, then special should be of the form hostname:/pathname.
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.)
The umount command announces to the system that the file system previously mounted special or resource is to be made unavailable. If invoked with special or −d directory, umount will search /etc/fstab to fill in the missing argument(s).
The mount command can be used by any user to list mounted file systems and resources. Only a superuser can mount and umount file systems.
FILES
/etc/mnttabmount table
/etc/fstabfile system table
SEE ALSO
mountd(1M), nfsd(1M), showmount(1M), mount(2).
fuser(1M), setmnt(1M) in the INTERACTIVE UNIX System User’s/System Administrator’s Reference Manual.
umount(2), fstab(4), mnttab(4) in the INTERACTIVE SDS Guide and Programmer’s Reference Manual.
DIAGNOSTICS
If the mount(2) system call fails, mount prints an appropriate diagnostic. The mount command 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, if Remote File Sharing is not running, or if it is advertised read-only and not mounted with −r.
The umount command fails if special or resource is not mounted or if it is busy. The special or resource command 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.
WARNING
Physically removing a mounted file system diskette from the diskette drive before issuing the umount command damages the file system.
\*U — Version 1.0