How to recover entries in efibootmgr?[Solved]

This is how the efibootmgr look like:

[mak@jmak-pc ~]$ sudo efibootmgr -v
[sudo] password for mak: 
BootCurrent: 0001
Timeout: 6 seconds
BootOrder: 0001,0006,0002,0007,0003,0004,0005
Boot0000* Windows Boot Manager	HD(2,GPT,398a36de-922e-4971-a348-0e54190b93bb,0xe2000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Manjaro	HD(2,GPT,398a36de-922e-4971-a348-0e54190b93bb,0xe2000,0x32000)/File(\EFI\Manjaro\grubx64.efi)
Boot0002* ArchKDE	HD(2,GPT,398a36de-922e-4971-a348-0e54190b93bb,0xe2000,0x32000)/File(\EFI\ArchKDE\grubx64.efi)
Boot0003* UEFI:CD/DVD Drive	BBS(129,,0x0)
Boot0004* UEFI:Removable Device	BBS(130,,0x0)
Boot0005* UEFI:Network Device	BBS(131,,0x0)
Boot0006* antergos_grub_39nr	HD(2,GPT,398a36de-922e-4971-a348-0e54190b93bb,0xe2000,0x32000)/File(\EFI\antergos_grub_39nr\grubx64.efi)
Boot0007* UEFI: Lexar JumpDrive 1100, Partition 2	PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,MBR,0x0,0x21bd7c,0x2000)..BO
[mak@jmak-pc ~]$ 

As you see only one Manjaro appears in the boot manager but there is actually three on three different partitions - the main one is overwritten by the one installed last. What the efibootmgr shows the experimental one that I don’t want to keep. How can I put back the two originial versions?

Thank you.

You can put back only one version. Boot to the version you want and
sudo grub-install

Thanks!

It is a pity that other flavors can’t be kept in the boot manager.

I also experimented with antergos distros, their installer gives a distinct name for each flavor, so they all show up in the boot manager.

[edit] @jmak

Since I think you really want this (but I personally see no benefit - see [1] below), you can try with using different bootloader-id into your each of the manjaro versions, like this

sudo grub-install --bootloader-id=manjarokde
sudo grub-install --bootloader-id=manjarolxqt

Then rearrange bootorder

sudo efibootmgr -o xxxy,xxxz,xxxp,…

or do your favourite manjaro version last.

warning - may not work with some (mostly will work) uefi firmware, but you can try it out.
but like most things grub, will not be deleterious if it won’t work out. Good luck.

ps: don’t forget to continue using this bootloader-id each time you grub-install.
If system does it for you (like with new grub versions), it will use ‘manjaro’ as bootloader-id.
Redo with your own bootloader-id.

[1] - you may want to do this in each of your Manjaro versions to achieve the same things (I think) you wanted. Put these entries into /boot/grub/custom.cfg of each of your Manjaro versions

menuentry "Manjaro LXQT"  {
    insmod part_gpt
    insmod part_msdos
    insmod ext2
    search  --fs-uuid --set=root xxxxxxxxxxxxxxxxxxxxxxxxxxx
    configfile /boot/grub/grub.cfg
}

menuentry "Manjaro KDE"  {
    insmod part_gpt
    insmod part_msdos
    insmod ext2
    search  --fs-uuid --set=root yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    configfile /boot/grub/grub.cfg
}

But I use this instead.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark