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

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/unmount-disk-in-linux-ubuntu-centos-with-umount-command/
PINTEREST
PINTEREST
INSTAGRAM

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.

Help

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

Help

Help

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.

Verbose

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.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/unmount-disk-in-linux-ubuntu-centos-with-umount-command/
PINTEREST
PINTEREST
INSTAGRAM
LEARN MORE  How To Use Fsutil To Check and Repair File System In Windows

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)