Grub2 use user friendly(er) names
Goh Lip
g.lip at gmx.com
Thu May 12 05:10:47 UTC 2011
On 05/12/2011 11:02 AM, FireSam wrote:
> I don't know if this would work or not but I'll give it a try. How can I
> get GRUB2 or whatever decides to choose as the label entries for the
> menu to use better (for me) names/labels than the drive number
> (sdd,sda,etc...). The reason being if I use an external drive or for
> other reasons the numbering changes I want to know which instalation I
> am booting into. I think that is the reason ubuntu (or GRUB2 I don't
> know who does it) uses uuid to identify the partitions so the computer
> does'nt mix it up. I wan't to take it a step further and make it so I
> don't get mixed up.
>
> Thanks.
>
Ubuntu's grub2 is already automatically using UUID to boot and there is
no problem with external drives. There is no need to manually specify or
add in the external drives in the grub.cfg. If it is not there, just
make sure the external is plugged in and at terminal, "sudo
update-grub". This should add in the external drive at the grub menu.
But since you asked about using Label to boot, the following works too.
search --no-floppy --label --set=root xxx
linux /boot/vmlinuz-2.6.3x-xx-generic root=LABEL=xxx ro
initrd /boot/initrd.img-2.6.3x-xx-generic
Regards - Goh Lip
More information about the ubuntu-users
mailing list