O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required