I thought I was safe from this if I installed windows on a completely separate harddrive… I clearly overestimated Microsoft’s ability to make on operating system that does not act like literal malware. Oh well! I guess I’m 100% linux now.

  • Jake [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    74
    arrow-down
    1
    ·
    3 years ago

    You likely have secure boot and a Microsoft package key installed in UEFI. They likely did what they are supposed to do and removed the unsigned software.

    You must either sign your own UEFI keys using the options in your bootloader that may or may not be present, or you must use a distro that has the m$ signed secure boot shim key. These are the only ways for both m$ and Linux to coexist. Indeed, with a shim key (Fedora/Ubuntu) you can easily have a windows partition on the same drive without issues.

    Secure boot is a scheme to steal hardware ownership. Of course they say it is not because the standard specifies a mechanism to sign your own keys. However the standard specification is only a guideline and most consumer grade implementations do not allow custom key generation and signing.

    If you need to do your own keys, search for the US defense department’s guide on the subject. It is by far the most comprehensive explanation of the system and how to set it up correctly. They have a big motivation to prevent corporate data stalking type nonsense and make this kind of documentation accessible publicly.

    If your bootloader does not allow custom keys, there is a little known tool called Keytool that allows you to boot directly into UEFI and supposedly change the keys regardless of the implemented utility in the bootloader. I have never tried this myself. The only documentation I have found was from Gentoo, but their documentation assumes a very high level of competence.

  • spaghettiwestern@sh.itjust.works
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    3 years ago

    Windows went a step further on my machine. I thought it had just screwed up my bootloader, but when I went to restore it my Linux partition was completely gone. Windows Update had deleted the partition.

    Malware is right.

  • lemmyreader@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 years ago

    Welcome to the club :-) Microsoft, the true champion in overwriting boot loaders since 198…someth.ing TM ©

  • Kerb@discuss.tchncs.de
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

    welcome to the club 😂

    did it overwrite your GRUB partition or did it just remove the uefi entry?

    iirc the later is pretty easy to fix with efibootmgr if you have a live cd / usb

    • TheCMK@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago

      the partition was still there, but if i tried to boot from it would just kick me back to the bios. unless there’s some obscure grub bug that happened to trigger exactly after i booted into windows i guess…

      the fix was pretty simple, i just reinstalled grub from a live environment.

  • Cyborganism@lemmy.ca
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    3 years ago

    This happens often. There’s a lot of documentation on line on this topic. You can probably fix it with a bootable Linux USB key, mount your Linux partition, chroot into it and run grub to reinstall it in your efi partition.

  • JackGreenEarth@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 years ago

    Yeah, I didn’t risk dual booting. I have Windows 10 in a VM and a Windows 11 To Go USB drive.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Was your LINUX efi partition on the separate drive? and are you using Linux Grub as the dual boot option?