How to get windows to not do disk checking or ruin my bootloader when i add a linux partition on the same drive. I don’t like the windows panicking when there is a linux partition on it and doing a variety of things, even if its not on the same ssd it STILL does disk checking but I have not seen anything worse than that on the same partition, but I need the space.

Dunno if this belongs in the linux subreddit but I mean if there is any way i can hide linux that could also work.

  • _thebrain_@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    If using efi (instead of bios), set up a second efi boot partition. Use one efi for windows and the second for Linux. It’s “non standard” but the efi spec does not explicitly forbid you having multiple partitions, and it will keep windows from disabling anything on the Linux boot partition.

    • Ooops@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 days ago

      set up a second efi boot partition

      This may or may not work. Recognizing a second ESP on the same disk is not required in the EFI standard. So it’s down to your board’s implementation if it works or just stops the moment it finds the first one.

      • _thebrain_@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Whereas I agree that it’s not guaranteed to work, I have set up more then a dozen systems this way and have never had it be an issue.

        • Ooops@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 day ago

          Honestly I have no clue how many EFI implementations actually fail there. Maybe it’s indeed a minor fraction. But I have personally seen two different ones (out of about a dozen -mostly laptops a few years old- systems where I tried it) and that’s enough to consider it a problem. (PS: Probably not conicidently one of those also had a broken SecureBoot implementation that rejected all key changes and only worked with the pre-installed MS ones. Maybe I’m simply good at finding the trashy ones.)

    • Korkki@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      set up a second efi boot partition.

      I have had a bad history with this. The windows partion constantly (noticed the competition and) overwrote the bootloader when it updated. With separate drives for both OS I no longer have this problem.

      • _thebrain_@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        I’ve done it with over a dozen computers by different manufacturers: primarily laptops: Lenovo, HP, toshiba, and I have yet to run into any issue.

        Windows assumes there is only ever going to be one efi, so it totally ignores the second partition. Linux has you mount the efi partition so you can choose it over the windows one.

        What problems have you had with it? There is lots of advice out there on the Internet saying this is the best setup, not just me.

        • hexagonwin@lemmy.today
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          have tried to do this once after seeing it somewhere, my motherboard firmware couldn’t boot from the second efi partition and only recognized the first partition. (i believe this was a gigabyte motherboard but not too sure)