Umount Linux Commands

What is Linux umount Command?

Explanation

umount COMMAND:

Unmount command is used to detach or disconnect the external disc or drive connected to the computer system.

SYNTAX :


umount [options] filesystem

OPTIONS:


-V Print version and exit.
-h Print help message and exit.
-v Verbose mode.
-n Unmount without writing in /etc/mtab.
-r In case unmounting fails, try to remount read-only.
-d In case the unmounted device was a loop device, also free this loop device.
-a All of the file systems described in /etc/mtab are unmounted.
-t vfstype Indicate that the actions should only be taken on file systems of the specified type. More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken.
-O options Indicate that the actions should only be taken on file systems with the specified options in /etc/fstab. More than one option type may be specified in a comma separated list. Each option can be prefixed with no to specify options for which no action should be taken.
-f Force unmount (in case of an unreachable NFS system).
-l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore.

EXAMPLE:


  1. To detach the file systems (e.g) USB / Hard disk
    umount /dev/cdrom

Ask Questions

Ask Question