I just got a new laptop and installed Linux on it. I mainly run OpenSUSE.

Getting full encryption on both was a bit of a challenge and I had no idea what I’m doing. Will having the swap partition in the middle break things? Did I really need so many partitions (Mint and OpenSUSE don’t show up in eachother’s boot menu)?

I’m probably not gonna change this layout (because reinstallation seems like a pain) unless the swap partition’s position is a problem. I’m just curious how many mistakes I made.

  • phanto@lemmy.ca
    link
    fedilink
    arrow-up
    66
    ·
    13 days ago

    Never more in my life have I wanted to send a stranger a larger hard drive.

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    48
    ·
    edit-2
    13 days ago

    I think the partitioning itself is fine, but I wouldn’t have 3 operating systems on a 256 GB NVMe, because I’d be running out of space a lot.

    if you won’t ever use Windows, you can nuke it. Then I’d consider making one of the Linux ones a VM - if you’re trying out that distro. That will cut down 12 partitions to 5.

    Lastly, you can look into btrfs to make better use of space between (the current) p11 and p12: you can make them subvolumes that won’t eat up each other’s storage when not in use.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      2
      ·
      13 days ago

      I’m only have about 20GB of files so I think I’ll be fine on space.

      I’m keeping Windows 11 around in case I need it for … IDK taxes (though I don’t have secureboot enabled because [points to image above]). A VM won’t work for the Mint one, I need it separate for reasons I won’t go into.

      Btrfs was installed in default but I only know how to do full-disk encryption on ext4. Apparently btrfs doesn’t have built-in support for it. I really liked how it was neatly organized into subvolumes but alas.

      • smegger@aussie.zone
        link
        fedilink
        arrow-up
        8
        ·
        13 days ago

        Get a bigger drive. Swapping them out on modern laptops is often quite easy. Grab a copy of the manual or search for videos if you want to know more. Replacement 1tb nvme drives can be quite cheap these days, 2tb ones aren’t especially price prohibitive either.

        • Tenderizer78@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          1
          ·
          13 days ago

          Why would I get a larger drive when I have zero need for more space? That’d be like buying a huge American-style car because other cars make me feel insecure.

          • monovergent 🛠️@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            13 days ago

            The need for a larger vehicle might not arise from one week to the next, but the need for more gigabytes can. Windows 11 will happily eat up its entire partition next time it decides to update.

            That said, as I type from my computer with only a 60 GB SSD, just make sure you have a plan for when that storage runs out.

        • rirus@feddit.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          13 days ago

          This is the way, there were instances where M$ updates removed the Linux Boot options. So its better to keep them separated. Also a Malware on one system could infect the others.

  • Gagootron@feddit.org
    link
    fedilink
    arrow-up
    15
    ·
    13 days ago

    I recommend that you take a look at LVM. It can help you manage your partitions without much planning beforehand.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      7
      ·
      13 days ago

      I’m averse to installing things that don’t come with my distro. More software means more risk of a malicious update (which is the greatest security threat I face). Also seems a bit hacky so I’d be worried it’d cause instability. Plus I’m just not that technical.

      • Gagootron@feddit.org
        link
        fedilink
        arrow-up
        11
        ·
        13 days ago

        Well, good news then: lvm comes with most modern linux distros. In fact, it is an option you can enable when installing linux mint.

        I use it on every system that I run (workstations and servers) and never had any issues.

        It really just makes partition management way easyer: With normal partitions you cannot grow any partition without moving all other partitions after it. LVM can do it without touching anything else.

        The best case for semthing like this is when you buy bigger ssd. You can copy the data with dd and then grow any and partitions that you want without hassle.

  • Tenkard@lemmy.ml
    link
    fedilink
    arrow-up
    13
    ·
    13 days ago

    I would create another couple of efi partitions, just to confuse attackers more

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      13 days ago

      I am afraid that in the future something I need will require Windows 11. Whether that be interacting with the government or maybe if I go back to university.

      • dallen@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        13 days ago

        Can’t speak to your exact machine but nowadays the license tends to be tied to the hardware.

        If you are capable of manual partitioning then you should be able to reinstall Windows quickly if needed.

          • gravitas_deficiency@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            ·
            13 days ago

            Tbh I will usually simply swap out the OEM drive for a bigger and faster (and typically cheaper than the OEM upgrade option, per size) one the second I unbox it (optionally, go through the setup process before taking it out, so it’s ready to go next time you want to plug it in). This lets you not waste space on that “rainy day” contingency (which I’ve almost never actually needed). The one exception (and I keep a dedicated laptop around for this) is automotive diagnostic suites with proprietary USB hardware - I’ve got an old thinkpad still running windows 7. XP would honestly be better, because a lot of that shit doesn’t like “new” versions of windows.

            • Tenderizer78@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              13 days ago

              I do not need more space. I need 25GB per Linux system and 64GB for Windows (which I’m going to backup anyway), plus 20GB of data.

              I may keep Windows 10 on my Desktop too. It’s nowhere near as scary as Windows 11.

        • Tenderizer78@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 days ago

          Depends whether they’ll start using TPM in combination with kernel-level anti-cheat to ensure you don’t use AI in an exam or something. I don’t know what the future holds and barely understand what a TPM does.

          • utopiah@lemmy.ml
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            13 days ago

            At some point if they have ridiculous restrictions one might consider … doing the test in person, in a room provided by the actual school or that THEY provide the hardware.

            Anyway IMHO the bigger point is that a lot of my own inaction (I won’t speak for others) came from fear of problems that rarely, if ever, materialized. I would recommend to move on and if the problem does actually arise then consider solutions at that point.

            I uninstalled Windows on my SSD years ago (despite paying for it, forced by OEM deals), didn’t regret it once. In fact, I wear it as a “badge of honor” with pride. When someone tells me I “have” to use Windows for whatever reason, I tell them I can’t and that usually leads to interesting conversations.

            • Tenderizer78@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              13 days ago

              Yeah I’ll probably try to work out how to back it up. Don’t want to have to give Microsoft money though so I’ll clone it and store it on a USB.

            • Tenderizer78@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              13 days ago

              To prevent cheating, or to verify identity. IDK. As mentioned I barely understand what those things do.

      • Otter@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        ·
        13 days ago

        It should be possible to grab the license key before you wipe it. You could also copy it into an external drive and store it away as is

        • Tenderizer78@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          13 days ago

          I’m not sure the refurbisher I got my laptop from even gave Windows a license key. It kept bugging me to create an account to fully activate it or something, I should boot into it to check but the thought of opening up Windows 11 just gives me the creeps.

      • CrackedLinuxISO@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        13 days ago

        The pain of keeping it around will outweigh the pain of needing it and not having it.

        Quick boot into windows to help a friend test something on your machine?

        • Twenty-five bajillion updates since you never logged in
        • Windows “helpfully” cleaning up your Linux bootloader
        • Any shared NTFS partition between windows and Linux is almost guaranteed to be left in a “dirty” state when windows shuts down, meaning you have to run ntfsfix before Linux will mount it again

        And suddenly, that’s where you’ll be spending the whole afternoon. I agree with the others who say a VM is probably good enough.

      • AndrewZabar@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        13 days ago

        Virtual Machine.

        My laptop came with Windows 11, I nuked it and installed Linux before even booting lol.

      • monovergent 🛠️@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        13 days ago

        Are you able to install a second SSD in your laptop? If you really need to keep it around, it’s best practice to have Windows on its own physical drive.

        Or if it’s feasible, make your old laptop your dedicated Windows machine.

  • igemnace@lemmy.zip
    link
    fedilink
    arrow-up
    10
    ·
    13 days ago
    • You don’t need multiple EFI system partitions! That’s why Mint and OpenSUSE don’t show up in each other’s boot menu (or at least that’s the first step, depending on your bootloader). The intention with the ESP is you put all EFI executables for dual-booting (and triple- and beyond) in there.
    • Swap partition is fine anywhere. But as an aside, you can also just use a swapfile. Makes it easy to change the size dynamically. https://wiki.archlinux.org/title/Swap#Swap_file
    • /dev/nvme0n1p6 I’d wonder why that’s needed. /boot on /dev/nvme0n1p10 too, that’s not strictly necessary.

    None are game-breaking! You can just note these down for next time you have the itch to tinker.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      13 days ago

      I was looking for: Cheap, used, 1920p display, AMD CPU, 16gb RAM, presence of SSD, Linux bluetooth drivers, at least 2 USB ports, and a non-American brand. Storage capacity is something I’d only really care about on my gaming computer (or if I was still engaging in piracy).

  • gonzo-rand19@moist.catsweat.com
    link
    fedilink
    arrow-up
    7
    ·
    13 days ago

    I really don’t think 60 GB will be enough for daily use unless you have your home folder on a separate drive, which it doesn’t seem is the case from your screenshot.

    I have mine on a separate drive and my system partition (150 GB) is half-full. Is there a reason for your 25 GB per Linux installation rule?

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      13 days ago

      25GB is what Ubuntu says is the minimum, and I’m extrapolating that to all distros. Windows says 64GB. I’d be surprised if I need more than 64GB per Linux install with just software installs.

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    13 days ago

    If it works, it works. Unless you’re working in Espionage, anything is honestly fine as long as your main storage is encrypted. The boot loader exploits still can’t unencrypt things, just allow access to the data, which…still can’t be decrypted as as we know.

    It’s fine.

  • verdigris@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    13 days ago

    Is there any reason? You’re effectively wasting half the drive by using that space for OSes you almost never use.

    If you ever happen to need Windows, which I don’t see happening as you yourself can’t imagine an actual use case, you can just go to the library or borrow a friend’s computer or maybe use your phone.

    As for Mint, do you just have it to experiment with? If you’re just trying to try out other distros, a virtual machine or even live USBs are much easier ways to quickly try out new systems without having to clear actual partitions.

    If you had much more storage then sure, waste some of it, but you’re really gonna be missing that 120gb if you use your computer for… basically anything.

    The order of the partitions basically doesn’t matter at this point – I think having a boot partition first used to be important for MBR schemes but I’m pretty sure in the UEFI era you can have them in whatever order. As others have mentioned, you could combine your EFI partitions, but doing so to an already installed system is slightly complex. You also could shrink some of your EFI and boot partitions, I’m not sure of the recommended sizes off the top of my head but I think they could be smaller. On the other hand, your swap partition should probably be bigger – making it the same size as your RAM is a good rule of thumb and will enable hibernation (I think).

  • NewNewAugustEast@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    13 days ago

    I too think you should remove windows. But if you don’t want to, take a clonezilla image of your hard drive now. Store it somewhere else of course. You then can always recover if this scheme gets weird.

    Its the first thing I do when I get a new laptop. Then wipe windows. Then install Linux. If I have hardware issues I can simply restore windows for warranty.

    In any case, I would pick one of those two Linux to be a primary. You don’t want to get rid of mint or make it a VM. Ok third option: distrobox it.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      13 days ago

      I probably should somehow get rid of Windows 11. It doesn’t deserve to stay installed just because I might need it and have to reluctantly use it in 2027-2028. I’m not gonna change the partitioning system anytime soon unless the swap partition position is problematic.

  • mio@lemmy.mio19.uk
    link
    fedilink
    arrow-up
    2
    ·
    13 days ago

    Is the swap space unencrypted? If so it could potentially weaken overall system encryption

  • rjek@feddit.uk
    link
    fedilink
    arrow-up
    4
    arrow-down
    4
    ·
    13 days ago

    You have swap, which is pointless in this day and age, and will just burn a hole in the flash and delay the OOM killer doing its work. Look at ntfsresize to shrink that Windows partition down to the minimum. Then maybe image the partitions and obliterate them from the SSD. Use LVM instead to give yourself future flexibility. 1TB NVMe SSDs are so cheap these days they might as well put them in boxes of cereal.

    • rirus@feddit.org
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      13 days ago

      You can set the swappiness so that RAM gets filled before SWAP. You need it if your RAM isn’t large enough for the stuff you want to do. You also need it for Hibernation to be the same or larger size like your RAM. Without it you can only suspend. You MUST use encrypted SWAP if you want to be really secure since otherwise your encryption key might be written onto your Nvme.

    • patatahooligan@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      13 days ago

      The common misconception that swap is pointless stems from misunderstanding what it’s supposed to do. You shouldn’t be triggering the OOM killer frequently anyway. In the much more normal case where you’re only using some of your RAM for running applications, the rest is used as a filesystem cache/buffer. Having swap space available gives your OP the option to evict stale application memory from RAM rather than the filesystem cache when that would be the optimal choice to make.

      This page explains it detail: https://chrisdown.name/2018/01/02/in-defence-of-swap.html