umount

Unlink a filesystem from its mount point, making it no longer accessible. A filesystem cannot be unmounted when it is busy. More information: <https://man.openbsd.org/umount>.

Install

All systems
curl cmd.cat/umount.sh
Debian Debian
apt-get install mount
Ubuntu
apt-get install mount
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install mount
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install mount
OS X
brew install util-linux
Raspbian
apt-get install loop-aes-utils
Docker
docker run cmd.cat/umount umount powered by Commando

Unlink a filesystem from its mount point, making it no longer accessible. A filesystem cannot be unmounted when it is busy. More information: <https://man.openbsd.org/umount>.

  • Unmount a filesystem, by passing the path to the source it is mounted from:
    umount path/to/device_file
  • Unmount a filesystem, by passing the path to the target where it is mounted:
    umount path/to/mounted_directory
  • Unmount all mounted filesystems (except the `proc` filesystem):
    umount -a

© tl;dr; authors and contributors