help-grub
[Top][All Lists]
Advanced

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

Re: grub-install to a partition


From: Barry Jackson
Subject: Re: grub-install to a partition
Date: Fri, 08 Oct 2010 11:51:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-UK; rv:1.9.2.12pre) Gecko/20101007 Lightning/1.0b2 Lanikai/3.1.6pre

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
address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]