LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Problem recognizing hard drive (https://www.linuxquestions.org/questions/linux-hardware-18/problem-recognizing-hard-drive-196661/)

Pontius 06-23-2004 12:38 AM

Problem recognizing hard drive
 
I am running RH9, with a 2.6.7 kernel. Dual booting Win2K and linux.

Windows is the master on IDE channel 1
Linux is the slave on IDE channel 1

I have a data drive that is NTFS that I wan't both OSes to be able to see. It is the Master on IDE channel 2, and the cdrom is slave on IDE channel 2.

When I boot into windows, I can see it fine (why can't linux be this easy?)

I am pretty familiar with mounting and stuff like that, but I am realizing that linux cannot even see the drive.

I am pretty positive that it is on /dev/hdc, because /dev/hdd is the cdrom.

But I would like to make absolutely sure, because when I do:

# fdisk /dev/hdc

I get:

# Unable to open /dev/hdc

How can I determine what device is mapped to this hard drive, because it seems that there is something wrong if fdisk cannot even see it.

Any advice? Thanks

idaho 06-23-2004 12:51 AM

You can tell which drives are mapped as which device by inspecting /proc/ide.

Pontius 06-23-2004 01:09 AM

Nevermind, I got it figured out. It's actually pretty interesting...

When I originally configured everything, I did not have the third hard drive installed. So my cdrom was on hdc, and the boot entry in grub.conf looked like this:

title RH9 Kernel (2.6.7)
root (hd1,0)
kernel /bzImage-2.6.7 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.6.7.img

So when I installed the new drive, hdc was the drive, and not the cdrom. so the line:

hdc=ide-scsi

was messing it up. I changed it to:

hdd=ide-scsi

so hdc was left alone. I can now mount the drive fine.

Thanks


All times are GMT -5. The time now is 07:36 AM.