Which OS's grub configuration should I edit to change default boot order?

I have two OSes installed on two partitions of my (slightly old)computer: PeppermintOS (on /dev/sda1) and antiX (on /dev/sda2). When I turn my computer on, the GRUB menu defaults to antiX after timing out. I want to change that to Peppermint. I saw this post which gives a good answer on how to change the default boot – by modifying /etc/default/grub and then running sudo grub-update. But I still have one question:

If both of my OS’s have their own grub binaries and their respective configurations – Peppermint with its own /etc/default/grub in /dev/sda1 and antiX with its own /etc/default/grub in /dev/sda2, then which of these should I edit in order to get the desired results?

What I am having trouble understanding I suppose is how an OS specific grub install can be configured to serve the needs of the overall boot process before that particular OS has even been loaded.

Asked By: First User

||

Most likely your actual GRUB configuration belongs to the OS you installed the last however if you even ran grub-install in any of them, then the one where you last ran this command is again the one you should edit.

In a perfect world you should have a single separate /boot partition with a single GRUB configuration but considering how the Linux distros lack standardization that’s not always easily achievable.

Answered By: Artem S. Tashkinov
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.