HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

umount — Unlink a filesystem from its mount point, making it no longer accessible. A filesystem cannot be unm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfromitscliumountunlinkfilesystemmount

Problem

How to use the umount command: 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>.

Solution

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>.

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

Code Snippets

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

Context

tldr-pages: common/umount

Revisions (0)

No revisions yet.