A while ago I decided to get an extra m.2 drive and put Linux Mint on it to try and switch off Windows. I unplugged the original drive, plugged in the new one, put Mint on it, then put the old drive back in. This has allowed me to dual-boot. However, Ive since fully committed to the Linux drive and haven’t used the Windows drive in a long time. How do I put Linux on both drives?

I would like to fully encrypt both drives since I dont think I did that when I installed Mint. I would also rather have the original drive as the main drive again because I think it’s in a faster slot for the motherboard. Is there a way to make this change without a fresh install? I could probably backup most of my important data to a flash drive but I’d rather not. (I’m fully ok with losing everything on the Windows drive though).

  • JillyB@beehaw.orgOP
    link
    fedilink
    arrow-up
    3
    ·
    3 hours ago

    Thanks for all the info. The reason I didn’t want to do a clean install wasnt because I didn’t want to back things up. I just knew I would forget game saves or have program settings revert to default or whatever and spend the next couple weeks slowly running into small issues with my setup.

    • frongt@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      32 minutes ago

      Pull the current Linux drive. Install Linux with encryption to the current windows drive. Put the other drive back in, copy files and settings over, then wipe it.

      You could also use cryptsetup-reencrypt to encrypt the current Linux drive in place. I’ve done it, works great. But you should always have a backup of anything you can’t afford to lose.

    • NaibofTabr@infosec.pub
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      You’re welcome, and yeah growing pains every time with a new install. But you do it a little better each time.

      One recommendation - when you do reinstall, don’t use the default/automatic partitioning. Manually set up your /home directory as a separate partition from /root. This lets you reinstall the OS without having to touch your user files. When you reinstall again, all you have to do is select the existing /home partition to use as the new install’s home (and make sure not to format it). This makes your install a lot more flexible, and your OS a lot more disposable.

      If you do manual partition configuration, don’t forget to also create a /swap partition that is at least 1.5x the size of your RAM.

      • imecth@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        5 minutes ago

        Separating home is unnecessary these days with btrfs, Fedora for example will let you reinstall while preserving /home/.

      • Ghoelian@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        49 minutes ago

        Another benefit of a separate home you can keep is that a lot of linux-native programs store their preferences and other stuff in ~/.config or ~/.share, so you get the added bonus of not having to set these programs up again as well.