Forums

Skip to content

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

moving encrypted BIOS/MBR install to UEFI/GPT

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
3 posts • Page 1 of 1
Author
Message
mortonP
Tux's lil' helper
Tux's lil' helper
Posts: 129
Joined: Tue Dec 22, 2015 9:39 am

moving encrypted BIOS/MBR install to UEFI/GPT

  • Quote

Post by mortonP » Thu Jan 17, 2019 8:46 pm

Dear wise forum,
I spent now quite some time, searching many places on the internet, but still fail to move an installation from BIOS/MBR to UEFI/GPT.
I would appreciate any help what is missing.

Original install:
/dev/sda1 is LUKS, LVM on top, and one LV is / (with /boot/grub)
so its an easy install from a chroot in the root LV:
grub-install --boot-directory=/boot /dev/sda
Grub loads from MBR+sda, asks for password of LUKS /dev/sda1, finds correct LV of / and there finds all the rest in /boot/grub

How to replicate this with GPT and UEFI? I failed so far :-/

GPT part1 is EF00 EFI system partition
GPT part2 is 8300 Linux, LUKS encrypted, with multiple LVs, one of them is / (with /boot/...), just like in the original setup.
So setting up from a chroot in the root LV (GPT1 mounted at /boot/efi)
grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/GPT1

this creates
/EFI/gentoo/grubx86.efi in GPT1 with a proper boot entry (checked with efibootmgr -v)
and installs all Grub modules in /boot/grub/...

Upon reboot this does not work, it stops stuck with just cursor in left upper corner :-(

What is missing that in the UEFI install Grub also asks for the password of the LUKS encrypted GPT2 partition (containing the root LVM) to continue?
Maybe in the UEFI case something extra needs to be linked into Grub?
Top
sao98021
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 145
Joined: Tue Apr 03, 2012 2:59 pm
Location: Michigan

  • Quote

Post by sao98021 » Sat Jan 19, 2019 12:07 pm

https://superuser.com/questions/587321/ ... -partition

might have some info if you havent saw it yet
Top
mortonP
Tux's lil' helper
Tux's lil' helper
Posts: 129
Joined: Tue Dec 22, 2015 9:39 am

  • Quote

Post by mortonP » Sat Jan 19, 2019 5:05 pm

Thank for the link, but this does not explain anything new.

I'll get another disk on Monday (if Amazon delivers...) and try a UEFI/MBR setup to see whether GPT is the problem.

Another observation is that Gentoo's installed Grub binary is much smaller than e.g. Ubuntu's. So maybe just some graphics or fonts are missing? I also failed to build a static Grub in Gentoo (fails with -ldevmapper linker error)

In the BIOS/MBR case the installed Grub remembers where the / LV is, without an extra config file, does anyone know whether in the UEFI/GPT case this should work the same, so the installed grubx86.efi binary has location of / LV embedded?
Top
Post Reply

3 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