Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: I want to change the order of my grub2 menu

  1. #1
    Join Date
    Feb 2019
    Beans
    36

    I want to change the order of my grub2 menu

    I've tried 6 different methods from various posts and none of them worked.

    In the /etc/default/grub file I've changed the GRUB_DEFAULT= value from "saved" to "6" to 6 without the quotes. I run the update-grub command after the change but when I reboot, the menu is the same and the cursor is always at the top.

    Please help.

    Here is the whole /etc/default/grub file:

    Code:
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    GRUB_DEFAULT=6
    GRUB_TIMEOUT_STYLE="hidden"
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    
    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL="console"
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE="640x480"
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID="true"
    
    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"
    
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    
    GRUB_SAVEDEFAULT="true"
    Last edited by t5404tmz; April 28th, 2021 at 07:55 AM.

  2. #2
    tea for one is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    May 2008
    Beans
    1,551
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: I want to change the order of my grub2 menu

    Grub2 is not the easiest application to configure but you could try this:-

    Code:
    GRUB_TIMEOUT_STYLE=menu
    Code:
    sudo update-grub

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: I want to change the order of my grub2 menu

    Is it in the sub-menu or the menu.
    Some just use the description as the default, but it must be exact, so copy from your default grub menu entry.
    https://help.ubuntu.com/community/Gr...ecific_Entries

    Some also copy 40_custom to 06_custom and then copy entire boot stanza for entry you want as first. Scripts are processed in number order so 06_ will be first entry. You can also turn off os-prober, if desired when manually editing you added boot stanzas.
    When you are finished putting all of your custom boot entries in your /etc/grub.d/06_custom file, it needs to be chmodded to make it executable,
    sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
    sudo cp -a /etc/grub.d/40_custom /etc/grub.d/06_custom
    sudoedit /etc/grub.d/06_custom
    sudo chmod 755 /etc/grub.d/06_custom
    or
    sudo chmod a+x /etc/grub.d/06_custom
    sudo update-grub

    https://help.ubuntu.com/community/Grub2/CustomMenus
    http://ubuntuforums.org/showthread.php?t=2076205
    Last edited by oldfred; April 28th, 2021 at 03:48 PM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Oct 2018
    Beans
    67

    Re: I want to change the order of my grub2 menu

    I use Lubuntu 20.04 with the qt desktop. I use grub custmizer to configure my grub menu. Besides being able to change the order the entries appear in the grub menu, use can rename the entries, if you need to. I have lubuntu, which shows in menu as ubuntu, but also have ubuntu on my computer, so hard to know which is which unless I renamed mine to lubuntu. I have used grub cusimizer in linux mint and lubuntu 18.04( with lxde desktop), and it works very well on all. Good luck.
    I'm a firm believer that the only stupid question is the one you don't ask.
    Lenovo ideapad320-15iap, 1.1G Intel processor with onboard graphics, x64, 1TB SSD, 8GB ram
    lubuntu 20.04.2

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: I want to change the order of my grub2 menu

    I suggest that you avoid grub-customiser as it makes changes to the complete grub configuration system making it much more difficult to get answers from this forum, and I know some users have found that it creates many more problems than it solves.

    If you do decide to use it, I wish you well and hope it does what you want, but be aware that it may not be as simple to get away from it should you need to.

  6. #6
    Join Date
    Feb 2019
    Beans
    36

    Re: I want to change the order of my grub2 menu

    I have an interesting observation and that is that when I change just the GRUB_TIMEOUT value in my /etc/default/grub, that doesn't work either. After the change I execute update-grub and that runs successfully. Am I in the wrong file?

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: I want to change the order of my grub2 menu

    If you have more than a single Linux OS installed are you sure you are dealing with the correct OS's grub?
    Normally the OS with active grub will be the most recently installed Linux.

  8. #8
    Join Date
    Feb 2019
    Beans
    36

    Re: I want to change the order of my grub2 menu

    I don't know very much about this. How do I know if I am dealing with the correct OS? Is there more than one /etc/default folder?

  9. #9
    Join Date
    May 2010
    Beans
    1,374

    Re: I want to change the order of my grub2 menu

    Do you dual boot and want Windows to be the default option? Is this the aim here?

  10. #10
    Join Date
    Feb 2019
    Beans
    36

    Re: I want to change the order of my grub2 menu

    No, I have two ubuntus and the most recent (20.04) is at the bottom of the list. I realize that I'm just trying to save a few down arrows, but I'm also learning in the process.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •