mirror of https://github.com/CrimsonTome/tldr.git
umount: split common and util-linux implementations (#12045)
* umount: split common and util-linux implementations * umount: remove additional newlinespull/23/head
parent
fb6b981286
commit
5ecd1ac7ea
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Unlink a filesystem from its mount point, making it no longer accessible.
|
> Unlink a filesystem from its mount point, making it no longer accessible.
|
||||||
> A filesystem cannot be unmounted when it is busy.
|
> 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:
|
- Unmount a filesystem, by passing the path to the source it is mounted from:
|
||||||
|
|
||||||
|
|
|
@ -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`
|
Loading…
Reference in New Issue