This one's a quick how-to about mounting Windows drives from Linux(Fedora 7).
From the Fdisk manual pages:
"Hard disks can be divided into one or more logical disks called partitions. This division is described in the partition table found in sector 0 of the disk. There may be reasons of security, ease of administration and backup, or testing, to use more than the minimum number of partitions".
You would have seen C Drive, D Drive, E Drive, etc on Windows. They are also known as logical disks and partitions. Users wanting to migrate to Linux often install dual operating systems on their desktop computers. Many of you would have installed both Windows and Fedora GNU/Linux on your computers. When you boot Windows you don't see the Linux drives and when you boot Linux you don't see Windows drives.
You can access the Windows drives from Linux using fdisk and mount commands. The procedure to set this up is very easy on Fedora 7. I did it in only two steps.
The fdisk manual page says, "fdisk (in the first form of invocation) is a menu driven program for creation and manipulation of partition tables. It understands DOS type partition tables and BSD or SUN type disklabels". Let's use the intelligence of fdisk.
Step 1: Type the below command in the Terminal as root
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.
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.