Mounting Windows partition in Linux
Noted:
Total: 579
words
I use dual boot (Windows and Linux on the same drive) on my computer. Sometimes,
I need some files that are stored on my Windows partition. To access these
files, I need to switch my partition. But lately, I realized that I waste a lot
of time rebooting my system. I can actually access the files from my Windows
partition in Linux without switching to Windows, using the mount
command.
INFO: You need root
permission to perform this task. If you are already a root
user, or in sudo
group, you are good to go. If not, please contact your
administrator.
Be cautious! If you are not careful about mounting, you may damage your partition and lose your data.
Table of Contents:
First, we need to know which partition we want to mount.
For this, I use the fdisk
command to check the currently available partitions
in my system. As seen in my system, I currently have four main partitions
available (you may have more).
- The first one is my main Linux partition: 510.8G
- The second one is the “Microsoft Reserved Partition (MSR),” a special partition used by Windows OS: 16M
- The third one is my main Windows partition, which I want to mount: 360.7G
- The fourth one is a disk i created in my Windows partition, labeled as my (F) drive: 58.6G

Now I know which partition I want to mount (/dev/sda4). By default, Windows
partitions typically use the New Technology File System (NTFS). If you want
to check the file system type, you can use the lsblk
command.
1
$ lsblk -f /dev/sda4 # you need to enter your partition, to check the type

The next step is where I mount the partition
Usually, in Linux, there is a /mnt
folder for mounting, so I use this. You can
also use another path if you want.
For a clean work environment, I create a directory in my ‘mnt’ folder. You can choose any name you want for the directory:
1
$ sudo mkdir /mnt/windows_mount
In last how i mount the partition
Now for this we have three command formats to finalize our work:
mount -t ntfs /dev/sda4 /mnt/windows_mount
- In this command, we explicitly tell the system the file system type is NTFS.
mount.ntfs /dev/sda4 /mnt/windows_mount
- With this command, we call the mount.ntfs binary, which also handles NTFS file systems.
mount /dev/sda4 /mnt/windows_mount
- In this command, the system automatically analyzes the drive and file system type to perform the mount operation.
I am comfortable with mount.ntfs
but you can use any other type if you prefer.

Now, our Windows partition is successfully mounted in our Linux partition, and we can perform any operation (read, write, execute) that we want.
How to unmount the mounted device
After mounting and completing the work, you will want to unmount the partition.
To do this, simply use the umount
command. This command will unmount the
Windows partition from your Linux partition.

See, our windows mounted partiton successfully unmounted.
Best Practices
Here are the best safety precautions to follow:
- Verify the correct partition or drive before mounting.
- Use the appropriate mount options for the file system type.
- Exercise caution when performing any write operations on the mounted partition.