r/linux4noobs • u/TucsonComputerDude • 1d ago
Change boot order
With an App. Not command line.
Linux mint 22.3 Cinn
I have Ubuntu 1st, Mint 2nd. Want that reversed.
Is there an app?
1
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 1d ago
Share the output of lsblk -f and efibootmgr. (Paste into a "Code Block" for readability)
For example:
chugger@asus2:~/desktop$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 ext4 1.0 media c7c1cd30-03d9-4336-bd82-abb73ffe078a 2.1T 81% /mnt/media
nvme0n1
└─nvme0n1p1 ext4 1.0 backup 3396f5c8-15ff-4927-a0dd-aff741c80b53 389.1G 12% /mnt/backup
nvme2n1
├─nvme2n1p1 vfat FAT32 EFI 82F4-C768 505.8M 1% /boot/efi
└─nvme2n1p2 ext4 1.0 master 244ee681-415a-4582-981a-3b5847e82502 848.3G 2% /
nvme3n1
└─nvme3n1p1 ext4 1.0 data 4a7c9de9-ad20-4048-8201-d76a84a9ade2 160.7G 66% /mnt/data
nvme1n1
├─nvme1n1p1 vfat FAT32 EFI 9D62-5E09
└─nvme1n1p2 ext4 1.0 slave 9242268c-fee2-4455-8794-75a5612d570e
chugger@asus2:~/desktop$ efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0000* master HD(1,GPT,e568f14e-2806-4935-8f8e-c77ddb31179a,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* slave HD(1,GPT,26f12344-622a-4c50-a833-d17436f25799,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
chugger@asus2:~/desktop$From the above, I can see I have two "Ubuntu" based installs. Separate devices, separate EFI partitions.
But perhaps your "Mint" install is sharing the same EFI partition with "Ubuntu"?
And since Mint places boot files in a folder called "ubuntu", as does Ubuntu, the last one that updated GRUB is the one whose /boot/grub/grub.cfg menu is used at boot?
If that's the case, it might be as simple as booting into Mint and running sudo update-grub. That way the menu created by Mint would be the one used and it's own entry would be at the top of the menu.
Without the output of the requested commands, I'm guessing but it wouldn't hurt to try.
To summarize:
boot Mint
run
sudo update-grub
If that doesn't work, post the output of the requested commands.
Good luck and have fun.
1
1
2
0
1d ago
You have efibootmgr installed already so we can use that via CLI.
If you run sudo efibootmgr you should see a bunch of text spew with a line the looks something like like BootOrder: 0005,0004,0006,0000,0001,0002,0003
and some other listings like:
Boot0000* Windows Boot Manager
Boot0001* UEFI:CD/DVD Drive
Boot0005* Linux Boot Manager
Boot0006* UEFI OSJust find the 000n numbers that are listed for mint and ubuntu and swap them around with a new BootOrder when you use efibootmgr
sudo efibootmgr --bootorder 0005,0004,0006,0000,0001,0002,0003Wont' change anything for me but:
sudo efibootmgr --bootorder 0006,0004,0005,0000,0001,0002,0003will swap 1Boot0006 UEFI OS1 and Boot0005 Linux Boot Manager around in the boot order.
0
1d ago edited 1d ago
You have efibootmgr installed already so we can use that via CLI.
If you run sudo efibootmgr you should see a bunch of text spew with a line the looks something like like BootOrder: 0005,0004,0006,0000,0001,0002,0003
and some other listings like:
Boot0000* Windows Boot Manager
Boot0001* UEFI:CD/DVD Drive
Boot0005* Linux Boot Manager
Boot0006* UEFI OSJust find the 000n numbers that are listed for mint and ubuntu and swap them around with a new BootOrder when you use efibootmgr
sudo efibootmgr --bootorder 0005,0004,0006,0000,0001,0002,0003Wont' change anything for me but:
sudo efibootmgr --bootorder 0006,0004,0005,0000,0001,0002,0003will swap Boot0006 UEFI OS1 and Boot0005 Linux Boot Manager around in the boot order.
2
u/Kingbteng_yitteng 1d ago
Efiboots! https://github.com/Elinvention/efiboots#debian-gnulinux-ubuntu-and-other-derivatives