|
From: | Richard Owlett |
Subject: | Re: Partition labels in GRUB2 menu? |
Date: | Thu, 08 May 2014 07:08:44 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1 |
Jordan Uggla wrote:
On Tue, Apr 29, 2014 at 6:42 AM, Richard Owlett <address@hidden> wrote:During Debian installs I use manual partitioning. I give the partition being created a meaningful label. I would like that label to appear in Grub's menu. How? E.G. I currently have 4 flavors of Debian Wheezy installed (different desktops). Currently the menu shows long effectively meaningless string followed by "cryptic" partition designator (sa6, sa7, sa8, or sa9). I would like the designator to be meaningful (i.e. GNOME, KDE, LXDE, or XFCE). TIAModify GRUB_DISTRIBUTOR= in each installation's /etc/default/grub , whatever string you give for GRUB_DISTRIBUTOR will be used in the menu entry titles. http://www.gnu.org/software/grub/manual/grub.html#Simple-configuration
That doesn't accomplish my goal.I've reread .../manual/grub.html. I suspect GRUB2 cannot, perhaps by design, do what I want.
I wish, that after adding/deleting an OS, update-grub yield a grub.cfg of form:
### BEGIN /etc/grub.d/10_linux ###menuentry 'Label_sda1' --class debian --class gnu-linux --class gnu --class os {
... set root='(hd0,msdos1)' ... } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Label_sda6" { ... set root='(hd0,msdos6)' ... } menuentry "Label_sda7" { ... set root='(hd0,msdos7)' ... } menuentry "Label_sda8" { ... set root='(hd0,msdos8)' ... } menuentry "Label_sda9" { ... set root='(hd0,msdos9)' ... } ### END /etc/grub.d/30_os-prober ### There are three implied restrictions: 1. the first OS listed on menu shall be the OS on /dev/sda1 2. the OS on /dev/sda1 shall be the default 3. all additional OS shall be in partition number order
[Prev in Thread] | Current Thread | [Next in Thread] |