Don’t miss Amazon Black Friday See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Change GRUB Boot Order in Linux Mint

To change the GRUB boot order in Linux Mint, edit the GRUB defaults file, set the preferred menu entry or saved-entry behavior, then run sudo update-grub and restart. For the usual case—making Windows or another operating system the default—use the entry’s exact menu name in /etc/default/grub; do not edit the generated grub.cfg directly, because updates can replace it.

What GRUB controls in Linux Mint

GRUB is the boot loader menu that may appear before Linux Mint starts. On a computer with multiple operating systems or kernels, it lets you choose what to launch. Its order is the order shown in the menu, but the first item is normally selected automatically after the timeout expires. Changing the default selection is therefore different from rearranging the visible menu entries.

Mint generally uses GRUB 2. Its menu is assembled from system configuration and detected bootable systems. The file /etc/default/grub contains settings that influence that process, while scripts in /etc/grub.d/ contribute menu entries. The generated configuration is typically /boot/grub/grub.cfg. It is regenerated when you run update-grub, so manual changes there are not the right way to make a persistent adjustment.

Find the exact menu entry

Before changing the default, identify the entry you want. Restart and read the GRUB menu if it is visible. On many systems, the menu is hidden or appears only briefly; holding or tapping Esc during startup may reveal it on UEFI systems, while Shift may work on some BIOS-based systems. Timing varies by computer and firmware.

You can also inspect the generated menu from Mint. This command prints menu-entry titles and related lines:

grep -E "^(menuentry|submenu) " /boot/grub/grub.cfg

Names may include quotation marks, punctuation, and version numbers. A Windows entry, for example, might be titled Windows Boot Manager (on /dev/nvme0n1p1), but the wording depends on the installation. Use the title shown on your own machine rather than assuming this example matches. If the operating system does not appear in the menu, changing the order will not make it appear; see the troubleshooting section below.

Set another operating system as the default

For a straightforward setup, set GRUB_DEFAULT to the exact title of the desired top-level menu entry. Open the defaults file with an editor:

sudo nano /etc/default/grub

Find the line beginning GRUB_DEFAULT=. It may currently say 0, which selects the first menu item. Replace its value with the exact menu title, keeping the quotation marks, for example:

GRUB_DEFAULT="Windows Boot Manager (on /dev/nvme0n1p1)"

Save and exit Nano with Ctrl+O, Enter, then Ctrl+X. Apply the setting by running:

sudo update-grub

Check the command output for errors, then restart and confirm the expected item is selected. If you prefer another Linux kernel as the default, the same principle applies, but kernel entries are often grouped under an “Advanced options” submenu. Selecting an item inside a submenu may require a hierarchical value or saved-entry configuration, so use the title and structure actually shown on your machine.

Use menu position or remember the last choice

GRUB can select an entry by position instead of title. With GRUB_DEFAULT=0, the first item is selected; GRUB_DEFAULT=1 selects the second, and so on. Position-based settings are simple, but can become unreliable when kernel updates or configuration changes add or reorder entries. A named entry is often easier to understand later.

If you want GRUB to remember the last entry you chose, use saved-entry mode. In /etc/default/grub, set:

  • GRUB_DEFAULT=saved
  • GRUB_SAVEDEFAULT=true

Then run sudo update-grub. After booting, the selection you make in the menu is saved for the next start. To choose an initial saved default without rebooting, use sudo grub-set-default "entry title", substituting the exact menu title. Saved-entry behavior may be affected by how GRUB is installed or configured, so test it with a normal restart before relying on it.

Change the visible menu order

Setting GRUB_DEFAULT changes which entry is selected automatically; it does not necessarily rearrange the entries shown on screen. To change their displayed order, you can adjust the scripts in /etc/grub.d/, whose filenames and execution order determine how groups of entries are added. This is a more advanced change than choosing a default, and can be less convenient to maintain.

Before editing those scripts, make a backup and understand which script produces the entry you want to move. After any change, run sudo update-grub and verify the menu. Avoid copying a script from an unrelated guide without checking that it fits your Mint version and boot configuration. For most users, leaving the menu in its normal order and changing only the default selection is safer and simpler.

Common problems and safe recovery

  • The setting has no effect: Check for spelling, punctuation, and quotation-mark differences in the entry title. Run sudo update-grub after editing, and make sure you changed /etc/default/grub, not the generated file.
  • Windows is missing: Confirm that Windows Boot Manager still exists and that the firmware can see it. On some Mint installations, operating-system detection is disabled or unavailable. Check the output of sudo os-prober; if it finds Windows, review the GRUB configuration and system settings before regenerating the menu. Do not enable detection blindly on a managed or security-sensitive system.
  • The menu is hidden: A hidden menu can make it seem as if the default changed without showing the choices. Adjusting GRUB_TIMEOUT_STYLE and GRUB_TIMEOUT in the defaults file can make the menu visible for a few seconds; then run sudo update-grub.
  • The computer starts the wrong boot loader: UEFI firmware boot order and GRUB’s menu order are separate settings. If the computer bypasses GRUB entirely, inspect the firmware’s boot options; changing GRUB_DEFAULT cannot change which EFI boot entry the firmware launches.

Keep a working Mint live USB or another recovery method available before making boot-related changes. A mistaken default usually does not erase data, but a broken boot configuration can prevent the normal startup menu from appearing. Avoid changing partitions, deleting EFI files, or reinstalling GRUB just to select a different menu entry.

Frequently Asked Questions

How do I make Windows the default in Linux Mint?
Find Windows’ exact GRUB menu title, set GRUB_DEFAULT to that quoted title in /etc/default/grub, then run sudo update-grub and restart to test.

Can I change the GRUB boot order without the terminal?
Some graphical GRUB configuration tools can change defaults, but availability and maintenance vary. Editing the standard defaults file and running update-grub is the documented, transparent approach; review any third-party tool before installing it.

Does changing GRUB order change the UEFI boot order?
No. GRUB chooses among entries in its own menu. UEFI firmware chooses which boot loader to start. If GRUB does not appear, check the firmware boot order rather than changing the GRUB menu default.

Will a kernel update reset my chosen default?
A numeric position can point to a different entry after menu items are added or reordered. A matching menu title is usually more stable, though titles can change when an operating system or boot configuration changes.

How do I restore the original setting?
Open /etc/default/grub, return GRUB_DEFAULT to its previous value—commonly 0—and remove any saved-entry setting you no longer want. Run sudo update-grub to regenerate the menu.

Change GRUB Boot Order in Linux Mint
Scroll to top