Latest web development tutorials

Linux umount command

Linux command Daquan Linux command Daquan

Linux umount command to unmount the file system.

umount removable currently hanging in the Linux file system directory.

grammar

umount [-ahnrvV][-t <文件系统类型>][文件系统]

Parameters:

  • -a Dismount / etc all file systems / mtab recorded.
  • -h displays help.
  • When -n Do not dismount the information is stored in / etc / mtab file.
  • -r If you can not successfully unmounted, try to remount read-only mode in the file system.
  • -t <file system type> Only dismount option specified in the file system.
  • -v Displays detailed information when executed.
  • -V Display version information.
  • [File system] In addition to directly specify a file system, you can also use the device name or hanging point to the file system.

Examples

The following two commands are unmount the file system by the device name and mount point, and output details:

# umount -v /dev/sda1          通过设备名卸载  
/dev/sda1 umounted  
# umount -v /mnt/mymount/      通过挂载点卸载  
/tmp/diskboot.img umounted 

If it is busy, the uninstall will fail. Common Causes uninstall failed because of an open shell in the current directory is a directory mount point:

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

Linux command Daquan Linux command Daquan