umnt [ -n | -f fstyp ] directory
The mnt command is called by mountall(ADM) to mount local filesystems at boot time when the system goes to multiuser mode. The filesystems to be mounted are defined by entries in the filesys(F) file (/etc/default/filesys). This file lists all mountable filesystems and the directories at which they may be mounted. mountall only mounts local filesystem entries in filesys that specify rcmount=yes. Each filesys entry can also specify how a filesystem is to be checked using fsck(ADM).
root can use mnt to mount or unmount an individual filesystem or all filesystems of a given type. The filesystem(s) must have entries in filesys.
Users other than root can mount or unmount a filesystem if its filesys entry gives them permission (mount=yes) by entering the commands mnt directory and umnt directory. Once a filesystem has been mounted, they can manipulate it as part of the main filesystem, under the directory mount point.
umnt unmounts the mountable filesystem previously mounted as directory. umnt is equivalent to mnt used with the -u option.
The filesystem requirements are the same as those defined in the ``Warning'' and ``Limitations'' sections on the mount(ADM) manual page.
mnt takes the following options:
If mountall is invoked with this option, it passes it on to mnt. mnt, in turn, passes -a to fsck.
Only root can use this option.
Only root can use this option.
Only root can use this option.
Only root can use this option.
Busy filesystems cannot be unmounted with umnt. A
filesystem is busy if it contains an open file or if a user's
present working directory resides within the filesystem.
bdev=/dev/root cdev=/dev/rroot mountdir=/ \ desc="The Root Filesystem" \ rcmount=no \ mount=no bdev=/dev/u cdev=/dev/ru mountdir=/u \ desc="The User Filesystem" \ rcmount=yes \ fsckflags=-y bdev=/dev/x cdev=/dev/rx mountdir=/x \ desc="The Extra Filesystem" \ rcmount=no \ fsckflags=-y \ mount=yesOf these examples, only /x is mountable by anyone other than root (mount=yes).
An example of a filesys entry for a filesystem mounted using NFS:
bdev=nfs_svr:/u1 mountdir=/u1 fstyp=NFS \ fsck=no rcfsck=no \ mount=yes rcmount=no \ mntopts="hard,intr"An example of a filesys entry for a filesystem mounted using NUCFS:
bdev=nw_svr:u2 mountdir=/u2 fstyp=NUCFS \ fsck=no rcfsck=no \ mount=yes rcmount=no \ mntopts=""
The -r option cannot be used with either the -f or the -n option.
An NFS filesystem may only be mounted if NFS services are installed and running on the system.
An NUCFS filesystem may only be mounted if NUC services are installed and running on the system.
SCO OpenServer Release 5.0.6 -- 1 August 2000