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|CARPETAMost useful options
-lLazy unmount-fForces the unmountCopy-ready examples
$ sudo mount /dev/sdb1 /mnt && sudo umount /mntMount and unmountYou 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'.
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