umount Command Generator
Generate umount commands to unmount filesystems
Getting Started with umount
## What is umount?
`umount` detaches a previously mounted filesystem from the directory tree, flushing pending writes first. It is the safe counterpart to `mount`.
## How to Use
1. **Pick Flags** (optional): Choose `-f` (force), `-l` (lazy), `-R` (recursive) when the normal unmount fails. 2. **Enter Target**: Provide the mount point or device to detach (the positional argument). 3. **Copy & Run**: Copy the generated command into your terminal (usually requires root).
Tip: If unmount fails with "target is busy", free the resource first before resorting to force or lazy.
Common Options
### `-f` Force Force an unmount. Mainly useful for unreachable NFS shares; data may be lost on local filesystems.
### `-l` Lazy Detach the filesystem now but clean up references later when they become free. Useful when processes still hold files open.
### `-v` Verbose Print a message for each unmounted filesystem.
### `-n` No mtab Do not write the change to `/etc/mtab` (useful on read-only root).
### `-R` Recursive Recursively unmount a mount point and all submounts beneath it.
▶What should I try before forcing an unmount?
▶How do I unmount an unreachable NFS share?
▶How do I unmount a directory and everything under it?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee