Access Windows drives from Linux

The process of mounting Windows partitions in any linux is as follows.

All devices in linux are called as “/dev/xxxx”

like /dev/fd0 = floppy
      /dev/usb = usb

therefore  /dev/hda = Hard disk


               /dev/hda = Primary Master
              /dev/hdb = Primary Slave
              /dev/hdc = Secondary Master
              /dev/hdd = Secondary Slave

    Let us consider, you have connected our hard disk as Primary Master.

You can check these thing in BIOS.

So, your hard disk is “/dev/hda”,.

Now comes partitions.

If you have windows partitions, like this. C:, D;  E: F: and G:

so, the names  are as follows.

/dev/hda1 = c:
/dev/hda5 = d:
/dev/hda6 = e:
/dev/hda7 = f:
/dev/hda8 = g:

so, now we need to mount these partitions in linux.

Let us consider your linux is in “/dev/hda9”.

Login as root.

check your partitions names as

fdisk -l

create the following folders as

/windows/c, /windows/d, /windows/e, /windows/f, /windows/f

mount -t vfat /dev/hda1 /windows/c

run the above command and check.

if it works well, you can mount all of them automatically while booting.

The file is “/etc/fstab”. All the entries in the file are mounted automatically while booting.

The structure is as follows.

It has six columns.

device     mountpoint   filesystem  options  scandisk_options

so give as following.

/dev/hda1   /windows/c    vfat   defaults  0   0
/dev/hda5   /windows/d    vfat   defaults  0   0
/dev/hda6   /windows/e    vfat   defaults  0   0
/dev/hda7   /windows/f     vfat   defaults  0   0
/dev/hda8   /windows/g    vfat   defaults  0   0

Last  two zero’s are for not to scandisk them on boot.

save the file and run

mount -a

this will mount all the devices in that file.

Thats all.

This trick works for all linux distros.

Even, now most modern distros like suse, pclinuxos, ubuntu are
mount the windows partitions automatically.

powered by performancing firefox


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s