On 4/18/06, Michael Sullivan <[EMAIL PROTECTED]> wrote:
> On Tue, 2006-04-18 at 19:37 -0500, Michael Sullivan wrote:
> > Is there a way to find out which hard drive grub considers to be (hd0)
> > and so on?  The guy I'm helping to install Gentoo is having trouble with
> > grub.  grub detected /dev/hdd, /dev/sda and /dev/sdb.  At this point
> > we're treating them as (hd0), (hd1) and (hd2).  Everything seems right
> > to me, but it won't work in practice.  How do we find out what is what?
>
> Is the listing in /boot/grub/device.map correct even if grub.conf isn't?

Not sure what you mean here...

The device.map file can be used when you 'install' the grub MBR and
(possibly) the stage1.5 files.  So when you do a "setup hd0", it knows
that corresponds to /dev/sda in the operating system.  It should match
the device order used by the system BIOS.

At boot time, the ordering of hd0, hd1, etc is dependant upon the
system BIOS.  hd0 is virtually always the drive being used to boot.

>From the grub documentation:

"   Note that GRUB does _not_ distinguish IDE from SCSI - it simply
counts the drive numbers from zero, regardless of their type. Normally,
any IDE drive number is less than any SCSI drive number, although that
is not true if you change the boot sequence by swapping IDE and SCSI
drives in your BIOS."

One option you have is to drop into the grub shell on boot, and do
something like:

find /grub/stage2

That should list all drives and partitions where /grub/stage2 is found.

HTH,
-Richard



>
> --
> [email protected] mailing list
>
>

-- 
[email protected] mailing list

Reply via email to