Identify the Windows PartitionPrior 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 | 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
Mount the Partition
Now you have to mount the partition at an appropriate location using the
mountcommand. Usually, it is
/mnt. You can choose which ever directory you want as long as the directory is empty.
I chose to mount it in the
/mediadirectory. The exact
mountcommand 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
Unmount the Partition
Unmounting is the opposite of mounting. Here you are de-linking the Windows partition -
/mediadirectory. You use the
umountcommand as follows.
# umount /media
You must be super user (root) to mount/unmount a partition.