How to Mount a Windows Partition in Ubuntu or Xubuntu

I use a dual boot system with both Windows XP and Xubuntu Linux installed on different partitions. You cannot access the Linux partition from Windows, but you can access the Windows partition while running Xubuntu or Ubuntu Linux.

The process of accessing an internal or external drive in Ubuntu is called mounting. You have to mount the drive to be able to read and write its content.

Using Ubuntu it's easy to mount your Windows partition (an internal drive). All you need do is access it via the 'Places' menu usually found in the top sidebar on the desktop. When I switched from Ubuntu to Xubuntu in order to make a slow computer run faster, however, I realized that the icon of the Windows partition has gone missing from the 'Places' menu.

I'm writing this guide for any beginner Ubuntu or Xubuntu user to teach you how to mount (access) your Windows or any internal drive in Ubuntu Linux. Along the way, you'll also learn a few more helpful commands from checking out partition details to becoming the superuser.

How to mount Windows partition in Ubuntu

To mount the Windows partition in Ubuntu you need to open the terminal and type a few simple commands. Go to Applications -> Accessories -> Terminal. Your terminal opens and looks something like this (with the prompt containing your username):

Terminal in Xubuntu
Terminal in Xubuntu

Becoming the superuser in Xubuntu

Type the command:

sudo /bin/bash

When you're asked for your root password type it and press enter. You'll notice that the prompt changed to reflect that you are now accessing the system as root. This means that you are now the superuser and have the power to do whatever you want. Any command you type in the terminal now can potentially harm the system.

You see, one of the good things about Linux is that as a normal user you have absolutely no way to damage the system. Commands that could do that will not be executed because you have no right to execute them. As the superuser, however, be very careful with what you type as your authority is no longer questioned.

Now, you see something like this:

Terminal accessed as Root.
Terminal accessed as Root.

Creating a folder in Xubuntu

Next thing you need to create a new folder under /media directory that will be used to mount the Windows partition. Note, partitions in Ubuntu are treated as folders.

Type in the terminal:

mkdir /media/wdisk

You've just created a folder named 'wdisk' using the mkdir (make directory) command. This folder will be used to mount your Windows partition. Don't worry if you don't get any confirmation that your command was successfully executed. In Linux you usually don't.

The terminal window looks like this:

I've just made a new folder.
I've just made a new folder.

Finding out about your partitions in Xubuntu

Before we run the actual command that will mount the Windows partition, we need a bit more information about the partition itself. We have to find out the name of the Windows drive as well as the file system used on the drive.

In terminal type this command:

fdisk -l

In the picture below, you can see that in my case the Windows drive is /dev/sda1 and the file system is FAT32. Chances are your file system will be NTFS.

Finding out partition info.
Finding out partition info.

Mounting an NTFS drive in Xubuntu

If your drive uses NTFS file system, type this command in the terminal substituting the /dev/sda1 parameter appropriately based on your findings:

mount -t ntfs-3g /dev/sda1 /media/wdisk -o force

Mounting an FAT32 drive in Xubuntu

If your Windows partition uses FAT32 file system, type this command in the terminal substituting /dev/sda1 appropriately based on your findings:

mount -t vfat -o umask=000 /dev/sda1 /media/wdisk


Congratulations! You have successfully mounted your Windows partition in (X)ubuntu.

Now, go to Places -> File System -> Media -> wdisk to find and access the drive. Also, make sure you close the terminal to terminate the root access.

Files System
Files System

Did you find this tutorial useful.

See results without voting

More by this Author

Comments 7 comments

Stan Fletcher profile image

Stan Fletcher 5 years ago from Nashville, TN

I'm not a computer techie kind of a guy, so I must tell you when I read your title I thought you were telling people how to put windows in huts for 2 different tribes in Africa. :)

Haunty profile image

Haunty 5 years ago from Hungary Author

Well, it depends on how you read it I guess. I don't mind it though. It just makes it even better for seo. But wait a sec. Is this considered a misleading title then? Please, don't report me! :)

Stan Fletcher profile image

Stan Fletcher 5 years ago from Nashville, TN

Just having a bit of fun with worries.

Haunty profile image

Haunty 5 years ago from Hungary Author

lol Stan. I know. ha ha And thanks for poking some fun in my neighborhood. :)

Stan Fletcher profile image

Stan Fletcher 5 years ago from Nashville, TN

Just wanted to make sure you got the joke. I think ALL of my jokes are funny, and some people have the gall to disagree! :)

Haunty profile image

Haunty 5 years ago from Hungary Author

All of your jokes are funny when I read them. You can count on me. I recognized it as funny immediately. Even if I would have never thought this hub was going to invite a joke. ;)

Questioner 4 years ago

Would be even more helpful to have a short explanation of each constituent of the commands (especially for the options).

But thanks for your explanation so far.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.

    Click to Rate This Article