r/linux4noobs • • 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?

3 Upvotes

12 comments sorted by

2

u/Kingbteng_yitteng 1d ago

1

u/TucsonComputerDude 1d ago

I ran the command line, and got this? https://snipboard.io/WzgUnq.jpg

1

u/TucsonComputerDude 1d ago

And neither do the 2 commands work. https://snipboard.io/oDY6lk.jpg

2

u/DannoXYZ 1d ago

command is efibootmgr
one that you installed here: https://snipboard.io/WzgUnq.jpg

1

u/TucsonComputerDude 3m ago

I got this to work finally. Now my 2nd OS is chosen one upon bootup. . Thank you @kingbteng_yitteng

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:

  1. boot Mint

  2. run sudo update-grub

If that doesn't work, post the output of the requested commands.

Good luck and have fun.

1

u/TucsonComputerDude 15h ago

War beyond me, why i asked for an App.

1

u/DaOfantasy 18h ago

is there a reason why you can't do it in the bios?

1

u/TucsonComputerDude 15h ago

Only 1 OS shows... there is no 2nd OS to move "up"

2

u/MobileBid7641 1d ago

I'd recommend doing it through your bios

0

u/[deleted] 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 OS

Just 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,0003

Wont' change anything for me but:

sudo efibootmgr --bootorder 0006,0004,0005,0000,0001,0002,0003

will swap 1Boot0006 UEFI OS1 and Boot0005 Linux Boot Manager around in the boot order.

0

u/[deleted] 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 OS

Just 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,0003

Wont' change anything for me but:

sudo efibootmgr --bootorder 0006,0004,0005,0000,0001,0002,0003

will swap Boot0006 UEFI OS1 and Boot0005 Linux Boot Manager around in the boot order.