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.

  • data1701d (He/Him)@startrek.website
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 hours ago

    Scared

    On a more serious note, as others have said, you’ll probably burn through these weird storage limitations quickly.

    Also, what do you mean by “sensitive matters” on Mint? Because almost any way you spin it, I feel like it’s not a great idea:

    • If you’re talking professional, confidential work with clients, keeping it on the same device where you do anything personal sounds like a terrible idea, and it’s probably worth it to shell out for a dedicated device just for this.
    • If it’s more personal things like government documents, medical records, and other things I’ll neglect to name here, running a separate operating system just for those just feels like unnecessary paranoia and will cause you unnecessary trouble. If you’re careful, it shouldn’t be a problem - the major browsers prevent file access through protections against cross-site scripting.

    Also, as I said in another comment here, please upgrade that drive before you put a lot of data on it. If you don’t and you run out of storage later (a near-certainty on 256GB), you’ll have to go through the effort of getting everything copied, which may include equipment purchases and several hours of your time when you could jut do it right now while your important files are still small enough to fit on a flash drive right now. Save yourself the future trouble.

    Anyhow, I wish you happy Linux usage.

  • verdigris@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    14 hours 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).

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 hours ago

      Yep, gonna clone and delete Windows 11.

      Library might work.

      I’m using Mint for sensitive matters, I want to keep it separate from my daily driver.

      I’ll basically just be using this laptop for web-browsing.

      I don’t really use hibernation. I’ll need to enable swap encryption though.

  • Tenkard@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    17 hours ago

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

  • gonzo-rand19@moist.catsweat.com
    link
    fedilink
    arrow-up
    0
    ·
    18 hours 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
      0
      ·
      18 hours 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.

      • gonzo-rand19@moist.catsweat.com
        link
        fedilink
        arrow-up
        0
        ·
        10 hours ago

        I would seriously advise you to double it to 50 GB each if you’re intending to use these installs for more than web browsing and simple tasks using the packages that came with the distro. The exception to this would be if you have external drives/partitions that you’re mounting into system directories (like your 20 GB of shared storage) because that data is obviously stored elsewhere.

        The minimum requirements are for the installation and basic use of the operating system as-is; actually using the system and installing other packages will generally require more space.

      • brax@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        13 hours ago

        So you don’t plan on installing any additional packages or downloading anything off the internet?

  • entropicdrift@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    18 hours ago

    Partitions on SSDs are generally bad for long term performance and sustainability, so yeah, not great. If I were you I’d delete the Windows partition and extend one of the others. Also you could have the individual Linux distro partitions be smaller if you used a single home partition across them. That would probably minimize any negative side effects of partitioning the hell out of an SSD.

  • mio@lemmy.mio19.uk
    link
    fedilink
    arrow-up
    0
    ·
    19 hours ago

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

  • igemnace@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    19 hours 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.

      • monovergent 🛠️@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 hours 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.

      • CrackedLinuxISO@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        14 hours 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
        0
        ·
        edit-2
        15 hours ago

        Virtual Machine.

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

        • Tenderizer78@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 hours ago

          Could I preserve the activation key the refurbisher provided doing that (I’m gonna google whether I can anyway)?

  • rjek@feddit.uk
    link
    fedilink
    arrow-up
    0
    ·
    23 hours 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.

    • patatahooligan@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      20 hours 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

    • rirus@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      21 hours 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.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 day 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).

  • NewNewAugustEast@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    1 day 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
      0
      ·
      1 day 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.

    • Tenderizer78@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day 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.

      • Otter@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day 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
          0
          ·
          1 day 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.

      • dallen@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 day 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
            0
            ·
            21 hours 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
              0
              ·
              19 hours 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
          0
          ·
          1 day 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
            0
            ·
            edit-2
            24 hours 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
              0
              ·
              19 hours 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.

  • Gagootron@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    1 day 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
      0
      ·
      1 day 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
        0
        ·
        1 day 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.