umount Command
This command enables you to remove a remote file systemthat is currently mounted. The umount command supportsthe -V option to allow for testing. You might also use the -a option to unmount several file systems at one time. If mount-points are included with the -a option, those filesystems are unmounted. If no mount points are included, an attempt is madeto unmount all file systems that are listed in /etc/mnttab exceptfor the “required” file systems, such as /, /usr, /var, /proc, /dev/fd, and /tmp. Because the file systemis already mounted and should have an entry in /etc/mnttab,you do not need to include a flag for the file-system type.
The -f option forces a busy file system to be unmounted.You can use this option to unhang a client that is hung while trying to mountan unmountable file system.
Caution –
By forcing an unmount of a file system, you can cause dataloss if files are being written to.
See the following examples.
Example 6–1 Unmounting a File System
This example unmounts a file system that is mounted on /usr/man:
# umount /usr/man
Example 6–2 Using Options with umount
This example displays the results of running umount -a -V:
# umount -a -Vumount /home/kathysumount /optumount /homeumount /net
Notice that this command does not actually unmount the file systems.