TL;DR: bitlocker does not like grub
Full story:
Months ago I installed fedora on my desktop, dual booting Windows 11.
In all this time I never had the need to boot into windows. I remembered that it worked fine after install, good, and then I forgot about that.
Today I needed a specific windows only software, so at grub I chose the microsoft bootloader and… BITLOCKER.
Huh? Bitlocker? Me? What? Searched frantically for that decryption password in my keepass, did not find. What?? How???
After a few minutes staring at that screen I thought, ok let’s just wipe that shit and reclaim the space. I went back to linux, opened the partition manager, then remembered that i had something important in single copy over there. Noooooo
Went back to the boot screen to try again, still failed password.
Then I notice the error:
e_fve_pcr_mismatch
that mismatch lets me think that maybe I had something wrong in my booting.
I try to put windows first in the bios and it works! WHAT THE…???
So, if i put linux first, then launch windows from grub, bitlocker takes the windows partition under ransom, i can only access if windows is first. And of course in windows 11 x64 is no longer possible add linux partitions in their boot manager (previously it was possible)
Incompetence or maliciousness?
I have given up dual-booting and just have a Windows VM for work things that require Windows. Less muss, less fuss and I can move the VM around as needed when moving between primary PCs.
This. And fuck secure boot. Nowadays almost any of can run VMs flawlessly.
did you have to buy a windows license to do it?
You may want to Google for a dev called Massgrave.
Is their GitHub account called massgravel (with an L at the end)? Or is that someone typo-squatting?
Just checked, massgravel (with an L) is right.
thanks, now it makes sense and it’s a nice reminder of why i left the windows eco-sphere over a decade ago
No why pay money for this to assholes,more over I use windows server edition which not possible to get if u are not business client and it cost 800$
windows server edition which not possible to get if u are not business client and it cost 800$
It probably depends on your uni, but students can get Windows Server licenses for free on Azure Education.
i don’t want to and that’s why i asked.
i stepped back into the windows eco sphere recently after leaving it 12 years ago and was wondering how people were getting around the activation now-a-days
My work has licenses I can apply for VMs when I’m keeping them for longer client work, so yes they are licensed in my case.
I wouldn’t do that for my own personal use though.
i left the windows eco-sphere around 12ish years ago and coming back has shown me that nothing has changed.
I would like to go this route, but I’m really confused about how to do it legally, or even in a gray area sense. I once purchased a Windows 10 Pro license. I’m not sure if that entitles me to being able to install Windows in a VM, but I would really like to do this to run some Windows-only applications that don’t seem to work in WINE
Yeah, that’s basically it. Buy a license and apply it when you install windows from the windows ISO installer on the VM.
If you’ve already used the license on a PC, you may need a new one or you might be able to transfer it if it’s a retail version, not an OEM version.
It’s not malicious or “ransomware”, and this is perfectly normal, default behavior for most devices - both macOS and Windows implement full disk encryption in a default install these days, and your key is almost always in your Microsoft Account on the Microsoft website. While Microsoft does a lot of crap wrong, in this case, Windows’s failure to decrypt under GRUB is security features actually kind of doing their job. Basically, trying to boot Windows through GRUB confuses the TPM, causing it to not want to give the keys in case the Windows boot partition has been tampered with by bad actors. Thus, you have to boot directly through Windows Boot Manager, not GRUB
Also, secure boot and TPM aren’t just some conspiracy by Microsoft to block Linux; they are attempts at implementing legitimately necessary security features. Full disk encryption supported by correctly implemented secure boot and an encryption chip are essential to having modern security. Linux is not blocked by TPM and Secure Boot; it is certainly possible for Linux distributions to take advantage of them to enhance their own security. I have implemented automatic LUKS full disk encryption that similarly fails to unlock if the partition has been tampered with on my Debian install. In theory, they can actually be used to help improve your security.
That is not to say I think TPM and secure boot are good, though. The really obnoxious thing about secure boot is that all the certificates are controlled by Microsoft rather than a standards body or a group of certificate authorities. While so far, Microsoft has kept it relatively open by providing the third party CA and the shim binary in order to avoid having its neck snapped by the FTC, considering the current administration, we don’t know how much longer they’ll keep it up, and they could actualize the much-feared blocking of Linux.
The other big problem with TPMs and secure boot is that often, there are so many different implementations and frequently major security flaws in their implementations that weaken their protection. A typical petty thief stealing your laptop still probably won’t be able to decrypt your drive, but a nation state can probably find a way. It doesn’t help that Windows doesn’t encrypt communication between the CPU and the TPM (luckily, the Linux kernel does that by default). Despite these issues, I’d say TPM and Secure Boot is better than nothing for most devices; not using them (EDIT: or a non-M$-controlled alternative, like a memorized drive password AND/OR FIDO keys, which may be better) at least in part means your device is more vulnerable to physical access and bootkit attacks than even most Windows laptops, and they are often the only tools at your defense
An addendum: Now the really smart thing I’ve heard people do is to keep the boot partition on a flash drive (possibly with a keypad or biometrics) that you keep with you at all times.
a nation state can probably find a way
There’s no “probably”, they can surely find the way, because the decryption key is saved on Microsoft servers, they just need a subpoena for getting it
Precisely. I just use probably as a catch all.
Is it possible to use LUKS with a password with a Windows NTFS partition and just have GRUB decrypt it to let Windows boot? Don’t intend to dual boot Windows ever but just curious.
Frankly I trust a password stored in my brain way more than whatever keys the TPM is storing. No way something being pushed this hard by Westoid tech corporations doesn’t have a backdoor that just unlocks everything for “approved” parties.
The password thing is pretty based, honestly. What you say is probably not possible, as the NT kernel would have to support LUKS, I’m pretty sure, which it doesn’t.
Why not both?
I think the first time I installed linux/grub on a repartionned windows drive, my first boot in windows it asked for the bitlocker key, I have it on a USB drive, it’s like 30 chars/number. Since then dual booting has always worked. Laptop is win10/linux and desktop is win11/linux.
EDIT: have not booted windows in monts, it asks for bitlocker key everytime booting with grub wtf!!!
distro?
MX Linux. Prior to install I disabled bitlocker in windows to be able to resize the part with gparted. Once in windows again I re-enabled it.
The MX installer is very complete, I was able to directly use LUKS to encrypt my linux partition, and I chose btrfs with multiple volumes. Once grub was installed I needed to change my BIOS to boot from linux partition, this is when my first boot in windows asked for the key.
thanks! You’ve satisfied my curiosity, and piqued my interest in MX Linux.
It really shouldn’t matter. I know what they’re talking about and it’s true.
I wasn’t asking for “proof”, I was asking for curiosity.
While there is a strong argument for incompetence, generally:
“Windows isn’t done until lotus doesn’t run”
Have you found a fix?
I had to disable bitlocker
The permanent “fix” that i done a few weeks later was to do single boot with fedora and move windows in a VM under KVM
Don’t know why but I just got your answer notification right now :)
My default boots to Linux, and my fix to boot windows (like once a month) is to press F7 at boot and choose windows bootloader so it does not ask for bitlocker key in this case.






