After setting up a dual-boot system, the secondary OS often becomes the default boot option. That’s just one common scenario, but regardless of the exact reasoning, configuring the boot options in Linux is pretty easy.

Linux distros utilize the GRUB boot loader. As such, you may edit the GRUB config file to set a specific boot entry as the default one. For UEFI systems specifically, the efibootmgr tool works as well.

Or, if you don’t need a Linux-specific solution, you may also change the boot order via the BIOS/UEFI. We’ve covered all these methods with full steps in this article.

gnu-grub-menu-entries

Ways to Change Boot Order

The steps covered were tested on Ubuntu, but they’re applicable to most other distros as well. The only thing that might slightly differ is the location of the GRUB config file.

Edit GRUB Config File

you may change the default boot entry on Linux systems by editing the GRUB configuration file. There are various GRUB config files but the one at/etc/default/grubis used for user customization.

Before you begin, you may either use thecat /boot/grub/grub.cfg | grep menuentrycommand or check the current order of GRUB menu entries when booting.

ubuntu-etc-default-grub

The menu items are zero-indexed, so the first entry is represented by 0, the second entry is 1, the third is 2, and so on.

While we only changed the default boot entry with the previous method, the efibootmgr tool allows you to actually change the boot order. As stated, this method won’t for Legacy BIOS systems. Buton UEFI systems, you may utilize the efibootmgr tool as such:

In aWindows-Linux dual-boot, if the boot order in the BIOS/UEFI is set to prioritize the Windows Boot Manager, it will run before the GRUB bootloader. As such, GRUB’s boot order would be irrelevant. In such cases, you may access the firmware interface and change the boot order as such:

gnu-grub-default-entry

sudo-update-grub-1

efibootmgr-ubuntu-linux-boot-order

efibootmgr-o-change-boot-order

gnu-grub-uefi-firmware-option

boot-priority-order-ubuntu