I added a new and bigger HDD to my Tri-boot (Manjaro, Linuxmint and Windows10) system recently, which is used to store media and backup files. I want my system to boot into Manjaro as the default OS. However after Manjaro has a kernel update this changes. If I boot into any of the other OS on startup, when I shutdown the PC, the next time the PC is switch-on it boots to the last used OS.
How can I stop this from happening, such that it always boot the default OS (Manjaro) without having to make this change manually.
What I have to do everytime this happens, I would edit the grub.cfg file and make a change from this
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
to
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
Another option could be to distinctively select your Manjaro EFI partition as the primary EFI partition - (done in system firmware or using efibootmgr) - and hope the other Linux don’t change it
Of sourse the above is only valid if you are using EFI cause if you are using MBR then your grub is written to the primary disk defined in BIOS - and you will have nothing but trouble.
I suggest you modify the grub as I described - start with your Mint installation - and generate grub.cfg - then proceed to reboot your system - loading Manjaro - then doing the same.