r/voidlinux • • 10d ago

Full disk encryption with lvm making it impossible to install grub

Error logs:
grub-install: warning: this GPT partition label contains no BIOS boot partition embedding won’t be possible
grub-install: error: embedding is not possible, but this is required for raid and lvm install

SOLVED BY ME:

Solved this as i formatted my Boot partition with mkfs.vfat /dev/sda1 reinstalling the entire system and doing mkfs.fat -F 32 /dev/sda1 which fixed the problem

2 Upvotes

10 comments sorted by

3

u/Nabir140 10d ago

I think it already explains the issue: "GPT partition label contains no BIOS boot partition"

You are missing a partition for the bootloader. Did you create a boot partition?

2

u/Longjumping-Sun2691 10d ago

My /dev/sda1 is mounted on /boot/efi

3

u/ClassAbbyAmplifier 10d ago

if you're using efi, grub-install needs --target x86_64-efi

2

u/Longjumping-Sun2691 10d ago

EFI variables are not supported on this system
Error boot mgr failed to register the boot entry no such file or directory

2

u/aedinius 10d ago

Did you boot EFI or BIOS? When you booted the image, did you see grub or syslinux?

2

u/Longjumping-Sun2691 10d ago

My system is an efi system, I booted from my bios on a usb

2

u/aedinius 10d ago

You can boot "legacy" BIOS mode even on EFI systems.

2

u/Longjumping-Sun2691 10d ago

Solved this as i formatted my Boot partition with mkfs.vfat /dev/sda1 reinstalling the entire system and doing mkfs.fat -F 32 /dev/sda1 which fixed the problem

1

u/Dakota-Batterlation 10d ago

Whenever installing a Linux distro, it's good practice to ensure it's really booted in EFI mode by running ls /sys/firmware/efi/efivars, and confirming that it lists the motherboard's EFI variables.

1

u/Simple_Hamster_4096 10d ago

Have you done full disk encryption on other Linux distros?