The mount command on Linux Temporary Mounting
On Linux, you have many options to create new hard disk partitions. No matter which option you choose to create new partitions, you can only use them once you mount them after making a file system on them. There are two ways to mount a partition on Linux: temporary and permanent. In this tutorial, we will learn how to mount a partition temporarily.
We use the mount command to temporarily mount a partition. We can use it to mount any newly created partition or external file system to the Linux file system. It needs two arguments: the absolute path of the partition we want to mount and a mount point. A mount point is an access point of the partition. We can use any directory as a mount point.
The mount command mounts the specified partition to the specified directory. After mounting, anything we save in the mount point directory goes into the mounted partition. Let us understand this process through an example.
Create a new partition. You can use an existing partition. The following image shows a newly created unmounted partition. Since the partition is not mounted, we can use it to save data.

Create two directories. We will use these directories to understand the concept of the mount point.
#mkdir /tmp-mount-point-1 #mkdir /tmp-mount-point-2

Mount the /dev/sda1 partition to the /tmp-mount-point-1 directory.
#mount /dev/sda1 /tmp-mount-point-1

Now, we can use this partition to save data. To verify it, let us create a directory and file. It will save them on the /dev/sda1 partition.
#mkdir dir1 #cat > file1 This is a test file. [Ctrl+D]

To verify it, we can unmount this partition and list this file and directory again. To unmount a partition, we use the umount command. This command needs the mount point's name as an argument.
#umount /tmp-mount-point-1 #ls

As we can see in the above output, the /tmp-mount-point-1 directory is empty. It saved the created file and directory in the partition we mounted on this directory.
To verify it, let's mount the partition on the second directory we created for the testing and list the directory.
#mount /dev/sda1 /tmp-mount-point-2 #ls

As we can see in the above output, both the file and directory we created for testing are available in this directory. It verifies the data we save in the mount point directory saves in the partition mounted on that directory.
This tutorial is part of the tutorial series Linux disk management concepts and configurations. Other parts of this series are the following.
Chapter 01 Linux disk management terminologyChapter 02 File Management Commands in Linux
Chapter 03 Linux file system types explained
Chapter 04 Adding and removing hard disks in VMware Workstation
Chapter 05 List view and find hard disk names in Linux
Chapter 06 The fdisk command on Linux explained
Chapter 07 Manage Linux disk partition with the gdisk command
Chapter 08 The /etc/fstab file on Linux explained
Chapter 09 Linux disk management with the parted command
Chapter 10 The mkfs command on Linux
Chapter 12 The swap space on Linux explained
Chapter 13 How to create a swap partition in Linux
Chapter 14 How to configure LVM in Linux step-by-step
Chapter 15 How to configure RAID in Linux step-by-step
Conclusion
Temporarily mounting partitions is a straightforward and effective way to manage storage. The mount command allows you to access newly created or external partitions through designated mount points.
Author Laxmi Goswami Updated on 2026-01-31