Home » Computers » Software » How to mount a Windows partition onto Ubuntu

How to mount a Windows partition onto Ubuntu

If you have recently installed Ubuntu and switched over to Ubuntu from Windows, there will be many files that you would like to access from your Windows partition, and for that you will need to mount your Windows partition onto Ubuntu. Sometimes Ubuntu mounts the other partition on its own, and sometimes you need to do it manually using some standard Unix commands using the Terminal window. Don’t worry, it’s not as geeky as it sounds.

First of all, execute this command in the Terminal window (Applications > Accessories > Terminal):

sudo mkdir -p /media/c

This is done to attach a directory, for instance C:, to the mounted partition. After this you have to check all the available partitions. The Windows partition in most of the cases is going to be of NTFS format. This is the command you execute to check the partitions:

sudo fdisk -l

On our laptop the data looks something like this:


In our case the partition is “sda1”. To mount this, we need to execute the following command:

sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sda1 /media/c

Your partition is mounted!

To unmount this partition, simply use:

sudo umount /media/c