System and processes

The umount command

Unmounts a device or a folder that was mounted, leaving it ready to be safely removed.

Syntax

umount DISPOSITIVO|CARPETA

Most useful options

-lLazy unmount
-fForces the unmount

Copy-ready examples

$ sudo mount /dev/sdb1 /mnt && sudo umount /mntMount and unmount

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • If you are inside the mounted folder or files are open, the unmount fails with 'target is busy'.

Related commands

FAQ

Why does it say it is busy?

Some process uses that folder: leave the terminal located there or use fuser.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course