Score:0

How to choose BIOS priority from within Ubuntu?

ne flag

My Gigabyte Aorus BIOS doesn't work because of my GPU. When I disconnect the GPU the BIOS works again.

I'm looking for an option in Ubuntu to choose the boot priorities of the BIOS.

For example, I want to be able to choose what boots first-- a USB stick, or my second SSD where Linux is installed.

Will avatar
id flag
I’m interested in understanding why you want to do this? Why not - from directly within the bios - set it up the way you want? It’s something that typically doesn’t need changing very often - why do you need to do it via Ubuntu? My computers are always set to boot from usb first - but as there’s no USB connected during boot, it goes to the ssd straightaway.
David avatar
cn flag
The BIOS Basic Input Output System is hardware that runs before ANY OS. This is not something you can change with in an OS.
Score:0
cn flag

The efibootmgr tool allows you to set the BootOrder if you want to do this permanently, and the BootNext setting that overrides the BootOrder once.

You can also add and remove boot menu entries there. Any item you want to boot will still need to follow the Secure Boot policy configured in the BIOS.

David avatar
cn flag
OP never said it was EFI he said it was BIOS.
Nicolas Formichella avatar
cn flag
@David The tag is [tag:uefi] so it is
Score:0
de flag

Restart/power on the PC and hold the shift key right away to get the Ubuntu Grub bootloader, you should see a UEFI setting at the bottom of the list to go into the BIOS/UEFI menu.

Score:0
cn flag

If it is UEFI, you can use efibootmgr :

From man 8 efibootmgr :

DESCRIPTION

efibootmgr is a userspace application used to [...] change the boot order

You can then use

[root@localhost ~]# efibootmgr

To list all entries, for ex :

BootCurrent: 0004
BootNext: 0003
BootOrder: 0004,0000,0001,0002,0003
Timeout: 30 seconds
Boot0000* Diskette Drive(device:0)
Boot0001* CD-ROM Drive(device:FF)
Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)
Boot0003* PXE Boot: MAC(00D0B7C15D91)
Boot0004* Linux

Then, lookup the entry you need and issue the bootloader change command, let's say you want PXE first and then Linux :

[root@localhost ~]# efibootmgr -o  3,4
David avatar
cn flag
OP never said it was EFI he said it was BIOS.
Zanna avatar
kr flag
@David people (including me) are still calling it BIOS through habit. Unless the machine is really old, it will have UEFI.
David avatar
cn flag
I have 6 machines none of which have EFI guess they are all really old.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.