Contents
- 1 How to recover grub with LUKS encrypted LVM partitions after motherboard replaced?
- 2 How do I get a Luks password for Grub?
- 3 Is there a way to update grub with no cryptmount?
- 4 How to run Grub probe on Luks [ solved ]?
- 5 What causes LVM to hang on Grub-mkconfig?
- 6 How to recover Grub from an encrypted disk?
How to recover grub with LUKS encrypted LVM partitions after motherboard replaced?
How to recover grub with LUKS encrypted LVM partitions after motherboard replaced? I had dualboot Windows 10 and Kali Linux x64 (Linux distribution based on Debian 9 x64) on my Lenovo X280 notebook with EFI bios. Windows 10 uses BitLocker with password (not TPM). Linux uses LUKS encryption. I have Kali /boot partition created separately.
How do I get a Luks password for Grub?
The prompt for your LUKS password cannot appear until AFTER GRUB boots the Linux kernel. At that point the initrd would run, which is what triggers the LUKS password prompt. Please confirm which EFI boot manager you are booting in to. You can check this in the BIOS settings.
How does the initramfs Mount the root filesystem?
The initramfs will then mount the root filesystem and continue to boot as usual. After the system has booted, you should then repair the underlying issue, for example by running update-initramfs -u. I haven’t yet found a way to tell the initramfs to boot a different device than what /proc/cmdline says. Maybe someone else has an idea?
Is there a way to update grub with no cryptmount?
After doing these configurations, you could run update-grub and verify that your regenerated GRUB configuration should now be quite a bit simpler, and contain no cryptmount commands any more. Thanks for contributing an answer to Unix & Linux Stack Exchange!
How to run Grub probe on Luks [ solved ]?
I let this go for about 15 minutes (when this step usually takes about 15 seconds), finally went and modified /usr/bin/grub-mkconfig and removed all of the 2> /dev/null lines. Now I figured out the problem – grub-mkconfig will run grub-probe, and then i get the following:
How to set up LVM on Luks [ solved ]?
So I’m running through the installation guide on the Wiki, setting up LVM on LUKS. Everything went fine, until I was installing the bootloader. my computer just hangs for a while.
What causes LVM to hang on Grub-mkconfig?
It’s caused by some upstream change in lvm2, probably this one: commit a063d2d123c56c4ccead986625a260df16556b9f Author: David Teigland Date: Mon Dec 3 11:22:45 2018 -0600 devs: use udev info to improve md component detection Use udev info to supplement native md component detection.
How to recover Grub from an encrypted disk?
Then you could copy the appropriate files and use the appropriate options in /etc/default/grub to make GRUB find the necessary fonts and images from another location, so GRUB won’t need to read an encrypted disk just to display a menu.
Are there any encrypted partitions in Ubuntu?
Broadly this means, if we want some kind of encrypted LVM ontop of RAID, there are two options: Option 1 – what I chose to do, and is more beginner-friendly since it can be accomplished with the standard Ubuntu installer.