Dual Boot Windows 11 Pro (BitLocker) and Fedora 42 - Issue with Encrypting Data Partition on Fedora's Drive

Hello everyone,

I’m Mauro, a long-time Windows and linux. I recently set up a dual boot configuration on my Intel NUC 12 PRO (i5 1240P, 16GB RAM). The system has two SSDs: a 500GB NVMe drive dedicated to Windows 11 Pro (with BitLocker and Secure Boot enabled) and a 512GB SATA 3 SSD.

Here’s the partitioning scheme:

  • nvme0n1 (500GB NVMe):
    • EFI partition
    • Windows Reserved partition
    • C: partition (encrypted with BitLocker)
  • sda (512GB SATA 3):
    • sda1: NTFS partition (D: for data)
    • Free space for Fedora 42 installation

During the Fedora 42 installation, I created the following partitions on the free space of the SATA SSD:

  • sda2: /boot/efi (vfat)
  • sda3: /boot (ext4)
  • sda4: swap (LUKS2 encrypted)
  • sda5: / and /home (Btrfs, LUKS2 encrypted)

The system boots in UEFI mode with Secure Boot always enabled. Here’s the output of lsblk -f:
mauro@fedora:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
│ ntfs DOWNLOAD 8244B2C244B2B86D
├─sda2
│ vfat FAT16 A75E-104E 180,5M 10% /boot/efi
├─sda3
│ ext4 1.0 boot aee1ceba-4f0c-4d6d-81c3-3215960c2bdc 668,6M 35% /boot
├─sda4
│ │ crypto 2 399ec780-b770-4fb9-91c9-0d098bf29a1d
│ └─luks-399ec780-b770-4fb9-91c9-0d098bf29a1d
│ swap 1 swap 7f3e46f3-2e20-4ae7-90ed-76a385e1a0e4 [SWAP]
└─sda5
│ crypto 2 5e6e2477-3abd-4796-bc9d-4b6ab6c523a8
└─luks-5e6e2477-3abd-4796-bc9d-4b6ab6c523a8
btrfs fedora_fedora 9855ef6d-43b4-4ea9-af5e-b81e30706197 112,8G 7% /home
/
zram0
swap 1 zram0 56414594-4476-427f-b11a-232c7562ee52 [SWAP]
nvme0n1

├─nvme0n1p1
│ vfat FAT32 6C01-521C
├─nvme0n1p2

└─nvme0n1p3
BitLoc 2
mauro@fedora:~$

The Problem:

If I leave the D: partition (sda1) unencrypted (NTFS), everything works fine. However, if I enable BitLocker on the D: partition (which is on the same physical drive as my Fedora installation), upon rebooting into Windows, it always asks for the BitLocker recovery key. It doesn’t seem to be utilizing the TPM 2.0 for automatic unlocking of this specific partition.

Interestingly, when I enable BitLocker on D:, the recovery key it asks for is the one associated with my C: drive (the Windows system drive on the NVMe SSD). This suggests some kind of link or confusion in how Windows is managing the BitLocker keys for the data partition on the Fedora drive.

My Question:

Is there a known solution or configuration that would allow me to encrypt the D: partition with BitLocker while dual-booting with Fedora 42 (installed on the same physical drive) without being prompted for the recovery key on every Windows boot? I would expect the TPM 2.0 to handle the unlocking, as it does for my C: drive.

Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!

Best regards,

Mauro

How do you boot WIndows: Directly from the UEFI menu or through grub2 boot menu?

AFAIK the TPM does not store the key for a data drive. Only the boot drives.
The key for the data drive is stored on the boot drive.

you can list the protectors for sda1 with manage-bde (Windows)

Let’s say you unlock the boot drive with the recovery key and don’t change enryption on sda1 and reboot, does the windows boot loader ask again for the recovery key?

Hello @vekruse
The PC boots from grub
Thanks for your interest!

Hi @anotheruser
Windows bitlocker is managed by TPM2. If I don’t lock sda1 (D: ntfs) bitlocker unlock is tpm2. When I enable bitlocker in D: (sda1) in Windows it asks for unlock key of C: Windows
Fedora 42 is unlocked with passphrase.
Thanks for your help

