How to Mount Partitions Through the Terminal

Recent stats show that more than 70% of Ubuntu users use also Windows. The majority of them are dual booting these two operating systems; consequently, they must have NTFS Partitions. In this new post, I’m going to show you how to mount them through Terminal.

If you are a bit familiar with the CLI, you can imagine all the awesome stuff can be done with the Terminal. For instance, you make commands run every time Ubuntu starts, so you can mount partitions automatically.

Firstly, you need to know the name assigned by Ubuntu to the NTFS partition you want to mount . There is several ways to do that; here’s one: Open a Terminal window then type:

sudo fdisk -l

Something like this must appear:

As you can see, my NTFS partition is sda3.

The next thing to do is to create the folder where the partition is going to be mounted. I highly suggest you to mount it in /media folder so that it will appear in the the Unity Launcher. For instance /media/C or /media/D. The C or the D folders… must be created manually. This command line can do that:

cd /media
sudo mkdir C

Now that everything is ready, the command that mounts the NTFS partition is

sudo mount -t ntfs dev/sdaN /media/C

and don’t forget to replace sdaN with the real name of your NTFS partition (sda3 in my case).
Note that the -t parameter specifies the type of the partition to mount; in this case, it is ntfs.

The NTFS must appear in the launcher.