On 08/10/10 10:24, Goh Lip wrote:
On Friday 08,October,2010 04:29 PM, Barry Jackson wrote:
I can boot the system directly with:-

menuentry 'Mandriva 2010.1 x86-64' {
linux (hd0,21)/boot/vmlinuz
initrd (hd0,21)/boot/initrd.img
}

...but that uses sdaxx device identifiers which I am trying to avoid in
favour of labels.

Is there a later version that fixes this?


Use this

menuentry 'Mandriva 2010.1 x86-64' {
search --no-floppy --label --set 2010_1_64_root
linux /boot/vmlinuz root=LABEL=2010_1_64_root ro
initrd /boot/initrd.img
}


Goh Lip


_______________________________________________
Help-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-grub


Thanks Goh,
But I can't get that entry to display in the menu.
I don't see any syntax errors, maybe you do?
I added the first two of these for testing:-


menuentry 'Mandriva 2010.1 x86-64 root' {
search --no-floppy --label --set 2010_1_64_root
linux /boot/vmlinuz root=LABEL=2010_1_64_root ro
initrd /boot/initrd.img
}

menuentry 'Mandriva 2010.1 x86-64 multiboot' {
search --no-floppy --label --set 2010_1_64_root
multiboot /boot/grub/core.img
}

menuentry 'Mandriva 2010.1 x86-64' {
linux (hd0,21)/boot/vmlinuz
initrd (hd0,21)/boot/initrd.img
}

The multiboot entry displays OK and works, but your suggestion ('Mandriva 2010.1 x86-64 root') does not appear in the menu for testing!

Any ideas?

Cheers - Barry

_______________________________________________
Help-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to