View previous topic :: View next topic |
Author |
Message |
Andrey Grozin n00b
Joined: 12 Nov 2015 Posts: 9
|
Posted: Sun Oct 06, 2024 5:26 pm Post subject: A problem with efibootmgr |
|
|
For a long time, I use efistub kernels. The last one was gentoo-sources-5.6.14. Finally, I've compiled 6.11.1 and copied bzImage (as I always did) to /boot/EFI/Gentoo.
My /boot is mounted on /dev/sda2.
Code: | bilbo ~ # ls /boot/EFI/Gentoo/
bzImage-5.16.14.efi bzImage-6.11.1.efi
|
Then I did, as instructed,
Code: | bilbo ~ # efibootmgr -c -L "Gentoo-6.11.1" -l '\EFI\Gentoo\bzImage-6.11.1.efi'
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager HD(2,GPT,d1c57d7e-f924-4f83-a1d7-3868b3e2cff4,0xe1800,0x32000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600
320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* Gentoo-5.16.14 HD(2,GPT,d1c57d7e-f924-4f83-a1d7-3868b3e2cff4,0xe1800,0x32000)/\EFI\GENTOO\BZIMAGE-5.16.14.EFI
Boot0002* Gentoo-6.11.1 HD(1,GPT,89656b86-936e-4711-9832-038a280be148,0x800,0xe1000)/\EFI\Gentoo\bzImage-6.11.1.efi
|
But why Boot0002 looks different? Why HD(1,GPT,89656b86-936e-4711-9832-038a280be148,0x800,0xe1000) instead of HD(2,GPT,d1c57d7e-f924-4f83-a1d7-3868b3e2cff4,0xe1800,0x32000)? The files bzImage-6.11.1.efi and bzImage-5.16.14.efi are in the same directory.
OK, rebooting, pressing F2, then F8 to get to the boot menu. In the boot menu I see only 2 items:
- Windows boot manager
- Gentoo-5.16.14
There is no Gentoo-6.11.1. And
Code: | bilbo ~ # efibootmgr
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,0002
Boot0000* Windows Boot Manager HD(2,GPT,d1c57d7e-f924-4f83-a1d7-3868b3e2cff4,0xe1800,0x32000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d00350063006400
64002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* Gentoo-5.16.14 HD(2,GPT,d1c57d7e-f924-4f83-a1d7-3868b3e2cff4,0xe1800,0x32000)/\EFI\GENTOO\BZIMAGE-5.16.14.EFI
Boot0002* Gentoo-6.11.1 VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
|
I.e., Boot0002 is some abracadabra instead of the efistub kernel /boot/EFI/Gentoo/bzImage-6.11.1.efi which I put there by the command efibootmgr before the reboot.
Any ideas how to fix this?
Moderator note: Fixed long lines. -- Banana |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5128 Location: Bavaria
|
|
Back to top |
|
|
Child_of_Sun_24 l33t
Joined: 28 Jul 2004 Posts: 602
|
Posted: Mon Oct 07, 2024 7:36 am Post subject: |
|
|
I have the problem that when two efi entries are in the same directory, my uefi firmware deletes one of it. So i have to use another directory for each entry, maybe it's the same for you. |
|
Back to top |
|
|
Andrey Grozin n00b
Joined: 12 Nov 2015 Posts: 9
|
Posted: Mon Oct 07, 2024 1:50 pm Post subject: |
|
|
pietinger wrote: | I guess your ESP is the 2nd partition of your disk (*) ... and you forgot to use parameter "-p 2" when you created your UEFI entry.
|
Yes, you are right, of course. I did this sequence of action years ago, and so now I forgot that I have to include the -p parameter.
Now everything works.
A good idea! Next time I'll use it. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2451
|
Posted: Mon Oct 07, 2024 3:23 pm Post subject: |
|
|
pietinger wrote: | I would suggest to NOT create a new entry every time; just have two (main and backup) entries and copy/move the kernels |
I use this almost since the beginning. I wanter to use EFI-stub kernels but it looked absurd to recreate the EFI menu entries every time so I settled on a common name for the kernel image and ever since I override it whenever I upgrade to a new kernel. My backup, as well as testing option is grub. Whenever I'm testing a new kernel I boot it from grub, when I decide it's enough, I move it to the EFI partiotion at that location with that name. As simple as that. At all times I have a bunch of old kernels in /boot which I can boot with grub in case of emergency.
Best Regards,
Georgi |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|