From 5ecd1ac7eaf18b981cd431408bb41f507bd74567 Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Wed, 10 Jan 2024 00:08:42 -0300 Subject: [PATCH] umount: split common and util-linux implementations (#12045) * umount: split common and util-linux implementations * umount: remove additional newlines --- pages/common/umount.md | 2 +- pages/linux/umount.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 pages/linux/umount.md diff --git a/pages/common/umount.md b/pages/common/umount.md index 0dffa77ea..5397f64e8 100644 --- a/pages/common/umount.md +++ b/pages/common/umount.md @@ -2,7 +2,7 @@ > Unlink a filesystem from its mount point, making it no longer accessible. > A filesystem cannot be unmounted when it is busy. -> More information: . +> More information: . - Unmount a filesystem, by passing the path to the source it is mounted from: diff --git a/pages/linux/umount.md b/pages/linux/umount.md new file mode 100644 index 000000000..85b1eced2 --- /dev/null +++ b/pages/linux/umount.md @@ -0,0 +1,25 @@ +# umount + +> Unlink a filesystem from its mount point, making it no longer accessible. +> A filesystem cannot be unmounted when it is busy. +> More information: . + +- 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}}` + +- When an unmount fails, try to remount the filesystem read-only: + +`umount --read-only {{path/to/mounted_directory}}` + +- Recursively unmount each specified directory: + +`umount --recursive {{path/to/mounted_directory}}` + +- Unmount all mounted filesystems (except the `proc` filesystem): + +`umount -a`