Re: [SLUG] Adding Ultra ATA PCI card (ide2) to grub.conf

From: James Marcinek (jmarc1@jemconsult.biz)
Date: Sun Oct 17 2004 - 13:04:06 EDT


slug@nks.net wrote:
> The problem is that if the on-board BIOS intercepts Int13h,
> setting its first drive as BIOS disk 80h in front of the on-southbridge ATA,
> then that disk provides the MBR.
If this were the case I would not even be able to boot because the other system
is a new drive...

>
> Then there can be disk mapping issues between the BIOS and OS kernel.
> On MS-DOS (incl. 95/98/ME), it must boot a primary partition on that disk.
> On NT, it depends if you are using a standard or dynamic disk -
> but it typically won't boot until you change the BOOT.INI mapping.
> On Linux, you do the same, change the LILO or GRUB mapping.
The Ultra ATA PCI card has its own BIOS and it recognizes the hard drive (I'm
trying to follow your train of thought

>
> I can help you if you give me the full disk maping in your system.
> There is not a configuration I can't get to boot with Linux.
The problem is getting the new drive (and card) recognized. You can't see the
device with fdisk. Remember if I take these lines I added in grub, the system
boots as normal but the new drive is not recognized. It's quite possible that I
didn't explain myself properly... The system is currently running here's another
list of the lspci -v command:

02:09.0 Unknown mass storage controller: Integrated Technology Express, Inc.
IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212,
embedded seems (rev 11)
        Subsystem: Integrated Technology Express, Inc.: Unknown device 0001
        Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 11
        I/O ports at 2820 [size=8]
        I/O ports at 2814 [size=4]
        I/O ports at 2818 [size=8]
        I/O ports at 2810 [size=4]
        I/O ports at 2800 [size=16]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [80] Power Management version 2

Here's the motherboard's IDE current (active setting) It's UltraATA-100:
 believe this is the motherboard's IDE:
00:1f.1 IDE interface: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) UltraATA-100 IDE
Controller (rev 02) (prog-if 8a [Master SecP PriP])
        Subsystem: Trigem Computer Inc.: Unknown device 3189
        Flags: bus master, medium devsel, latency 0, IRQ 3
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at 1860 [size=16]
        Memory at 40000000 (32-bit, non-prefetchable) [size=1K]

It doesn't look like it's an I/O conflict.

This is how my systems sees the card right now (with the following grub.conf

title Red Hat Enterprise Linux ES (2.4.21-20.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/
        initrd /initrd-2.4.21-20.EL.img

>From what I've read, it's the kernel doesn't know that there's another IDE
driver, in this case the Ultra ATA card. To overcome this the following ide
definition must be passed to the kernel(ide2=0x2820,0x2816 ide2=autotune):

title Red Hat Enterprise Linux ES (2.4.21-20.EL)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ ide2=0x2820,0x2816
ide2=autotune
        initrd /initrd-2.4.21-20.EL.img

When I reboot the new ide2 is recognized as well as the drive. It's only after
the kernel image is selected when the system has the kernel panic. Since I
haven't had a successful boot I can only give you an fdisk -l on the only ide
hardrive:

   Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1033 8193150 83 Linux
/dev/hda3 1034 1543 4096575 83 Linux
/dev/hda4 1544 4865 26683965 f Win95 Ext'd (LBA)
/dev/hda5 1544 1862 2562336 83 Linux
/dev/hda6 1863 2053 1534176 83 Linux
/dev/hda7 2054 2206 1228941 83 Linux
/dev/hda8 2207 2359 1228941 82 Linux swap
/dev/hda9 2360 4865 20129413+ 83 Linux

You will also notice my /proc/ide:
#ls /proc/ide
drivers hda hdc ide0 ide1 piix

There's no ide2 and ide1 is for /dev/hdc (primary and it's my cdrom)
# ll /dev/cdrom
lrwxrwxrwx 1 root root 8 Jun 15 06:24 /dev/cdrom -> /dev/hdc

The device should be /dev/hde.

I appreciate everyone's input.

James

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:56:54 EDT