[gentoo-user] Extra IDE card, drives out of order

2006-03-01 Thread Wes Gray
I added an extra IDE controller card so I could get a 5th drive.  It's a
Silicon Image chipset (CONFIG_BLK_DEV_SIIMAGE).  When I boot into the kernel
with the module included the kernel sees the IDE channels on the new card as
the first ones and the existing IDE channels on my motherboard as the
additional ones.  So to the new kernel it sees:

/dev/hda (newly added drive)
/dev/hdb (no drive)
/dev/hdc (no drive)
/dev/hdd (no drive)
/dev/hde (my old /dev/hda)
/dev/hdf (my old /dev/hdb)
/dev/hdg (my old /dev/hdc)
/dev/hdh (my old /dev/hdd)

The kernel tries to boot off the first drive on the new controller card
instead of my boot drive, which is odd because the kernel that is running is
read off of my old /dev/hda which the new kernel sees as /dev/hde.  So the
BIOS and Grub see them in the correct order.  Hope that makes sense.  Perhaps
I could fix the problem by moving all of my drives to the new IDE card, not
sure and that's not my preferred solution.  My kernel is vanilla 2.6.15.1.

Thanks for any help.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Extra IDE card, drives out of order

2006-03-01 Thread Daniel da Veiga
On 3/1/06, Wes Gray [EMAIL PROTECTED] wrote:
 I added an extra IDE controller card so I could get a 5th drive.  It's a
 Silicon Image chipset (CONFIG_BLK_DEV_SIIMAGE).  When I boot into the kernel
 with the module included the kernel sees the IDE channels on the new card as
 the first ones and the existing IDE channels on my motherboard as the
 additional ones.  So to the new kernel it sees:


Are you using udev? If so, you can use rules to define what you need.
Check:
http://www.gentoo.org/doc/en/udev-guide.xml and
http://reactivated.net/writing_udev_rules.html

They helped me a lot...

 /dev/hda (newly added drive)
 /dev/hdb (no drive)
 /dev/hdc (no drive)
 /dev/hdd (no drive)
 /dev/hde (my old /dev/hda)
 /dev/hdf (my old /dev/hdb)
 /dev/hdg (my old /dev/hdc)
 /dev/hdh (my old /dev/hdd)

 The kernel tries to boot off the first drive on the new controller card
 instead of my boot drive, which is odd because the kernel that is running is
 read off of my old /dev/hda which the new kernel sees as /dev/hde.  So the
 BIOS and Grub see them in the correct order.  Hope that makes sense.  Perhaps

For grub the (hd0,0) entry is always the device the BIOS is booting.
So, its not strange, its default behavior.

 I could fix the problem by moving all of my drives to the new IDE card, not
 sure and that's not my preferred solution.  My kernel is vanilla 2.6.15.1.


You shouldn't, try booting from a LiveCD or so and writting your rules...

 Thanks for any help.
 --
 gentoo-user@gentoo.org mailing list




--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Extra IDE card, drives out of order

2006-03-01 Thread Wes Gray
On Wed, Mar 01, 2006 at 04:22:41PM -0300, Daniel da Veiga wrote:
 Are you using udev? If so, you can use rules to define what you need.
 Check:
 http://www.gentoo.org/doc/en/udev-guide.xml and
 http://reactivated.net/writing_udev_rules.html

I don't think that will work.  The rules would reside in /etc on my boot drive,
and the kernel would never see them because it isn't seeing the boot drive
as the boot drive, it sees it as /dev/hde.  I think the change has to be
something in the kernel.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Extra IDE card, drives out of order

2006-03-01 Thread Wes Gray
On Wed, Mar 01, 2006 at 07:49:33PM +, Peter Ruskin wrote:
 Remove the new card and drives then rebuild your kernel.  What 
 you're looking for is IDE chipset support/bugfixes - boot offboard 
 first (make sure this is not set).

I didn't have that set.
-- 
gentoo-user@gentoo.org mailing list