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?

  • tea@lemmy.today
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    9 hours ago

    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.

    • Engywook@lemmy.zip
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      8 hours ago

      This. And fuck secure boot. Nowadays almost any of can run VMs flawlessly.

      • wildbus8979@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        7 hours ago

        You can even use SecureBoot and TPM in a VM ;) OVMF EDK2 fully supports both ;)

        SecureBoot is fine, sucks that vendors won’t add distro keys but you can do that yourself, or use the shim.

      • tea@lemmy.today
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        8 hours ago

        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.

      • anon5621@lemmy.ml
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        7 hours ago

        No why pay money for this assholes,more over I use windows server edition which not possible to get if u are not business client and it cost 800$

      • 9point6@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        You don’t have to

        If you only need it for 90 days before it expires, Microsoft will give you the VM for free (and if you’re particularly industrious, you might write a script that then installs a load of your shit for you to run after you fire up a fresh one)

        If you don’t care about potentially breaking the law you can run it forever with a couple of scripts you can find on GitHub

        If you don’t want to break the law but also don’t want to pay full price you can get a dubious but working key from sites like G2A and cdkeys

        If that’s still too sketchy there’s the OEM licenses (honestly not worth it since they can only activate on a single machine ever)

        Or finally you might feel sorry for Microsoft for some strange reason and want to go full retail price.

        Basically the same experience with all options for a lot of cases, they’re just happy to have users it seems

  • Buffalox@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    10 hours ago

    Microsoft secure boot is 100% made to be a pain in the ass for Linux users. It doesn’t add any security, but is instead a huge added unnecessary risk factor for data loss for users.

    • wildbus8979@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      7 hours ago

      I don’t know which distro you’re using, but in Fedora and Debian it’s pretty easy to install the signed version of grub and the signed shime and get full secure boot in Linux. No setup needed.

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      8 hours ago

      It technically does add security in that it prevents a load of attack vectors that would dodge most anti malware tools (i.e. the ones before the anti malware tool can start)

      But you’re right in that the execution of the idea is unnecessarily painful for Linux

      • Buffalox@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        8 hours ago

        OK so when did you hear of an actual successful attack that could have been avoided if the user had used secure boot?

        • 9point6@lemmy.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          edit-2
          4 hours ago

          Well boot sector viruses used to be all the rage in the 90s, they’re entirely impossible under secure boot

          Malware rootkits were a pretty big problem about a decade ago, I understand the techniques those mostly used are more or less impossible under secure boot now too

          Then we could go into all the government and adjacent industry use cases where state-sponsored targeted attacks are a real concern. Measures like filling USB ports with super glue and desoldering microphones on company laptops is not unusual in those circles, so blocking unknown bootloaders from executing is an absolute no brainer.

          Saying it provides no security is just not true. Your front door isn’t only secure if someone has failed to break in

            • 9point6@lemmy.world
              link
              fedilink
              arrow-up
              4
              ·
              6 hours ago

              I’m not recommending it, I’m describing why saying it adds no security is silly.

              The keys being compromised on some motherboards doesn’t mean the whole concept is suddenly inert for every single user

              If everyone has a copy of my passwords and authenticator keys, that wouldn’t suddenly make 2 factor auth a compromised idea.

              Hell, even if you are one of those people running a machine with the compromised keys, it’s still going to block malware that was written before the keys were leaked unless malware authors have also figured out time travel.

              • non_burglar@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                4 hours ago

                If everyone has a copy of my passwords and authenticator keys, that wouldn’t suddenly make 2 factor auth a compromised idea.

                Not sure how this relates. If you’re saying it was a good idea at the outset, then sure… If the keys hadn’t almost all been leaked by AMI and Phoenix. MS was supposed to have created a Microsoft Certified hardware vendor program for this, which fell apart pretty quickly.

                Secure Boot is a joke, both practically (there are many, many tools in use to bypass it) and in my professional circles, it is considered obsolete like WEP. My audit controls for Secure Boot demand that an endpoint management solution like InTune is deployed.

                You don’t have to take my word for it, obviously. I’m not trying to tell you how to live your life.

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    9 hours ago

    PCR is the name of a registered value in your TPM module.

    Did you disable or otherwise changed your Secure Settings in your BIOS? That would do it.

  • Papamousse@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    8 hours ago

    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.