Skip to content

What is umount Linux command?

The Linux umount command is used to safely detach filesystems, freeing up resources and ensuring data integrity. It is a crucial tool for managing storage in a Linux environment.

Terminal window
umount [option] [parameter]
OptionDescription
-aUnmount all filesystems
-fForce unmount
-hPrint help message
-VPrint version information
ParameterDescription
filesystemThe mount point or device to unmount
Terminal window
umount /mnt/data

This command will unmount the file system located at /mnt/data.

Terminal window
umount -f /mnt/data

Forces the unmount of a busy file system located at /mnt/data.

Terminal window
umount /mnt/remote

Unmounts a remote file system that was previously mounted at /mnt/remote.

Terminal window
umount -a

Unmounts all currently mounted file systems.

Terminal window
umount -t nfs /mnt/nfs

Unmounts a network file system of type “nfs” mounted at /mnt/nfs.

{Questions}

  • Unmount a mounted filesystem
  • Force unmount a filesystem
  • Unmount a device or partition
  • Unmount a network share