Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umount: split common and util-linux implementations #12045

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/common/umount.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <https://manned.org/umount.8>.
> More information: <https://man.openbsd.org/umount>.

- Unmount a filesystem, by passing the path to the source it is mounted from:

Expand Down
25 changes: 25 additions & 0 deletions pages/linux/umount.md
Original file line number Diff line number Diff line change
@@ -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: <https://manned.org/umount.8>.

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