On Saturday 01 October 2005 18:02, Patrick Shanahan wrote:
> * houghi <[EMAIL PROTECTED]> [10-01-05 10:47]:
> > I have a bit more information. Say I have the Alpha 1 all in
> > /media/data/opensuse/DVD_10.1_A1
> > That means that linux and initard are:
> > /media/data/opensuse/DVD_10.1_A1/boot/loader/linux
> > /media/data/opensuse/DVD_10.1_A1/boot/loader/initrd
> >
> > Now /media/data is /dev/hdf3, so I must enter the following in grub:
> >
> > title DVD_10.1_A1
> > root # Later
> > kernel /opensuse/DVD_10.1_A1/boot/loader/linux
> > initrd /opensuse/DVD_10.1_A1/boot/loader/initrd
> >
> > Now I still need to know what root is. I can do this by counting. I can
> > also do this by lauching `grub` as root and enter:
> > grub> find /opensuse/DVD_10.1_A1/boot/loader/linux
> >
> > This gives me :
> >  (hd3,2)
> >
> > Any way I could do this without entering grub?
>
> Not to my knowledge.
>
> BUT, you said that /media/data is /dev/hdf3 and grub gives you
> (hd3,2).  This is incorrect as I understand.  'f' is the sixth letter
> which would translate to the digit 5, the sixth digit counting zero.
> I believe it should read (hd5,2).
>
> Also remember, the number of hard drives is not relevant for the
> device location.  It *is* the device location on the bus that
> determines the device name, /dev/hdf3, sixth device, third primary
> partition on the device.

No it isn't.

For grub, what's interesting is the ordering the BIOS uses (changeable in the 
device map)

I don't think it would be too much difficulty ripping out the device 
identification bits of grub to a stand-alone utility. But isn't 
"cat /boot/grub/device.map" sufficient?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to