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.

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    25 minutes ago

    No. You can’t. Have backups and get comfortable with your distributions bootloader reinstallation process.

  • MalReynolds@slrpnk.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    If there’s a way under Gaia’s green earth to put it on a separate drive, do that. Stick windows on an external NVMe on a fast USB / Thunderbolt, or many laptops have a WLAN port you can shove a NVMe into (often faster than SATA, has a PCIe lane, so give it to linux). Then use BIOS (F12 or whatever) to swap between them, or boot to linux first and let GRUB start windows. Back when, I used REFind on macbooks, if I recall it gets in there earlier but winblows is likely onto it by now.

    This problem has been so persistent that it indicates malice aforethought from M$, so if possible give it it’s own lesser device until you can find an alternative to that holdout software (sympathies if it’s Photoshop or AutoCAD). Perhaps there’s a way to run it on Wine / Proton.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    5 hours ago

    You’ll have to repartition your disk as GPT (which will delete all your data, so you’ll need to back everything up), then install them both again. GPT disks use an EFI partition that can hold multiple boot loaders. Install Linux first, so it creates a larger EFI partition. Then when you install Windows, it should use the same partition. In the UEFI (BIOS), you’ll be able to select which one you want to boot. Linux’s boot loaders (like GRUB) can usually show the Windows install as a bootable option. Windows’ boot loader will only boot Windows.

    One thing to note is that you’ll need to run the grub setup again after you install Windows so you get it as an option at boot. How you do that depends on your distro. In Ubuntu and its derivatives, it’s just sudo update-grub.

  • sp3ctr4l@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 hours ago

    You can’t.

    Windows will rewrite your boot partition, when it feels like it.

    It can be commanded to do this remotely, also. Its called a Windows Update. And Windows buries itself below Ring 0 via Pluton/TPMv2.

    It does this because the NSA likes being able to keep tabs on everyone.

    The precise/exact way this works is hardware/setup dependant, and changes every 6 months or so, ish, but yeah this bootloader fuckery nonsense has been going on for years now, in dual boot setups, and there really is not a plausible explanation for this continuing as a persistent ‘problem’, other than Windows makes NSA backdoors into your entire system, or breaks shit while trying to.

    Dual booting is dumb if you value system security and stability.

  • sneaky@r.nf
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    You’d be saving yourself a headache if you use separate physical drives. I was able to get a dual boot to work on one drive temporarily, but it broke every time Windows updated.

    In the age of Bitlocker and UEFI windows recognizes potential drive contamination at a very early point in the boot process. So it will look like it’s working fine at the start, but once you boot into the linux partition, Windows is going to request disk checking at next boot and potentially write over things.

  • hexagonwin@lemmy.today
    link
    fedilink
    arrow-up
    4
    ·
    7 hours ago

    with UEFI, i don’t think it’s much of an issue as it once was. i have one machine with windows and linux installed, windows doesn’t mess up linux’s bootloader/partition.

  • _thebrain_@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    10 hours 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
      3
      ·
      edit-2
      9 hours 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
        2
        ·
        6 hours 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.

    • Korkki@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      9 hours 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
        ·
        5 hours 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
          ·
          3 hours 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)

  • clifmo@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    I just hit a key to skip checking when booting windows. And the check only takes a few seconds if I miss it

  • Evil_Incarnate@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    11 hours ago

    If you’ve got a desktop, and using sata drives, you could use a SATA Power switch panel. Basically on off switches for drives so you can turn off the Linux drive when booting windows.