I did a Windows 11 Pro restore on May 29th for the usual problems I have 2/3 times a year with Windows update. Taking advantage of the event (which takes 5/6 hours) I unlocked bitlocker in all partitions, resized the sata3 and installed the dual boot with Fedora 42 mate. Fedora 42 is proving to be exceptional in bare metal. I have a 16 year old laptop (with recent ssd) that, despite the 4gb of ram, works fine with Fedora 42 mate and luks2.

try to use the UEFI boot menu and select the OS you want to boot.

manage-bde -protectors -get d:

Hi @anotheruser
I immediately tried this option.
In uefi the sequence is the same: 1) Fedora 2) Windows and the bitlocker block happens anyway. With the disadvantage that I no longer have the grub menu to choose another kernel
Thanks

If I understand correctly, booting through grub2 would change the tpm calculations. The tpm check every little detail of the boot process from power on to Windows is running. If every details is exactly right, the bitlocked file systems will be unlocked; otherwise not. With grub2 in between, you change the boot process and tpm will stay locked.

1 Like

Hi @vekruse
My PC is a work PC and I’ve gone crazy with bitlocker. At the moment everything works perfectly. The tpm2 unlocks Windows 11 pro in C: but if I try to add the other partition, D: the system for some reason asks for the unlock key. I have Windows that correctly unlocks C: and I access the 2nd partition D: ntfs. Obviously with the unencrypted partition Fedora 42 lets me access the D: ntfs. (sda1)
I’m seriously thinking of encrypting specific folders with a package compatible with win and Fedora thus having the partition accessible from both os

Do you really require two separate efi partitions?

My guess is that you could maybe prevent this by moving the grub fedora directory from sda to the efi partiion on nvme0n1p1.
Boot medium would be nvme0n1 for both OS and it would probably not trigger the recovery screen.

Hi @anotheruser
In another post, I don’t remember the link, it suggested using a specific efi for Fedora. I remember the expression of putting 2 chefs in a single kitchen. I followed the suggestion and actually everything is perfect except for this incident. I have no experience with efi and dual boot. I just need to make things work…
At the moment, after doing many experiments on the day of installation I am in 2 systems, Fedora and Windows, stable. Would it have been better? I am too inexperienced to answer. But if you tell me so I could try in the future…
Thank you very much

I boot win and linux from one efi partition. no issue with that.
It’s possible that changing the boot device triggers the bitlocker recovery.

I’m surprised that you can even chainload Windows from grub with secure boot enabled. The last time I tried this was not possible.

1 Like

Maybe I made a mistake when I installed it with secure boot enabled? Did I make a mistake when I created the second EFI? Did I make a mistake when I disabled BitLocker? Honestly, I am too inexperienced. However, I am aware of my limitations. On 29 May, I was exasperated by the Windows 11 Pro lockout (it took 5–6 hours to restore online from Windows Update). My backups to external disks and SATA3 were not working. Unfortunately, this happens to me two or three times a year. Windows reports a reliability index of 10 (the maximum score), and then the system crashes during the update process. I finished the restore, deleted the backup partition, and decided to install Fedora 42 MATE.

For installing Fedora, it doesn’t make any difference. The install procedure would install the proper UEFI entry for you, and if it didn’t, that would be a bug.

As for Bitlocker, you would need Microsoft expertise.

Hello everyone,
My goal was to set up a second encrypted partition. After thorough testing, I’m now almost certain that the issue was caused by BitLocker being applied to the only NTFS partition (sda1) on the SATA3 SSD dedicated to Linux.

Here’s what I did to solve the problem:
:small_blue_diamond: Resized the Windows C: partition and moved the D: NTFS partition to the NVMe drive.
:small_blue_diamond: Reset TPM 2.0 and then applied BitLocker encryption to both C: and D:.
:small_blue_diamond: The sda1 partition (the first on the disk) will now be used for a fresh Fedora installation, dedicating the entire SSD to Linux.

As an alternative, I could set up a shared partition at the end of the disk, accessible by both OSes, with manual encryption for security.

1 Like