Mailinglist Archive: opensuse (6210 mails)
| < Previous | Next > |
Re: [opensuse] detecting HD's location for grub
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Sat, 1 Oct 2005 18:17:52 +0200
- Message-id: <200510011817.52477.andjoh@xxxxxxxxxx>
On Saturday 01 October 2005 18:02, Patrick Shanahan wrote:
> * houghi <houghi@xxxxxxxxxx> [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?
> * houghi <houghi@xxxxxxxxxx> [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?
| < Previous | Next > |