Example /etc/fstab file line entry;
Code:
/dev/sda1 /media/Windows ntfs-3g auto,users,uid=0,gid=500,umask=000,rw 0 0#
mount /dev/sda1 /mnt/windows
now you can access your ntfs file in /mnt/windows directory.
or
Step 1: Type the below command in the Terminal as root
fdisk -l
Edit: It is the letter 'L' in lowercase. Some users thought it was 1(numeric one). There is a space between fdisk and -l.
You will see tabular data like below.
We only want information from Device and System columns. In the first row, we see a device /dev/sda1 with the file system HPFS/NTFS. This is the Windows XP C drive. Let's access this drive using the mount command. The mount command helps us to attach the Windows C Drive to any directory on the Linux file system.
Step 2:
mount /dev/sda1 /mnt
This will attach the Windows C drive to the /mnt directory. Now you can see the files and folders in your Windows C Drive at /mnt. You can add an entry in your fstab file to mount the Windows directory every time you boot Linux.