Linux

Tutorial To Mount And Unmount Partitions in Linux [ Command]

Tutorial To Mount And Unmount Partitions in Linux [ Command]

Insight: Commands To Mount And Unmount Partitions in Linux

In this tutorial, we are going to show you the method to mount and unmount partitions in Linux. Mounting is an automatic task in Linux but some time we encounter errors while mounting the partitions or accessing the partitions in Linux.

Tutorial To Mount And Unmount Partitions in Linux [ Command]

Mount Partitions In Linux

The first step is to check the active partitions. Run the following command to check the partitions.

Lsblk

The result will display all the system partitions in your Linux system.

Now, we will use udisksctl command to mount the partitions. The basic syntax of this command is:

udisksctl [command]

Let’s mount the partition now. Well, for this tutorial we are going to the mount partition sdb3. Run the following command in your terminal.

udisksctl mount -b /dev/sdb3

 

How to Unmount a Disk in Linux

To unmount a disk , you need to run the following command.

Command syntax:

udisksctl unmount -b /dev/sd (partition)

Now, let’s unmount the partitions. Execute the following command in your system.

udisksctl unmount -b /dev/sdb3

Now, we will see another method to mount and unmount the partitions in Linux. It’s kind of traditional method. We will use mount and unmount command.

If we want to mount the disk using this method, use the following line:

sudo mount /dev/sdb3 /mnt

To unmount the partition, Run the following command :

sudo umount /dev/sdb3

 



READ THIS ALSO  Essential Tools to Easily Create Your Own Custom Linux OS