MOUNT(8)
NAME
mount, umount − mount and dismount file system
USAGE
(removable file systems only)
/etc/mount [ −ar ] [ dev dir ]
/etc/umount [ −a ] [ dev ]
(remote file systems only)
/etc/mount [ −afrvp ] [ to type options ] [ fsys ] [ dir ]
/etc/umount [ −av ] [ -root ] { fsys | dir }
DESCRIPTION
The mount command mounts removable and remote file systems.
The umount command unmounts removable and remote file systems.
When mounting a removable file system located on a diskette, cartridge tape, or magtape, specify the device name for dev and a nonexistent directory for dir.
When mounting a remote file system (that is, one located on another host), specify the remote host and file system in the form ‘host:fsname’ for fsys and a nonexistent directory for dir. (The mount command creates a gateway object named dir; the umount command deletes it.)
The mount and umount commands maintain a table of mounted file systems in /etc/mtab. If you execute the mount command without arguments, it prints the table. If you specify only one argument, the command searches /etc/fstab for an entry with the same argument; if the entry exists, the command then uses it to mount the file system.
OPTIONS
The command options can be one or more of the following items separated by a space.
−a With /etc/mount, try to mount all file systems listed in /etc/fstab. (This file contains entries added manually by user.)
With /etc/umount, try to unmount all file systems listed in /etc/mtab. (This file contains an entry for every remote file system currently mounted by the local host.)
−f Fake a new /etc/mtab entry without mounting the file system.
−o options Accept the following arguments, separated by commas, as options. The defaults are fg, retry=1, timeo=7, and hard:
bg Retry in background if server host’s mountd(8c) doesn’t respond.
fg Retry in foreground.
hard Retransmit until server responds.
port=n Set NFS port number n.
retry=n Set number of mount retries to n.
ro Allow read only.
root Mount in global root directory.
rsize=n Set read request buffer size to n bytes.
rw Allow read/write.
soft Report error if server fails to respond.
timeo=n Set NFS timeout to n tenths of a second. When attempting to access mounted file system, NFS waits specified amount of time for response; if no response, NFS multiplies n by 2 and retransmits request.
wsize=n Set write request buffer size to n bytes.
−p List the mounted file systems in the same format as entries in /etc/fstab.
−r Mount the file system as read-only.
−root Dismount the file system in the global root directory.
−t type Accept the following argument as the file system type; the recognized types are 4.2 and nfs.
−v Display a message when mounting the file system.
FILES
/etc/mtab mount table
/etc/fstab file system table
CAUTIONS
Note that physically write-protected file systems, as well as those on magnetic tape, must be mounted read-only. If not, errors develop even if no explicit write is attempted.
Mounting a removable file system containing unreadable or otherwise invalid data can have unpredictable consequences.