Back to the command reference

umount

DisksFundamentals In real Linux

Unmount a file system

Name: umount = unmount (note the missing n)

This command needs a real Linux system; you can practise it in real Linux mode.

Full man page

Description

umount detaches a file system and flushes cached data to the device; do it before unplugging a USB drive. "target is busy" means some process still uses it (find it with lsof), including a shell whose current directory is inside.

Syntax

umount [OPTION]... DIR|DEVICE

Common options

-l / --lazyLazy: detach once no longer busy
-f / --forceForce it (when a network file system is unreachable)
-R / --recursiveUnmount it and everything mounted below
-a / --allUnmount every file system listed as mounted (careful)

Examples

  • $ sudo umount /mnt

    Unmount the file system on /mnt

    Explain

Related