Copied to clipboard

umount

`umount` command is used to unmount mounted file systems.

Example

Unmount a file system

umount /mnt

Unmount all mounted file systems

umount -a

Unmount a specific file system type

umount -t ext4 /mnt

Mount the file system in read-only mode

umount -r /mnt