The umount Command

The opposite of the mount command is the umount command, which is used to remove a mounted directory from the local filesystem. A filesystem can be dismounted using either the remote filesystem name or the local mount point directory on the umount command line, so to dismount the /usr/local/bin directory, enter either the remote name

# umount wren:/usr/local.bin or the local name

#umount /usr/local/bin

There are a few options associated with the umount command that are of particular interest. The -a and -t options are used in the same way that they are used with the mount command. The -a option dismounts every filesystem listed in the /etc/mtab file. In other words, it dismounts all currently mounted filesystems. The -t option, when combined with the -a option, dismounts all filesystems of the specified type. The -f option has particular relevance to NFS because it forces the dismount, even if the remote NFS server is unresponsive.

Was this article helpful?

0 0

Post a comment