Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

umount - unmount a file system

&pagelevel(4)&pagelevel

The command umount unmounts a file system which was mounted using mount. The file system entry is deleted from the table /etc/mnttab.


Syntax


-V

Outputs the entire command line on screen but does not execute the command. The command line is generated with all the options and arguments specified by the user as well as the values taken from /etc/vfstab. You should select this option in order to subject a command line to a general check and validity check.

resource

Specifies the resource which is to be unmounted. Format as for mount.

For bs2fs file systems the option must be specified in UPPERCASE in accordance with the entry in the internal tables. Special characters of the POSIX shell such as ’$’ or ’*’ must be escaped explicitly.

In the case of an NFS resource this is replaced by the name of the source server. This must be followed by a colon and the path name of the resource.

mountpoint

Specifies the local position at which resource must be unmounted. You must specify an absolute path name.

Hint

Specification of the mountpoint option is always recommended for unmounting bs2fs file systems. If a bs2fs file system is mounted in multiple positions in the POSIX file system (i.e. identical resource specification in mount) and only resource is specified for umount, only the file system mounted last is unmounted. However, if mountpoint is specified, the corresponding file system is always unmounted.

The umount command is rejected if it refers to a file system mounted using the bs2fscontainer option and at least one bs2fs file system is still mounted. In the case of a successful umount for the bs2f container, the bs2fsd copy daemons are terminated automatically.

File

/etc/mnttab

Table of mounted file systems.

/etc/vfstab

Table of automatically mounted file systems.

See also

mount, umountall
mount, umount [4]