Grub disk: something automatic?

Dotan Cohen dotancohen at gmail.com
Mon Jan 25 22:37:35 UTC 2010


2010/1/26 Karl F. Larsen <klarsen1 at gmail.com>:
> Dotan Cohen wrote:
>>> Â  Â  Â  Â Good luck! And I know you must find the partition which has
>>> the grub on it at /boot/grub/ and call it in grub numbers.
>>> /dev/sda5 = (hd0,4).
>>>
>>
>> Actually, it looks like Grub2 starts numbering disks from 0, just like
>> Grub did. However, Grub2 seems to number partitions from 1 for some
>> reason. Therefore sda5 would be (0,5). Can someone else confirm that
>> this is the case with Grub2?
>>
>        I switched to my Ubuntu 9.10 and looked at grub.cfg which is
> real weird! But here is a snippet from it:
>
>        initrd /boot/initrd.img-2.6.28-11-generic
> }
> menuentry "Ubuntu 9.04, memtest86+ (on /dev/sda9)" {
>        insmod ext2
>        set root=(hd0,9)
>        search --no-floppy --fs-uuid --set
> 6bae2f33-aff5-42ca-b2cc-65cea5be3cc8
>        linux /boot/memtest86+.bin
> }
>
> Notice it says 9.04 (on /dev/sda9) then set root=(hd0,9) which
> is an error when using grub-1.
>
>        Why they do this is anyones guess!
>
> 73 Karl
>
>

That does confirm my suspicions. Thanks.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il




More information about the ubuntu-users mailing list