Name

umount [options] [device | directory] — mount

Synopsis

/bin stdin stdout - file -- opt --help --version

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

$ umount /mnt/cdrom

Always unmount removable media 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 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.