[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: weird stuff about grub2



> On 5 December 2010 18:53, Tom H <tomh0665@gmail.com> wrote:
>> On Sun, Dec 5, 2010 at 5:15 AM, wolf python london
>> <lyh19901223@gmail.com> wrote:
>>
>> The problem comes from the initrd line:
>> menuentry "linux (on /dev/sda11)" {
>> insmod part_msdos
>> insmod ext2
>> set root='(hd0,msdos11)'
>> search --no-floppy --fs-uuid --set f4deab0a-b37c-426f-bb35-f997fd2c9940
>> linux /boot/vmlinuz BOOT_IMAGE=linux
>> root=UUID=f4deab0a-b37c-426f-bb35-f997fd2c9940
>> resume=UUID=23a9b6ac-b275-4066-8223-b0ad9e0051ea
>> initrd (hd0,10)/boot/initrd.img
>> }
>>
>> It should be either "initrd /boot/initrd.img" or "initrd
>> (hd0,11)/boot/initrd.img".
>
> much thanks Tom H.
> yes , and I notice that the config of openSUSE in grub.cfg is
>
> menuentry "Desktop -- openSUSE 11.3 - 2.6.34.7-0.5 (on /dev/sda12)" {
>       insmod part_msdos
>       insmod ext2
>       set root='(hd0,msdos12)'
>       search --no-floppy --fs-uuid --set bff01541-50d4-4428-9c65-4d0cdb25cfb8
>        linux /boot/vmlinuz-2.6.34.7-0.5-desktop
> root=/dev/disk/by-id/ata-WDC_WD10EADS-65M2B0_WD-WMAV51524747-part12
> resume=    /dev/disk/by-id/ata-WDC_WD10EADS-65M2B0_WD-WMAV51524747-part8
> splash=silent quiet showopts
>        initrd /boot/initrd-2.6.34.7-0.5-desktop
>  }
>
> in the "initrd" line, it avoid using the (hd0,msdosx) to refer to the
> position of "initrd". So it works .
>
> and why does the auto-probe  fail ?

You don't need "(hd0...)/" on the initrd line because the "set
root..." line sets the location of "/boot".

So it looks like you've stumbled onto a bug. grub-mkconfig is adding
"(hd0...)/" to the Mandriva initrd line and picking the wrong
"(hd0...)". linux-boot-prober's doing something strange when it probes
the Mandriva partition...


Reply to: