On Mon, 22 Jan 2001, Pradeep Sangunni wrote:

> I have to two hardisks fixed to  my pc one for windows and the other for
> linux 
> is it possible for me to access the windows hard drive from linux
> How do i get to do this?
> Thanx
>  

Assuming it's an IDE hard disk, this is the general access method in
Linux.

Your primary hard disk is called /dev/hda. This is the hard disk that is
connected as master to the first IDE controller on your
motherboard. If you look onto the motherboard (if u're adventerous !),
you'll see the marking ide0 (or sometimes ide1), & that's your first IDE
controller. U can connect upto 2 devices using a single IDE controller.
The first one is called Master & the second one is called slave. These
can be any IDE devices (such as Hard Disk, CD-ROM Drive ..etc.).
All the modern motherboards come with 2 IDE controllers, thus allowing u
to connect upto 4 IDE devices (eg. 4 Hard Disks, 3 HDDs + 1 CD Drive
..etc.)

Thus:

First IDE Controller:
        Master - /dev/hda
        Slave  - /dev/hdb

Secondary IDE Controller:
        Master - /dev/hdc
        Slave  - /dev/hdd

Partitions in /dev/hda are numbered as /dev/hda1, /dev/hda2 ...etc.
Similarly, for /dev/hdb, it is /dev/hdb1, /dev/hdb2 ...etc.

Well, for your qn, yes, it's possible to access your windows Partition
from Linux. Use fdisk -l
That'd list out all the partitions of all the connected HDDs. Look for
FAT16/32 & that's your Windows partition. Then mount that partition as:

mount /dev/hda? /mnt/windows

Replace ? with your partition number.

Sreeji


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to