UMOUNT(8) | MidnightBSD System Manager's Manual | UMOUNT(8) |
umount
— unmount
file systems
umount |
[-fNnv ] special ... |
node ... | fsid ... |
umount |
-a | -A
[-F fstab]
[-fnv ] [-h
host] [-t
type] |
The umount
utility calls the
unmount(2) system call
to remove a file system from the file system tree. The file system can be
specified by its special device or remote node
(rhost:path),
the path to the mount point node or by the file system
ID fsid as reported by “mount -v” when
run by root.
The options are as follows:
-a
-A
-F
fstab-f
umount
without the -f
flag is hung on an NFS mount point,
use the -N
flag instead. Also, doing a forced
dismount of an NFSv3 mount when
rpc.lockd(8) is
running is unsafe and can result in a crash.-h
host-A
option and, unless otherwise
specified with the -t
option, will only unmount
NFS file systems.-N
umount
with the
-f
flag can't complete. Using this option can
result in a loss of file updates that have not been flushed to the NFS
server.-n
-f
is used, the
umount
will not unmount an active file system. It
will, however, perform a flush. This flag disables this behaviour,
preventing the flush if there are any files open.-t
typeumount
command:
umount -a -t nfs,nullfs
unmounts all file systems of the type NFS and NULLFS that are listed in the fstab(5) file.
-v
PATH_FSTAB
PATH_FSTAB
is set, all
operations are performed against the specified file.
PATH_FSTAB
will not be honored if the process
environment or memory address space is considered “tainted”.
(See issetugid(2)
for more information.)A umount
utility appeared in
Version 1 AT&T UNIX.
June 19, 2020 | midnightbsd-3.1 |