Name

umount — stdin  stdout  - file  -- opt  --help  --version

Synopsis

umount [options] [device | directory]

umount does the opposite of mount: it makes a disk partition unavailable via the filesystem. For instance, if you’ve mounted a CD-ROM disc, you can’t eject it until it’s umounted:

$ umount /media/cdrom

Always unmount a removable medium before ejecting it or you risk damage to its filesystem. To unmount all mounted devices:

# umount -a

Don’t unmount a filesystem that’s in use; in fact, the umount command will refuse to do so for safety reasons.

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.