• Kerb
    link
    fedilink
    arrow-up
    65
    arrow-down
    1
    ·
    edit-2
    8 months ago

    i use a different drive for my windows installation because that happened to often,
    and i swear it once managed to wipe the bootloader on the linux drive.

    i have no idea how it did that,
    but i avoided starting windows using the grub entry since then.

    • kadu@lemmy.world
      link
      fedilink
      arrow-up
      48
      ·
      edit-2
      9 months ago

      Having two drives is sometimes not enough, either. I have no idea why, but anytime Windows installs for the first time or goes through a major update (not the small security patches, but the periodic feature releases) there’s a random D20 dice throw to determine if it will randomly decide to create the bootloader and recovery partitions in another drive, even though your main installation isn’t there.

      I kid you not, Windows 10 once decided that my external SSD enclosure was the best place to put the bootloader.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        24
        ·
        edit-2
        9 months ago

        This happened to me! Did an update, unplugged my eSATA and BAM! Can’t find bootloader. I literally, physically facepalmed when I realized what happened. At least the old one still worked from the primary.

        I’ve done a ton of Linux updates and this has never happened to me once (yet).

  • Pan_Ziemniak@midwest.social
    link
    fedilink
    arrow-up
    46
    arrow-down
    1
    ·
    9 months ago

    Pfft, even 2 separate ssds for dual booting doesnt stop this from happening to me -___-

    On the plus side, this is the first i recall hearing of someone encountering the same issue, so i guess i dont feel as alone now.

    • Kerb
      link
      fedilink
      arrow-up
      27
      ·
      9 months ago

      it stopped happening to me after i stopped using the grub entry to boot windows.

      i now use my mainboards boot menu to select the windows entry when i need to boot it

    • fuckwit_mcbumcrumble@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      edit-2
      9 months ago

      Windows has a lovely “feature” where it installs the bootloader on a secondary drive if there’s one connected. It doesn’t install it on drive 1 and drive 2, just drive 2. I always disconnect all secondary drives before installing windows for this very reason.

      That said you can configure the windows bootloader to recognize your Linux (or grub) and just use that to manage booting two OSes and it’s less likely to not destroy things.

    • RBG
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      Is that actually easily fixable? Was planning to go dual-boot soon on my laptop and haven’t even considered this scenario.

      • Teppic@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        9 months ago

        It’s relatively quick and easy to fix if you have a live boot Linux usb stick …and probably a second machine so you can Google what to do. It’s just also rather worrying at the time.

      • Steve@startrek.website
        link
        fedilink
        arrow-up
        3
        ·
        9 months ago

        My old thinkpads have this great feature where the hard drive is easilly accessible on the side, so I leave the cover off and just swap the drive to boot into a different os

      • Kerb
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        iirc the last time it happened to me, i just needed to fix the uefi entry which wasnt that bad.
        (just remember to have a usb stick with a live image ready)

        if it were to overwrite your bootloader that would be a way harder fix.

        i dont remember if the second ever happend to me

      • raspberriesareyummy@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        9 months ago

        It’s the usual problem: if your employer IT refuses to budge, you get locked into a Windows (or Apple) ecosystem. I had the same. My solution was to remove myself from corporate IT, and use my own device.

        I use workarounds for the interfaces with corporate:

        • MS Teams Linux client (sadly discontinued as of 2022) still works out of a jail, but the browser solution is also tested and ready as backup should I be forced
        • Webmail instead of a proper mail proram - that’s a big trade-off, but I can work with it, as much as it sucks
        • Webex for conferencing (as it works properly with Firefox, contrary to many other solutions)
        • Web portals continue to work - even though sometimes I need a user agent switcher to pretend I am using chrome (fuck you @MS Teams)
      • CubitOom@infosec.pub
        link
        fedilink
        English
        arrow-up
        5
        ·
        9 months ago

        I’m using kde5 on X. To my knowledge, the only issues you might have with Nvidia on Linux is if you want to use Wayland instead of X. Unless you are someone who refuses to use non-free drivers for philosophical reasons, but then you wouldn’t be using Windows.

        I’ve been running an Nvidia GPU for over 6 years now on Linux without issues.

        I even am using a fairly recent 4070ti and was able to use it with proprietary drivers soon after launch and was running cyberpunk 2077 at 4k with high settings and ray tracing with an average 60fps with dsr.

        I also use the cuda cores for running open source llms locally and have no issues there either.

      • Ziglin@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        9 months ago

        On windows they make you install their annoying software to do driver updates and it sends random notifications and has a bunch of ads and other things I don’t want when installing software.

      • raspberriesareyummy@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        9 months ago

        It actually is worse than “that bad”. Windows 2000 wasn’t “that bad” - everything after that has gone downhill.

        Objective reasons why Windows is extremely shitty:

        1. with every new Windows version, the same settings are shuffled around and users have to re-learn the interfaces to find stuff they had been able to easily find before
        2. bloatware
        3. tons of software is shoved down your throat with opt-out options either not available, or you have to jump through literal hoops to get there
      • BreakDecks@lemmy.ml
        link
        fedilink
        English
        arrow-up
        8
        ·
        9 months ago

        It’s always funny to me when people defend something by saying that it’s “not that bad”, because that still acknowledges that it is bad.

        • r_se_random@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          9 months ago

          I mean I can take up issues with Linux as well. The driver support can be iffy at times, especially with Nvidia, gaming can be a challenge, depending on what game you’re playing.

          “Not that bad” is a phrase, which acknowledges issues but still contests something to be bad beyond acceptance.

          • BreakDecks@lemmy.ml
            link
            fedilink
            English
            arrow-up
            6
            ·
            9 months ago

            Oh please, half the time on most computers after installing stock Windows you’ll need to install the NIC drivers from a USB stick because you can’t download drivers locally without a NIC. With Linux, it pretty works out the gate. Significant driver issues haven’t been a real issue with Linux in about a decade.

            Nvidia drivers are especially weird to use as an example. Since the advent of AI, Nvidia Linux support has vastly improved since most AI use cases require Linux. It’s enterprise-ready at this point.

            As for the games that don’t work well - the binaries were only built for Windows, so Linux has to jump through hoops to run them. That’s not Linux’s fault, it’s the fault of the game developers. Thanks to the FOSS community those hoops are only getting easier to jump through. Most of the games that don’t work at all depend on some sort of horrific anti-cheat rootkit that any tech literate person should consider a dealbreaker even if they use Windows as a daily driver.

            And the games that do work, which is most of the games on Steam at this point, perform better on Linux than Windows on the same hardware because they don’t have to deal with the bloat of a Windows OS.

            I guess if you can accept ads crammed into every nook and cranny of the OS, constantly fighting with Edge over your choice of browser, reduced battery life and system performace due to OS bloat, having every single aspect of your computing experience built around corporate profits rather than user experience, and buying a computer every few years because of planned obsolescence you could settle with a bad OS like Windows.

      • Im_old@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        I always say, an OS is a tool, not a religion. I use Linux at home 98% of the time because it fits what I need to do and it’s snappier than Windows on my hardware and gives me more control, or maybe I know better how to do certain things in Linux nowadays that I’ve left Windows mostly behind. I use Windows at work because that’s what dictated, and also because MS Visio is only on Windows (I could use MacOS with Omnigraffle, but Macs are not available at my pay grade. Whatever). They pay me to work and be productive, and this means using Outlook/Teams, AD SSO integration with Edge, all the VPNs/network control/DLP agents. And luckily now I can use Linux subsystem in Windows, so I can work on the cli when I need to do something fancy. They don’t pay me to spend hours trying to find a way to work with their systems other than what’s supported.

        On the topic at hand (bootloader issues). Never had a problem personally, but Iast time I did proper dual booting (on the same drive) was with Windows8.1. Now I have different drives, with the bios configured to boot from the drive with Linux. If I want to boot on Windows 10 I actually have to change the boot sequence. And even then there is grub (from an old dual boot setup).

  • azenyr@lemmy.world
    link
    fedilink
    arrow-up
    36
    ·
    edit-2
    9 months ago

    Picture this: you buy a car. You buy a new set of wheels/rims and a new radio system with Android and whatever. You also put some new carpets on the floor of the car. Now you need to take it for a simple routine maintenance and checkup at the car brand official shop. After a few hours you go back there to pick you car up and it has the stock wheels, stock radio, stock carpets and everything and you ask where the hell is your stuff and ALL of them on the shop look at you confused like if they never seen any different accessory on that car before other than the stock ones, or don’t know what you are talking about. All they know is that the car is now “according to spec”.

    This is what it feels like after updating Windows with Linux in dual-boot on the same drive.

  • Jordan_U@lemmy.ml
    link
    fedilink
    arrow-up
    34
    ·
    9 months ago

    It’s at least gotten a bit better.

    There was a time when Photoshop and other programs used a copy-protection scheme that overwrote parts of grub, causing the user not to be able to boot Linux or Windows.

    They knew about it, and just DGAF. I don’t remember their exact FAQ response, but it was something along the lines of “Photoshop is incompatible with GRUB. Don’t dual boot if you use Photoshop.”

    Grub still has code for BIOS based installs that uses reed-solomon error correction at boot time to allow grub to continue to function even if parts of its core.img were clobbered by shitty copy protection schemes for Windows software.

  • mholiv@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    9 months ago

    With UEFI it’s waaayyyy less bad than it used to be. There is no more MBR in the traditional sense for windows to clobber. Windows and Linux can share an UEFI boot partition both dropping in their appropriate boot binaries.

    Even if you install Linux and Windows on separate devices, unless you do something strange they will share the same UEFI boot partition.

    • bulwark@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      9 months ago

      Personally, I do 2 separate UEFI boot partitions. Grub is the default which can select the windows boot partition. Then Windows can do whatever it wants to it’s own boot partition.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      9 months ago

      Man, when I first messed around with Linux I hosed the MBR more times than I can remember. Either through Windows smashing it with an update, or my dumb ass doing stupid shit in gparted.

      Pretty sure I was able to recover the important files somehow, but my parents banished me to the old family desktop for that pretty quick.

    • muhyb@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      9 months ago

      By something strange, I assume you mean installing Windows on a disk with the other disks disconnected so Windows will create its EFI partition on that disk (since it’s dumb and will create EFI partition on the first disk it finds, even if it’s an HDD). Though UEFI doesn’t mind, will still list all the bootloaders from different disks without any problems. You can even unplug and plug them as you wish, it still won’t be corrupted this way.

  • TacoNot@mander.xyz
    link
    fedilink
    arrow-up
    29
    ·
    9 months ago

    I have power switches for my drives. If I want to boot into windows, I turn that one on and the others off.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    edit-2
    9 months ago
    • install windows
    • adjust main partition so you have space for Linux
    • install linux, during install create anither efi partition, and root partition.
    • linux probes foreign OS (some distros might not) and creates a chainloader entry from your new EFI to Windows EFI
    • set BIOS to boot from linux EFI

    Windows never knows the other partition exists and leaves it intact.

      • jose1324@lemmy.world
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        9 months ago

        Don’t even have to do that. Install windows first, then install Linux with refind bootloader on preferably a separate disk. Done

        • BCsven@lemmy.ca
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          edit-2
          9 months ago

          You do need a separate EFI, even though linux finds EFI, otherwise windows update trashes it randomly and why the meme we see here exists, with separate EFI windows doesn’t know about it. You can shutdown windows mid update and boot linux, then reboot back to windows and update will continue. Siloed System

          • jose1324@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            9 months ago

            That’s literally what I did yesterday with my method. It works, Windows has never trashed it

            • BCsven@lemmy.ca
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              edit-2
              9 months ago

              It will, thats why that meme exists.

              Not during typically reboots, but when some windows update or autofile repair happens it thinks it is the only OS on that partition and does what it likes.

                • BCsven@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  9 months ago

                  Then you have been lucky, because most peoples experience with grub EFI on Windows partition is windows will eventually scrub it.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        Yes. When you install Linux it will auto detect the Windows EFI partition and put boot stuff there by default, but then windows comes along and will randomly trash that setup. So during install don’t go with the suggested option, instead use the partitioning tool to creat another small EFI boot partition elswhere on disk, leaving Windows EFI and OS paetitions as is. Also create your root and home partition(s). Install to those partitions, then Linux should prompt for Probe Foreign OS and add a chainloader entry to your grub menu. This entry, when selected, points grub to windows EFI partition ID and hands off the boot process to Windows. Windows is unaware it has been chainloaded. As long as you set BIOS to load directly from the LINUX EFI entry then you will boot to Grub with Linux/Windows Dual option…But technically it is not a true Dual Boot, it is a sequential boot I guess. I have had this for 7 years on same install and boot between W10 and Linux daily. Windows has never touched my Linux EFI.

          • BCsven@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            I responded how to via another comment, but wanted to mention that you may have a chainload to Windows already with your dual boot, but the main point was using two EFI partitions and chainloading to the other one, so Windows isn’t ever in charge of files in your linux boot partition

          • BCsven@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            9 months ago

            For something like OpenSUSE you go into YAST2-GUI and click the probe foreign OS and then it asks you if you want Windows or Linux as the default boot. But to do it manually you add a menu entry to /boot/grub2/custom.cfg. or in /etc/grub.d/40_custom. After editing this you will have to run grub2-mkconfig -o /boot/grub2/grub.cfg which will compile all the grub info into /etc/grub2/grub.cfg I believe the custom.cfg entries end up after the 40_custom entries that the OS may have included. There is a persistent method entry if you did want to edit the /etc/grub2/grub.cfg directly, but probably not advised.

            Here is my entry for Windows boot partition and location of MS boot. Also below that is a UEFI entry for geting back to the BIOS, not relevent to this topic, but just so you see how the menu entries are defined. In my system these are at the end of all the other Linux entries.

            ### BEGIN /etc/grub.d/30_os-prober ###
            menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os $menuentry_id_option 'osprober-efi-4E48-193F' {
            	insmod part_gpt
            	insmod fat
            	search --no-floppy --fs-uuid --set=root 4E48-193F
            	chainloader /efi/Microsoft/Boot/bootmgfw.efi
            }
            ### END /etc/grub.d/30_os-prober ###
            
            ### BEGIN /etc/grub.d/30_uefi-firmware ###
            menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
            	fwsetup
            }
            
    • ramble81@lemm.ee
      link
      fedilink
      arrow-up
      11
      arrow-down
      2
      ·
      9 months ago

      Heard you and that wouldn’t fly. Just like you’re not supposed to run Windows on mission critical systems like nuclear reactors (seriously, check the EULA), running multiple operating systems side by side is most likely out of a supported configuration and “use at your own risk”. You’d have zero standing or less for any sort of lawsuit.

      • DaddleDew@lemmy.world
        link
        fedilink
        arrow-up
        17
        arrow-down
        1
        ·
        9 months ago

        But just because it is in the EULA doesn’t make it legal. At a time where big tech is being kept under a microscope for antitrust regulation, I’d say that an OS that actively destroys other competing OSes on the machine it is installed on should be considered an unfair anti-competitor tactic.

  • UnculturedSwine@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    9 months ago

    If I dual boot windows, I tend to disconnect my Linux drive any time I do anything on the Windows side. Even installing Windows fresh using default settings, it managed to completely erase my Linux disk to put the Windows bootloader on it even though I selected a completely different disk for the Windows OS. Won’t be making that mistake again. And by mistake I mean dual booting Windows. That pile of spaghetti code gets a VM.

    • ElderWendigo@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      I got used to windows overwriting the MBR and could generally work around that. But the last time I tried windows/Linux dual boot, it was windows that got caught in a recovery loop after a windows update. Linux was fine. I was impressed at how thoroughly Windows had killed itself on a basic unmolested install. At that point I decided I was done with windows on bare metal unless it was the only thing running. Windows goes in the virtual sandbox or plays by itself.

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    22
    ·
    9 months ago

    Two ssds is when you need to run stuff on windows that requires the bare metal.

    Windows needs to be contained, controlled and told who is the boss, I suggest using Tiny11 or MicroXP in a VM for stuff that can’t run in wine.

        • Hexarei@programming.dev
          link
          fedilink
          arrow-up
          8
          arrow-down
          1
          ·
          9 months ago

          6 years was “not too long ago”, eh? Right this way grandpa, let’s get you back to your rocking chair

          • BeigeAgenda@lemmy.ca
            link
            fedilink
            arrow-up
            3
            ·
            9 months ago

            Okay it’s long for people where it’s 6 years ago they learned to tie their shoes.

            Gramps here still thinks LOTR is a recent movie.

            • Hexarei@programming.dev
              link
              fedilink
              arrow-up
              3
              ·
              9 months ago

              I’ve been in tech since 2003 in some form or another, I’m right there with you in thinking XP feels recent. My daughter was 2 in 2018, so it’s definitely felt super quick to me too.

        • KillingTimeItself@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 months ago

          ok so technically, the 2018 support was post wannacry? I want to say. I dont believe they totally supported it up until quite a few years prior to that.

          • BeigeAgenda@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            I was struggling to find the newest XP related news to prove my point, it was the best I could do.

            By 2018 XP had been replaced by Windows 7 for several years.

    • this_1_is_mine@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      Micro xp… I got that to run on a Intel 400mhz laptop with 32mb of mainboard soldered sdram chips. Nothing like a a operating system under 200mb installed with a GUI.

  • CubitOom@infosec.pub
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    3
    ·
    9 months ago

    Windows actually works better in a vm on Linux than on bare metal. And it’s got a much smaller chance of breaking my PC that way too.

  • SunRed
    link
    fedilink
    arrow-up
    20
    ·
    9 months ago

    For the rare occasion that I need Windows bare metal, I have a Windows 11 installation on a usb ssd originally installed via the Rufus Windows-To-Go option that I can just plug into the system and boot off it whenever I need it without it touching my uefi menu or partition on my internal drives. This way I can also use it on another machine if that need arises. Windows can even trim the usb drive it’s running on. It pretty much works as if installed internally.