English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux umount Command

Linux Command大全

The Linux umount command (full English name: unmount) is used to unmount the file system.

The umount command can unmount the file system currently mounted in the Linux directory.

Syntax

umount [-ahnrvV][-t <file system type>][file system]

Parameters:

  • -a Unmount/etc/All file systems recorded in mtab.
  • -h Display help.
  • -n Do not store information in the unmounting process/etc/in mtab file.
  • -r If it is not possible to unmount successfully, try to remount the file system in read-only mode.
  • -t<file system type> Only unmount the file system specified in the option.
  • -v Display detailed information when executing.
  • -V Display version information.
  • [File System] In addition to specifying the file system directly, it can also be represented by the device name or mount point.

Online Examples

The following two commands unmount the file system through device name and mount point, and output detailed information at the same time:

 -v /dev/sda1          Unmount through Device Name  
/dev/sda1 umounted  
 -v /mnt/mymount/      Unmount through Mount Point  
/tmp/diskboot.img umounted 

If the device is busy, the unmount operation will fail. Common reasons for unmount failure include, for example, the current directory of an open shell is a directory within the mounted point:

 -v /mnt/mymount/  
umount: /mnt/mymount: device is busy  
umount: /mnt/mymount: device is busy 

Linux Command大全