Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

efibootmgr doesn't create correct entry in UEFI Boot Menu

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
guerro
Guru
Guru
User avatar
Posts: 421
Joined: Mon Jun 21, 2004 12:43 pm
Location: Brescia
Contact:
Contact guerro
Website

efibootmgr doesn't create correct entry in UEFI Boot Menu

  • Quote

Post by guerro » Wed Dec 16, 2015 3:43 pm

When I execute

Code: Select all

efibootmgr --create --gpt --disk /dev/nvme0n1 --part 2 --write-signature --label "Gentoo" --loader '\EFI\Boot\bootx64.efi' 
efibootmanager create entry, but with non signature and strange parameter of hard disk

When I reboot , system boot from "UEFI OS" and entry "Gentoo" has only "VenHw(0000000000000000000)", intead entry "UEFI OS" seems to have correct values (again "file")

I don't understand what it's wrong.

Can someone help me?
Last edited by guerro on Tue Dec 22, 2015 2:44 pm, edited 1 time in total.
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Wed Dec 16, 2015 5:02 pm

guerro ... can you provide the output of the following:

Code: Select all

# gdisk -l /dev/nvme0n1
# efibootmgr -v
... also, with your command if you add '-v' you should get more verbose messages.

best ... khay
Top
guerro
Guru
Guru
User avatar
Posts: 421
Joined: Mon Jun 21, 2004 12:43 pm
Location: Brescia
Contact:
Contact guerro
Website

  • Quote

Post by guerro » Wed Dec 16, 2015 11:07 pm

Code: Select all

gdisk -l /dev/nvme0n1 
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 45B7C053-FEB8-475D-9941-DA44BBA0FF1B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            6143   2.0 MiB     EF02  grub
   2            6144          268287   128.0 MiB   EF00  boot
   3          268288        33822719   16.0 GiB    8300  swap
   4        33822720       500116143   222.3 GiB   8300  rootfs
Before reboot:

Code: Select all

efibootmgr --verbose -c -w  -d /dev/nvme0n1 -p 2 -L "Gentoo OS" -l '\EFI\Boot\bootx64.efi'
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0001* UEFI OS       HD(2,GPT,1741bc35-e7a2-4daa-834d-ace0b2d88aba,0x1800,0x40000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0000* Gentoo OS     HD(2,0,00000000000000000000000000000000,0x0,0x0)/File(\EFI\Boot\bootx64.efi)
...Just a moment.... After reboot

Code: Select all

efibootmgr -v
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000
Boot0000* Gentoo OS     VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0001* UEFI OS       HD(2,GPT,1741bc35-e7a2-4daa-834d-ace0b2d88aba,0x1800,0x40000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Thu Dec 17, 2015 1:07 pm

guerro ...

I have no idea about what sort of efi executable this "UEFI OS" is, but it seems to be altering the boot entry, you could switch the BootOrder, delete that entry, or install something like rEFInd in its place (after backing up {ESP}\EFI\BOOT\BOOTX64.EFI). Actually, I wonder why you need two ESP's (EFI System Partition), you should be to make an entry pointing the HD rather than the PCIe SSD.

So, rather than I recommend you perhaps break something, I suggest you search for this particular efi executable, and see if there is some reason why you need it. I'd probably just remove it and use some other executable in its place ... but that may be hasty (as, again, I'm not sure what it is or what it does).

best ... khay
Top
guerro
Guru
Guru
User avatar
Posts: 421
Joined: Mon Jun 21, 2004 12:43 pm
Location: Brescia
Contact:
Contact guerro
Website

  • Quote

Post by guerro » Thu Dec 17, 2015 1:17 pm

Thx khayyam :D

I'll try to find out something....
Fortunelly I can wait to resolve this issue. 8) 8)
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Top
tlix
n00b
n00b
Posts: 8
Joined: Wed Jul 15, 2015 3:20 pm

  • Quote

Post by tlix » Wed Feb 05, 2020 3:51 pm

though this being years old, I came across similar issue recently, but for my case, the direct cause is the small size of efi partition.
From the test on my laptop, so long as the efi partition size <= 32M, the problem happens, with a larger size, it works fine
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic