Welcome to the Linux Foundation Forum!

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/11/grub2-title-tweaks.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 "$" ] ; then

# LONGNAME="$"

# fi

if [ "$" = "Enter Exact Title You Just Copied" ] ; then

LONGNAME="Enter Desired New Title Here"

elif [ -z "$" ] ; then

LONGNAME="$"

fi

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

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

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

# if [ -z "$" ] ; then

# LONGNAME="$"

# fi

if [ "$" = "Microsoft Windows XP Professional (on /dev/sda1)" ] ; then

LONGNAME="choose between xp pro and tinycore"

elif [ -z "$" ] ; then

LONGNAME="$"

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-need-to-change-title-on-grub2-also-using-grub4dos-hd/

thank you

Categories

Upcoming Training