• bitfucker@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    6 months ago

    Yes, first you need to resize the partition to accommodate the new OS. Usually 40-60 GB is good enough for minimal linux installation if you didn’t do any gaming or other massive applications. The resizing can be done in windows using disk management utility baked into windows, or some other partition manager (easeus, magic tools, etc). After that, linux can be safely installed in the free space as a single partition.

    Now, sometimes the bootloader is fucked, but it is quite easy to fix. In fact, if you use grub, it usually runs os-probe for you to check for any other OS. So sometimes, fixing it is as simple as rerunning grubmkconfig. But there are other times where it is not as simple. It will vary depending on what happened and too long to list here. Arch Wiki usually covers a lot of the topic so you could try searching there, especially on the topic of boot sequence.

    Lastly, if you need to move the partition, the data already inside will need to be moved too. This can take time depending on the size. But it is doable and safe.

    If, later down the road you want to remove either OS, you can simply remove the partition after moving the data first. Linux can mount ntfs natively so no problem there. On windows, there is a program called ext4 explorer or something along the line to browse and copy from linux filesystem (which is usually ext4). Don’t forget to remove the boot information too after you’re done removing the partition.

    Now there is also the other suggestion to use a live environment but I didn’t suggest it since the experience can be lacking and more hassle in and of itself.

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      6 months ago

      I want to add to this that Windows sometimes has its own ideas and decides it owns the disk. I had a dual boot with Windows and Linux and Windows updated and fucked up the file system. I was able to recover almost everything without that much issue, that it did require some extra tools and some knowledge. The boot partition I never recovered though. (I was able to fix it to get it to boot into the Linux install again, but not Windows no matter what I tried.)

      This was about a year ago, maybe a bit more. The issue I had with Linux prior to this, which is why I was dual booting, was gaming. At this point gaming was perfectly fine for me to ditch windows, so I just grabbed all the files I needed to keep and set the drive up new with a fresh install.

      • lud@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        6 months ago

        In general dual booting windows and Linux on the same disk is risky.

    • cordlesslamp
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 months ago

      Thanks, but on second thought I don’t want to risk anything as I’m not quite the “technical” kind. I don’t even know how to dual boot 2 different windows version. I don’t think I’ll be able to fix it if anything broke.

      So I’ll buy another cheap SSD and put Linux on it while unplugged my old SSD. Then I’ll be choosing the boot drive during POST.

      I’m damn sick of Windows BS, I hope this’ll work out.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        Yeah, that’s fair. But I will still recommend anyone trying out linux AND having a problem to consult Arch Wiki when they can. It is amazing what they have there. It will also increase your technical understanding of how your system works overtime. But if you don’t have any problems when driving linux, that is good too. It just means linux for the masses is coming closer.

        For some distro recommendations, if you love to tinker, I’d say go arch. You will learn a lot about your computer too, and it is also how I learn about mine and get the know how for a lot of things now. But also, if you don’t have the time to tinker, I’d recommend bazzite. I’ve read their documentation and came to the conclusion that if anything goes wrong, it would be easy to recover from it, has great community, and is based on a solid distro.