UMOUNT, UNMOUNT(8,C) AIX Commands Reference UMOUNT, UNMOUNT(8,C)
-------------------------------------------------------------------------------
umount, unmount
PURPOSE
Unmounts a previously mounted file system.
SYNTAX
one of
+-----+
| all |
+-----| -a |-----+
| +-----+ |
one of | one of |
+---------+ +--------+ | +-----------+ |
| umount |---| +----+ |---+--| device | |---|
| unmount | +-| -f |-+ | | directory | |
+---------+ ^| -v || | +-----------+ |
|+----+| | one of |
+------+ | +-------------+ |
+-| -s device |-+
| -t type |
| -h hostname1|
+-------------+
-----------------
1 -h is for NFS only
Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.
DESCRIPTION
The umount command unmounts a previously mounted file system. Processing on
the file system completes and it is unmounted. Only members of the system
group and users operating with superuser authority can issue the umount
command. You can specify the file system as either the directory or device on
which it is mounted.
If TCF is installed, file systems must be unmounted by running the umount
command on the same site within the cluster when the corresponding mount
command was run. If a replicated file system is being unmounted, only the
local copy of the file system is unmounted. If other file system copies remain
mounted on other cluster sites, the file system remains available to processes
on all sites throughout the cluster.
Processed November 8, 1990 UMOUNT, UNMOUNT(8,C) 1
UMOUNT, UNMOUNT(8,C) AIX Commands Reference UMOUNT, UNMOUNT(8,C)
Note: You cannot use the umount command on a device that is in use unless the
-f flag is specified. A device is in use if any file is open for any
reason or if a user's current directory is on that device.
You can also specify the following parameter:
all Unmounts all mounted file systems.
FLAGS
-a Unmounts all mounted file systems (same as all).
-f The file system is unmounted even if it is in use.
-h hostname
Unmounts all file systems which have been mounted from the specified
host using NFS.
-s device Prohibits the use of the /etc/mtab file if it is damaged or not
writable. If you use this flag, you must specify the name of the
device to be unmounted.
-t type Unmounts all stanzas in /etc/filesystems that contain type = type and
are mounted. (type is a string value, such as "remote".)
-v Displays a message indicating the file system being mounted.
EXAMPLES
(Note: The first two examples do not apply to AIX/370.)
1. To unmount a diskette drive:
umount /dev/fd0
2. To unmount the device mounted on /diskette0:
umount /diskette0
3. To unmount files and directories of a specific type:
umount -t prod
This unmounts all files or directories that have a stanza in the
/etc/filesystems file that contains the attribute "type = prod".
FILES
/etc/filesystems Descriptions of mountable file systems.
/etc/mtab Table of currently mounted file systems.
Processed November 8, 1990 UMOUNT, UNMOUNT(8,C) 2
UMOUNT, UNMOUNT(8,C) AIX Commands Reference UMOUNT, UNMOUNT(8,C)
RELATED INFORMATION
See the following command: "mount."
See the mount and umount system calls and the /etc/mtab file in AIX Operating
System Technical Reference.
Processed November 8, 1990 UMOUNT, UNMOUNT(8,C) 3