Mount Windows Share In Linux

February 26, 2011
If you are dual booting between Windows and Linux too often, you will want to mount Windows share in Linux. These are the steps you follow to mount Windows share in Linux.

Identify the Windows Partition

Prior to mounting Windows share in Linux, you first have to identify in which partition you have installed Windows.

This is done by running the fdisk -l command.

# fdisk -l | grep NTFS
/dev/sda1   *          63   335565719   167782828+   7  HPFS/NTFS/exFAT

From the output of the command, we now know that Windows is installed in the first partition of the disk namely /dev/sda1.

Mount the Partition

Now you have to mount the partition at an appropriate location using the mount command. Usually, it is /media or /mnt. You can choose which ever directory you want as long as the directory is empty.

I chose to mount it in the /media directory. The exact mount command to mount the Windows share in Linux is as follows.

# mount -t ntfs /dev/sda1 /media

Now you can access all your Windows files in the /media location.

Unmount the Partition

Unmounting is the opposite of mounting. Here you are de-linking the Windows partition - /dev/sda1 from the /media directory. You use the umount command as follows.

# umount /media

You must be super user (root) to mount/unmount a partition.