umount
umount is a command used on Unix-like systems to detach a mounted filesystem from the directory tree. After unmounting, the filesystem is no longer accessible through the standard path and the resources it used are released for other uses. The command typically requires elevated privileges.
umount takes a single target argument and unmounts the filesystem that is attached at that mount point
Options and their availability vary by system, but some widely supported ones include:
- -a to unmount all filesystems listed in the system’s mount table
- -t to restrict unmounting to filesystems of a specific type
- -l to perform a lazy unmount, detaching the filesystem immediately and cleaning up references when it
- -f to force unmount in situations where the filesystem is not responding, though support for this
Unounting system-critical filesystems or those in active use can disrupt running programs and services. If unmounting
Related commands include mount (to attach filesystems), fuser and lsof (to identify open files), and system-specific