Results 1 to 3 of 3

Thread: Changing default boot options

  1. #1
    Join Date
    May 2015

    Changing default boot options

    Hi, I want to change the order of the OS list in grub. Ubuntu comes first and I could do with changing it to Win7 for other users on the PC. I googled it but thought I might have more success first time on here.

  2. #2
    Join Date
    Jun 2014

    Re: Changing default boot options

    If you want to set the windows entry to boot as default, you can do that by editing as root user the /etc/default/grub file, the line below:

    You would first go to the /boot/grub/grub/cfg file and count the menuentry lines to the one for windows then enter it in the above file. Remember the count begins with zero not one so if windows were the fifth menuentry, you would put the number 4 in the file. Run sudo update-grub after making the change.

  3. #3
    Join Date
    May 2007
    The New Forest

    Re: Changing default boot options

    The files in /etc/grub.d/ get read and then used to build the grub.cfg file in /boot/grub

    If you go to /etc/grub.d/ you'll see something like

    00_header        10_linux      20_memtest86+  30_uefi-firmware  41_custom
    05_debian_theme  20_linux_xen  30_os-prober   40_custom         README
    Change the name of the os-prober one to 09 and it should read first and then be at the top of the grub list.

    sudo mv /etc/grub.d/30_os-prober /etc/grub.d/09_os-prober
    run update-grub

    sudo update-grub
    This is the part of grub.cfg directly after the 05_debian theme section before changing the file name as above

    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/10_linux ###
    Once I changed 30_ to 09_

    ### END /etc/grub.d/05_debian_theme ###

    ### BEGIN /etc/grub.d/09_os-prober ###
    And the OS I have showing up as other OS's are now at the top of the grub list.
    Last edited by Elfy; May 31st, 2015 at 09:43 PM.


Posting Permissions

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