You are not logged in.

#1 2019-11-30 20:40:11

bohokash
Member
Registered: 2019-11-30
Posts: 76

[SOLVED] How can I change the EFI boot order with efibootmgr?

Recently I have bought a laptop (Acer Swift 1 - SF114-32), which had a command-line-only base Linpus Linux installation on it. The SSD of the laptop had 3 partitions, the first one (sda1) is the EFI partition. I simply deleted the two other partitions with cfdisk. Unfortunately I hadn't wiped, or formatted the already existing EFI partition, because this was my first attempt to install Arch Linux on an UEFI laptop. Then I managed to install Arch Linux by booting from a CD installation media via USB DVD drive, and then using "pacstrap", following the installation guide https://wiki.archlinux.org/index.php/Installation_guide

Now everything is working, including Intel microcode update, I can login to Xfce, and pulseaudio also works with the two speakers of the laptop.

The problem is, when I switch on the laptop, I always have to press F12 quickly to get a boot menu (I think it consists to the BIOS of the laptop), and then selecting GRUB from that menu, which is at the second place, as the first entry in the aformentioned boot menu is still the Linpus Linux.

My question is, how can I delete the Linpus Linux from the boot order, or simply put it at the second place, and GRUB to the first place.

I have tried the command "efibootmgr". Its output is:

# efibootmgr

BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0002,0001,2001,2002,2003
Boot0000* Linux (<- this is Linpus Linux)
Boot0001* grub (<- I made this meanhwile by selecting in the BIOS a trusted .efi program, hoping it will load at boot, but no success)
Boot0002* GRUB (<- this should be at the first place, need activating somehow)
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

The option I tried to resolve the problem:

efibootmgr -v -o 0002,2001,2002,2003,0000

But it didn't work as expected, still the Linus Linux (Boot0000) is loading at boot.

I also tried to delete the boot order with "efibootmgr -O", but I still have Linpus Linux (Boot0000), and the "Boot0001 grub" entries, with the first one, Linpus Linux activated.

Last edited by bohokash (2019-12-19 18:24:04)

Offline

#2 2019-11-30 20:51:28

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,658

Re: [SOLVED] How can I change the EFI boot order with efibootmgr?

Try adding the 0001 somewhere in the order. It might be that the function requires correct number of args.

Offline

#3 2019-11-30 20:59:59

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: [SOLVED] How can I change the EFI boot order with efibootmgr?

Unfortunately doesn't work either, the "BootCurrent" is always remains "0000".

Offline

#4 2019-11-30 21:04:16

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 91

Re: [SOLVED] How can I change the EFI boot order with efibootmgr?

Do you need the Linpus-entry? You could just deactivate or delete it and set a new boot-target:

efibootmgr -b 0000 -A #set inactive
efibootmgr -b 0000 -B #deleting

efibootmgr -n 0001 #next boot: Arch

After booting into arch, you could (re-)install/upgrade grub and it should set itself as first booting-system.

Offline

#5 2019-11-30 21:04:39

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: [SOLVED] How can I change the EFI boot order with efibootmgr?

Finally I reached my goal with the -A option: deactivating the unneeded bootnum

efibootmgr -A -b 0000

Problem solved.

Offline

#6 2019-11-30 23:24:56

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: [SOLVED] How can I change the EFI boot order with efibootmgr?

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB