Rename GRUB entry

Solved
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.

5 answers

  1. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
     
    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)
    0
    1. neo-genesis Posted messages 184 Status Member 72
       
      I forgot to mention that my version of grub was 1.99-21.
      0
    2. neo-genesis Posted messages 184 Status Member 72
       
      1.98
      0
  2. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
     
    Hello,

    https://help.ubuntu.com/community/Grub2/CustomMenus

    --
    Zen my nuggets ;-)
    Do something for the environment, close your windows and adopt a penguin. <('')
    0
    1. neo-genesis Posted messages 184 Status Member 72
       
      Thank you zipe31, your documentation seems quite clear. However, I have "10_linux_proxy" instead of "10_linux". Is that normal?
      0
    2. neo-genesis Posted messages 184 Status Member 72
       
      But I find the same content as in the doc, so it can't be that serious. I'm just curious.
      0
    3. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
       
      I don’t know what to say, personally since the abandonment of menu.lst and its relative simplicity, I have given up any idea of messing with grub, too complex, proof that to rename an entry, it's a complete mess ;-(
      0
    4. neo-genesis Posted messages 184 Status Member 72
       
      That's EXACTLY it! I'm a bit lost lol. No matter what changes I make, nothing changes... I'm about to give up, even with a graphical tool (grub-customizer) nothing happens, I absolutely don't understand where my mistake is.
      0
  3. neo-genesis Posted messages 184 Status Member 72
     
    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."
    0
  4. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
     
    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. <('')
    0
  5. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
     
    Hello,
    there is a graphical tool under Ubuntu to modify grub
    http://doc.ubuntu-fr.org/grub-customizer
    see you later

    --
    FC 19 - Mandriva 2010 -Debian 6.0-
    The best things require patience. (JC ANGLADE)
    0
    1. jeanbi Posted messages 15399 Registration date   Status Contributor Last intervention   2 383
       
      re,
      I don't understand, personally I modify the file /etc/default/grub and confirm with
      depending on the distributions
      under Ubuntu
      sudo update-grub 
      which launches a script that runs the command
      grub2-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 line
      set 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 file
      sudo update-grub 
      and you reboot if it works well now we are going to modify your entries

      a+
      0
    2. Anonymous user
       
      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.
      0
    3. neo-genesis Posted messages 184 Status Member 72
       
      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...
      0
    4. Anonymous user
       
      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.
      0