Hello there,

I have a question. If I’m doing windows linux dual boot, is there any possibiliy that windows can spy my data on linux? Or: if i got ransomwared on windows, is my linux part of my pc safe or not?

How can I prevent all above?

Thx

  • Sunoc@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Other systems should not be able to see your data on a Linux install as long as the disk is encrypted, which is proposed during the install of many distros.

    AFAIU, ransomware will try to lock all devices, USB drives, etc, so no, your Linux install is not safe from that if it is on the same machine. Even machine on the same network might be at risk.

    How to prevent ? Backup! Loosing your entire machine data should not be an issue but just a matter of re-installing the OS and recovering your data from a backup. Have at least two backup, including one outside of your house.

    About dualbooting though… Putting Windows + anything else on a single drive is a really bad idea and Windows WILL try and take over it, at least breaking the boot partition. More concerning, and it actually happened to me recently: when putting a Linux on one disk and Windows on an other in the same machine, the Windows somehow still managed to break the Linux boot partition…

    So if you can afford it and really want to have both OS, you should try and have two machines or at least install Linux on a drive that you can easily unplug.

    I hope this will be helpful, good luck!

    • AndrewZabar@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Like I said elsewhere, the ideal way if you absolutely need to run Winblows on the same machine, is to do so within a VM on the Linux host. Not usually an option if the purpose is gaming, and, well, usually the purpose is gaming.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I don’t think Windows will spy on Linux, but you never know, as we don’t have the source code of Windows to look it up. If you get ransomed, they can lock the whole ssd, even if your Linux partition might be encrypted already. And even if you have Linux on a separate ssd.

    To prevent all that, practice good use of Windows without going to questionable websites or downloading apps from random places. But the best would be to either have a different PC for Linux. You can buy a small factor PC for $99 these days, brand new. Or, each time before you boot into windows, you disable on the BIOS the SSD with Linux in it. This way, no Windows malware can “see” that there’s another SSD there, so they won’t be able to lock it. Unless of course they lock your BIOS too…

    • omzwo@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      BIOS /UEFI malware exist too. Your suggested best practices should also factor this in. Basically if you’re being targeted there’s nothing you can do but by being aware of these risks you have a better chance to keep yourself safe.

    • AndrewZabar@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      The BEST way if you must use Windows, is to have it in a VM on a Linux host. Isolated in its own sandbox.

      • Eugenia@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        It depends on the software. If it’s audio real time stuff you need to run, a VM doesn’t help.

        • AndrewZabar@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Yeah, and also games often require a real install. I think aside from those types of scenarios, the safest, most efficient and convenient is a VM.

  • Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I tried to dual boot for a while but it was just not worth the hassle as Windows always broke something and after almost every update I had to try and fix my Linux install. Windows is basically malware at this point.

    • Joël de Bruijn@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I work with a Grub boot for Win11 / Debian on the same disk (work provided laptop without the persuasion to change my employer MS-First policy) but one of the lucky ones I guess. No problem for 2 years now.

      Only thing after a big Windows update it forgets its TPM Bitlocker key for its own partition. Must type it like once in 2 months manually.

  • Papamousse@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Windows cannot access EXT4 or BTRFS by default. Also in Linux you can use LUKS to have your partition encrypted, and Windows even with a ext4/btrfs driver will not be able to read your data.

    Of course Windows, if infected, could wipe your partition table or things like this.

  • Fanmion@discuss.tchncs.deOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Thx for all the suggestions. Is there any mainboard which automatically unmount all other drives when you boot into an OS?

  • rapchee@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    if we’re being paranoid, unplug or swap out the linux disks while running windows
    i wouldn’t bother though, windows itself doesn’t mount non-ntfs partitions (again, unless we’re being paranoid and assume that they do, since it is relatively easily done, it’s open source, technically they could be able to do it)
    also people in this thread are not doing dual booting right, i have multiple pcs with windows and various linuxes, the latest machine has two distros as well, and i never had an issue, in many years (the oldest is an athlon x2 with windows 7 and mint 22.1)
    i think the key to my success is that i install them on separate drives, so windows has its own boot sector and everything, and then the linux bootloaders find it and do their own thing