How To Unmount Disk in Linux, Ubuntu, CentOS with umount Command – POFTUT

How To Unmount Disk in Linux, Ubuntu, CentOS with umount Command

Linux distributions like Ubuntu, Debian, CentOS, RHEL and others uses disks by mounting them to the file system. We have all ready examined mount command in the following tutorial. In this tutorial we will learn how to umount the disk in a Linux system.

Linux Mount Command Tutorial With Examples

Before Unmount

Before unmount we should be sure that all changes are written to the file system and disk. So we need to close opened files those resides in file system we want to unmount.


umount command help information can be listed with --help like below.



Umount Specified Partition

We will start by unmounting specified partion. We can unmount just providing the partition path. In this example we will unmount /dev/hda1. We need root privileges in order to complete this job.

Unmount All Partitions

If we need to unmount all partitions of file systems currently mounted to the Linux system. We will use -a option which means all .

Force To Unmount

In some cases write operation can be resume for a long time and we need to unmount file system. So we can force umount  command with -f option like below.


If umount failed we can find detailed information about the reason. We can use -v option which will list detailed information while try to unmount.

echo '

LEARN MORE  How To Use Chkdsk /F Command?

Leave a Reply

Your email address will not be published. Required fields are marked *