LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   which file in /dev is my windows drive (https://www.linuxquestions.org/questions/linux-general-1/which-file-in-dev-is-my-windows-drive-419046/)

vkmgeek 02-24-2006 06:41 AM

which file in /dev is my windows drive
 
hi
I m using dual OS in my system.
I want to mount windows directory in linux.
I know mount command is there.
But i don't know which file should be given as input?
I mean how would I know /dev/hda1 or (/dev/and which file) indicates C drive?

TB2 02-24-2006 06:52 AM

depending on what harddisk you installed your Windows:
Is it an IDE harddisk on IDE 1 Master it could be "/dev/hda1"
Is it an IDE harddisk on IDE 1 Slave it could be "dev/hdb1"
Is it a SATA harddisk it could be "/dev/sda1" or "/dev/sdb1"

Just try, and you will see what works, and what doesn't...

ethics 02-24-2006 06:53 AM

login as root (with environment)
Code:

su -
run:
Code:

fdisk -l
that'll list your partitions, from there you can work out which it is by filesystem type and size.

If you get errors try
Code:

fdisk -l /dev/hda
or /dev/hdb etc.

that's for IDE, for SATA replace hd with sd


All times are GMT -5. The time now is 02:50 AM.