SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-10-19 10:37:14

ejames82
Member
From: oswego, new york
Registered: 2009-05-08
Posts: 11

need to change menu title on grub2

hello,


to be fair, I am letting it be known beforehand that I am posting this on other quality forums as well.  I hope I don't offend anyone and I will share all helpful info.


the problem:

need to change menu title on grub2.  to change this, I am supposed to edit the /etc/grub.d/30_os-prober file.  I can edit the /etc/grub.d/30_os-prober file, but as soon as I update grub and reboot, grub2 still shows Microsoft Windows XP Professional (on /dev/sda1)    my edit to the /etc/grub.d/30_os-prober file does not change, (it appears to be permanently saved, even after rebooting and updating grub2), yet it doesn't show on grub2 menu at boot.  anyone with suggestions or advice would be most appreciated.  could I have a permissions issue, how would I check/verify?

from the beginning:
when the computer boots up, first I get the bios splash screen, then I get the first grub screen.  listed among the entries is this:
Microsoft Windows XP Professional (on /dev/sda1)

I would rather have it say this:
choose between XP Professional and tinycore
below are highly regarded tutorials that show how to do it:
http://ubuntuforums.org/showthread.php?t=1287602
http://ubuntu-install.blogspot.com/2009 … weaks.html

both of these tutorials say the same thing.
1. Run this command to get the current Grub 2 menu entries:
sudo cat /boot/grub/grub.cfg | grep "menuentry" | cut -d '"' -f 2
2. This section appears around line 150 of the file.
3. Copy the exact title you wish to change (Example: Microsoft Windows XP Home Edition ) and place it between the quotes in the first line below. Note the title does not include the portion "(on /dev/sdXX)"
Enter the desired title between the quotes in the second line below - in this example, "Windows XP" would replace "Enter Desired New Title Here".
--------------------------------------------------------------------------------------------------------------------------
# if [ -z "${LONGNAME}" ] ; then
#    LONGNAME="${LABEL}"
# fi

  if [ "${LONGNAME}" = "Enter Exact Title You Just Copied" ] ; then
    LONGNAME="Enter Desired New Title Here"
  elif [ -z "${LONGNAME}" ] ; then
    LONGNAME="${LABEL}"
  fi

-----------------------------------------------------------------------------------------------------------------


here is what I did.  it is the exact edit in the 30_os-prober file:

-----------------------------------------------------------------------------------------------------------------

#  if [ -z "${LONGNAME}" ] ; then
#    LONGNAME="${LABEL}"
#  fi


if [ "${LONGNAME}" = "Microsoft Windows XP Professional (on /dev/sda1)" ] ; then
  LONGNAME="choose between xp pro and tinycore"
elif [ -z "${LONGNAME}" ] ; then
  LONGNAME="${LABEL}"
fi

-----------------------------------------------------------------------------------------------------------------------

I have looked it over a dozen times.  I can't see where I have done anything wrong.  it appears to be correct.

there is more to the story, but I didn't think it was relevant and I didn't want to clutter the thread.  here is a link:
http://reboot.pro/topic/20752-noobie-ne … ub4dos-hd/

thank you

Offline

Help fund CrunchBang, donate to the project!

#2 2015-10-19 13:04:03

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: need to change menu title on grub2

NB we have moved to BunsenLabs forums. (The Crunchbang forums will become read-only soon). You can register there and post your questions.

In this case I think you want to edit the title at the top of the grub screen? What you are trying to do is edit the titles of the menu entries (I'm not sure exactly)

To edit the grub theme, then have a read of Grub theme elements, and look for

title-text    Specifies the text to display at the top center of the screen as a title.


BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo