Rename GRUB entry
Solved
neo-genesis
Posted messages
184
Status
Member
-
neo-genesis Posted messages 184 Status Member -
neo-genesis Posted messages 184 Status Member -
Good evening everyone.
I am currently running Ubuntu 12.04 in a multi-boot configuration with several operating systems, and I would like to rename the GRUB entries that appear on startup. I would like to know if the action is done directly in the /boot/grub/grub.cfg file. I know that it is generated from another file automatically, but while searching through the PC and on the net, I can only find this file that relates to it the most.
Is it indeed in this file that I should modify the entries so that they display as I wish?
Thank you for your responses.
I am currently running Ubuntu 12.04 in a multi-boot configuration with several operating systems, and I would like to rename the GRUB entries that appear on startup. I would like to know if the action is done directly in the /boot/grub/grub.cfg file. I know that it is generated from another file automatically, but while searching through the PC and on the net, I can only find this file that relates to it the most.
Is it indeed in this file that I should modify the entries so that they display as I wish?
Thank you for your responses.
5 answers
-
Hello,
you need to modify the file
/etc/default/grub
the documentation is indeed well done
http://doc.ubuntu-fr.org/grub2
see you+
--
FC 19 - Mandriva 2010 -Debian 6.0-
The best things require patience. (JC ANGLADE) -
Hello,
https://help.ubuntu.com/community/Grub2/CustomMenus
--
Zen my nuggets ;-)
Do something for the environment, close your windows and adopt a penguin. <('') -
Here's the translation: "I just noticed an interesting element... at the start of grub, I see version 1.98 displayed at the top, but when I do a grub-install -v, 1.99 shows up. Could this cause problems?
I know that both versions are supported by grub2, but you never know; maybe my problem comes from that." -
Re-
Here, I just found this video that does this:
In this video, I'll show you how I renamed my GRUB2 menu entries, also changed the default OS of choice when GRUB presents the boot up choice.
To test...
--
Zen my nuggets ;-)
Do something for the environment, close your windows and adopt a penguin. <('') -
Hello,
there is a graphical tool under Ubuntu to modify grubhttp://doc.ubuntu-fr.org/grub-customizer
see you later
--
FC 19 - Mandriva 2010 -Debian 6.0-
The best things require patience. (JC ANGLADE)-
-
re,
I don't understand, personally I modify the file /etc/default/grub and confirm with
depending on the distributions
under Ubuntusudo update-grub
which launches a script that runs the commandgrub2-mkconfig -o /boot/grub2/grub.cfg
command to type under Fedora for example
if nothing has changed it's because the confirmation and recreation of grub.cfg hasn't been done
well he will test something
sudo gedit /boot/grub/grub.cfg
and here he will only modify the lineset timeout=5
and change the number let's say 20 it's the waiting time you validate and you reboot and if it changes it's that the grub.cfg file is not updated during the modifications
now we are going to test
sudo gedit /etc/default/grub
and we modify the timeout line to 10
we validate
and recreate the filesudo update-grub
and you reboot if it works well now we are going to modify your entries
a+ -
Hello,
Zipe31's video said it all. The Linux entries are defined in 10_linux and the Windows entries are in 30_os-prober.
All you need to do is modify what is inside the quotes after title in the "linux_entry" function. You can write whatever you want in that space, delete variables, etc...
A (sudo) update-grub saves all that. -
I completely agree with you, I have seen and read only that everywhere I looked, but I assure you that nothing is happening. As I mentioned earlier, I see version 1.98 on the grub2 boot screen, but when I run grub-install -v, I see 1.99. So I think the problem might come from that. I will attempt to reinstall grub and see what happens.
One small question before that, is it enough to simply run a removal with sudo apt-get remove --purge followed by sudo apt-get install grub2? Since this is a sensitive element, I don’t want to do anything reckless... -
Re,
I have never tested uninstalling grub... I even thought (maybe mistakenly) that it was impossible unless overwritten by another loader...
You have some additional information here:
http://ubuntuforums.org/showthread.php?t=1581099
As for the operation of modifying 10_linux, I just tested it and it works.
-