Unmounts groups of dismountable devices or filesystems.
The umountall command by default unmounts all dismountable file systems or devices except root, /proc, /var and /usr. If the FileSystemType is specified, umountall limits its actions to the file system type specified. There is no guarantee that umountall will unmount busy file systems, even if the -k option is specified.
Item | Description |
---|---|
-F FileSystemType | Specifies the type of file systems to be dismounted. FileSystemType corresponds to the vfs column printed out by the mount command. All dismountable file systems of the given type will be unmounted. This flag cannot be used in combination with the -h flag. |
-h Host | Specifies the host node. All file systems remotely mounted from this host will be unmounted. |
-k | Sends a SIGKILL to each process on the mount point before unmounting. This option internally uses the fuser -k command to kill all the processes running on the mount point. As this option causes each process on the mount point to be killed, the unmount of the mount point does not happen immediately. There is no guarantee that umountall will unmount busy file systems, even if the -k option is specified. An attempt to unmount the mount point will be made only after all the processes using the mount point are killed. |
-l | Limits the action to local filesystems. |
-r | Limits the action to remote filesystems. |
-s | This is a no-operation flag provided for System V compatibility on serializing the unmounts. The serialization of the unmount command is done using -k option by terminating all the associated processes on the mount point. |
umountall
umountall -F jfs
umountall -h host.domain
umountall -r
Item | Description |
---|---|
/usr/sbin/umountall | Contains the umountall command. |