You are not logged in.

#1 2025-01-29 18:20:50

NovaStar
Member
Registered: 2025-01-29
Posts: 5

[SOLVED] LUKS encrypted drive does not show in EFI boot menu

I have decided to install Windows on a separate drive that I currently have in my system. And to be sure that Windows does not brick my encrypted Linux drive, I decided to remove it temporarily while I am geting everything setup.

The problem began when I placed the drive back into the system (the drive was initially in the first m.2 slot and i moved it to the second slot after the windows installation) and found out that the EFI boot menu is not showing me the drive as a boot option.

When I open the live environment I can detect the drive using lsblk and mount the partitions normally so i belive the issue to be with grub but I am not sure how to proceed, since this is a fully encrypted drive and i want some advice before I do any irrecoverable damage if I have not already bricked it already.

The drive is partitioned into three parts, an efi partition, a swap partition and the main encrypted partition.

Last edited by NovaStar (2025-01-29 21:41:56)

Offline

#2 2025-01-29 18:24:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,725

Re: [SOLVED] LUKS encrypted drive does not show in EFI boot menu

Many firmwares will remove entries that are not present. You need to add the entry back with efibootmgr, or just reinstall your bootloader and let it do it.

Offline

#3 2025-01-29 18:28:19

frostschutz
Member
Registered: 2013-11-15
Posts: 1,645

Re: [SOLVED] LUKS encrypted drive does not show in EFI boot menu

mount, chroot, reinstall grub (or repeat whatever you did previously to have it added to your boot menu). grub-install also has the option --removable which sometimes allows you to still select the drive (in bios boot override, if nothing else), even if uefi has forgotten (or windows kindly removed it). I just run it twice, both with and without --removable.

If you are using any more advanced options with grub-install (or any other bootloader), it might help to just write this command line in a /root/bootloader-reinstall.sh shell script. If you have to do this more than once... no need to remember these options or look them up every time. Just run and reboot.

Offline

#4 2025-01-29 21:34:40

NovaStar
Member
Registered: 2025-01-29
Posts: 5

Re: [SOLVED] LUKS encrypted drive does not show in EFI boot menu

I want to thank everyone for their help, reinstalling grub fixed the issue! I find it ironic that i went out of my way to remove my drive physically to eliminate any shenanigans with windows instillation, and yet somehow it still found a way to be a pain in the ass.

Last edited by NovaStar (2025-01-29 21:56:38)

Offline

Board footer

Powered by FluxBB