Disk and Storage

umount

Detaches a mounted filesystem.

umount disconnects a filesystem from the directory tree after pending writes are flushed.

Syntax
umount [options] target

Arguments explained

  • target can be the mount point or device.
  • -l performs lazy unmount in special cases.
  • -f forces certain network unmounts.

Common examples

Unmount a USB mount point
sudo umount /mnt/usb

Detaches the filesystem mounted there.

Find busy processes
sudo lsof +f -- /mnt/usb

Helps diagnose why umount says target is busy.

umount Command
FieldDetails
Commandumount
CategoryDisk and Storage
Primary useDetaches a mounted filesystem.
Syntaxumount [options] target