[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How ro tweak Grub2 menu
From: |
Dale R. Worley |
Subject: |
Re: How ro tweak Grub2 menu |
Date: |
Sun, 31 Dec 2017 10:19:18 -0500 |
Richard Owlett <address@hidden> writes:
> I multi-boot among multiple configurations of Debian.
> Each partition has a meaningful label.
> Instead of (or in addition to) the device id (e.g./sda3) can the menu
> display the partition's label (e.g. "Full Stretch")?
Just manually edit the first argument of the "menuentry" lines in
/boot/grub2/grub.cfg, which is the string that will be displayed in the
menu. A typical line looks like this:
menuentry 'Fedora 19 (3.14.27-100.fc19.x86_64) (Hobgoblin00-RootF19)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/vmlinuz-3.14.27-100.fc19.x86_64--188c0958-d8f1-41dd-a64c-d7f468c80737'
{
which displays:
Fedora 19 (3.14.27-100.fc19.x86_64) (Hobgoblin00-RootF19)
Of course, (1) check your work carefully, (2) make a backup copy of
grub.cfg before editing it, and (3) have Knoppix or some other rescue
method available first.
Dale