this post was submitted on 05 Sep 2023
47 points (92.7% liked)

Linux

45479 readers
1273 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hello all, sorry for such a newbish question, as I should probably know how to properly partition a hard drive, but I really don't know where to start. So what I'm looking to do is install a Debian distro, RHEL, and Arch. Want to go with Mint LMDE, Manjaro, and Fedora. I do not need very much storage, so I don't think space is an issue. I have like a 500+ something GB ssd and the few things that I do need to store are in a cloud. I pretty much use my laptop for browsing, researching, maybe streaming videos, and hopefully more programming and tinkering as I learn more; that's about all... no gaming or no data hoarding.

Do I basically just start off installing one distro on the full hard drive and then when I go to install the others, just choose the "run alongside" option? or would I have to manually partition things out? Any thing to worry about with conflicts between different types of distros, etc.? hoping you kind folks can offer me some simple advice on how to go about this without messing up my system. It SEEMS simple enough and it might be so, but I just don't personally know how to go about it lol. Thanks alot!!

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 33 points 10 months ago* (last edited 10 months ago) (27 children)

Tips on running multiple distros together on my laptop?

Sure. Don't.

Just use VMs instead. Partitioning your hard drive to boot multiple operating systems from is asking for trouble if you don't know what you're doing.

[–] [email protected] 3 points 10 months ago

Thank you Stack Exchange.

load more comments (26 replies)
[–] [email protected] 17 points 10 months ago (6 children)

Warning: this is definitively doable, but messier than it looks like. I'd recommend you to partition it manually, before installing any distro, like this:

  • one partition per distro. For sizes check their requirements. Given 500GB I'd probably reserve 60GB for each, perhaps a bit more if I know that I'll install a lot of stuff in that distro.
  • one swap partition, that'll be accessed across distros. Optional if you have 16GB+ of RAM.
  • use the leftover space for a "storage" partition, for personal files that you won't save in someone else's computer (i.e. the cloud). That allows you to mess with the distros without risking your personal files.

Don't worry too much on getting the space right though - if necessary you can always resize a few partitions after installation. It's a bit of a bother though.

Do not share /home across distros, it's simply more trouble than it's worth. Instead, mount that "storage" partition in each distro, inside your /home/[$username] directory.


Another thing that you might want to consider is virtualisation. Odds are that you won't use a lot of those distros in your everyday, and that you're just curious about their differences. In that case, consider installing one of them, install Virtualbox in it, and then the other distros get installed inside Virtualbox. I'm suggesting that because it'll use overall less space, and make distro management less messy.

[–] [email protected] 6 points 10 months ago (6 children)

Thanks. I do not want to mess around with virtualization; I went down that rabbithole before and got lost and broke stuff lol. I need to do a bit more research and learning before im more confident with virtualization. So how large should the swap be? and what about a bootloader?? Are all three compatible with grub? also how large should the bootloader partition be? thanks, this is all a bit foreign to me.

[–] [email protected] 9 points 10 months ago (1 children)

VM are as easy as point and click with GNOME Boxes, also available as standalone.

[–] [email protected] 3 points 10 months ago (1 children)

Gotcha. Never explored Gnome boxes yet; probably just waiting for the right time. I've been trying to learn a whole lot of other tech stuff, so I sorta put virtualization on the back burner for now. Definitely wanna learn about KVM, lxd and lxc and even gnome boxes. just not right now

load more comments (1 replies)
[–] [email protected] 7 points 10 months ago (28 children)

All those distros are compatible with grub, and come with their own copies of it. You just need to install your distros, and then when you say "I want THIS ONE to manage boot", you follow this tutorial. (It's supposed to help you reinstalling grub after Windows, but it works fine for grub after another Linux instal).

Or, if you want to be lazy - install last the distro that you want to manage boot, then tell it "screw the current boot, reinstall it".

I wouldn't bother with a bootloader partition. The bootloader runs fine from any distro partition, and it's small enough so you don't need to worry about it wasting space.

swap

I've been running my system without swap whatsoever for quite some time, and it runs fine. But if you're planning to use hibernation or similar, reserve the same amount of swap space as you have RAM; for example if you have 8GB RAM then at least 8GB swap.

IMPORTANT: if hibernating a distro, don't boot another distro, otherwise the hibernation data will get wiped.

load more comments (28 replies)
[–] [email protected] 2 points 10 months ago (12 children)

Grub is compatible with pretty much everything.

load more comments (12 replies)
load more comments (3 replies)
[–] [email protected] 4 points 10 months ago (3 children)

Really nice idea with the shared swap and storage!

Caveats:

  • you can LUKS encrypt that, but you may need to tweak some polkit rules to automatically unlock it.
  • Fedora uses zram and swap and SELinux is a hell of a task

Apart from that, great recommendation!

In the end you can simply delete all partitions except your storage partition, reinstall any distro and mount that partition to /home

load more comments (3 replies)
load more comments (4 replies)
[–] [email protected] 9 points 10 months ago (8 children)

Have you tried distrobox ? That would sound more reasonable.

load more comments (8 replies)
[–] [email protected] 7 points 10 months ago (1 children)

So... I guess it should work but you will end up with looots of partitions and pretty sure you have no idea what is what.

But if you plan on nuking it in the end, here is how to do it:

  • install a Distro to full hard drive
  • use some partition manager like KDE-Partitionmanager (the best of all) or Gparted and resize the big ext4/btrfs/zfs whatever storage partition as small as you want
  • install the next distro into the empty space
  • shrink that distros storage again, repeat

And please report if some crazy stuff happens with Grub or if you get secureboot working!

load more comments (1 replies)
[–] [email protected] 7 points 10 months ago (1 children)

So Question: What do you actually want to achieve?

Do you want a rolling, semi-rolling or stable releases? More tested or even LTS packages, or the latest?

[–] [email protected] 3 points 10 months ago (2 children)

Uhmmm so it would be interesting to learn about rolling releases and thats where my choice of manjaro could fit in. Sometimes I simply get bored of debian/Ubuntu but its what I'm most familiar with. The goal is to learn and USE other distros. Not just browse or hop around but I want to use the three main distro types all on one system. I want things to remain in tact like a normal workstation installed on your desktop. Idk much about virtualization, but I'm under the impression that they wipe your disk or a certain distro clean after each use. I do NOT want that.

[–] [email protected] 4 points 10 months ago (2 children)

I went a huge journey.

  • mint, crashed
  • manjaro, weird reputation but very nice
  • mxlinux: damn old packages back then
  • kubuntu: broke
  • kde neon: lol also broke
  • fedora kde: broke
  • fedora kinoite: have it the longest, didnt break yet

I like immutable as you can reset your system. You can see most of your deviation from "what works" using rpm-ostree status.

And sorry but its all Linux, it doesnt work differently if you are not a server admin or tweaking SELinux, custom polkit rules and stuff like that.

load more comments (2 replies)
[–] [email protected] 3 points 10 months ago

I run Debian with a bunch of virtual machines for exploring other distros. This might not be a good solution for a laptop though.

[–] [email protected] 6 points 10 months ago (3 children)

Why do you want to do this? If it's just to try out different distributions, I would suggest using per-distro virtual machines or USB drives instead.

[–] [email protected] 2 points 10 months ago (1 children)

Do you have a recommended virtualization platform for such a project?

load more comments (1 replies)
load more comments (2 replies)
[–] [email protected] 6 points 10 months ago (7 children)

Why?

Triple booting is a pita, moreso if you don't know how to partition a disk. I'd want any laptop encrypted, which adds further complexity to the triple boot.

If you wanna browse, research, watch videos and tinker just install a distro. If you wanna spend time switching your system off and on again over and over and over again to find out what's working/broken go for the triple boot.

Docker could be worth a shot. You can 'docker pull fedora/arch/debina/whatever' and can play around with the base systems. Alpine takes up about 6mib so isn't too resource intensive if you need to nuke it a few hundred times to get up and running.

load more comments (7 replies)
[–] [email protected] 6 points 10 months ago* (last edited 10 months ago) (1 children)

All these people saying don't do it - clearly, they're trying to learn something and are not necessarily after a fully usable, encrypted production system. Instead of telling them it's too complicated, we should encourage to play around and figure it out, so in the process maybe they find out on their own why this configuration might not make any sense in most situations.

So @op, just go for it, you're going to learn a lot from this!

[–] [email protected] 2 points 10 months ago (1 children)

Thank you. Its seeming that the VM route is more doable. I'm just curious if a VM for a linux distro will keep everything as is, like your files and filesystem, settings, tweaks, configs, etc. I essentially want three workstations. I dont want to keep starting over on a clean slate ya know? And if so, do you have a recommended virtualization platform that you would recommend for this project?

[–] [email protected] 4 points 10 months ago (1 children)

VMs are persistent unless you configure them not to be.

VirtualBox is the go-to easy-mode virtualization software. You'll likely quickly outgrow it as you learn it's limitations, but, it will teach you all the concepts you need to know, and they'll largely be transferable to more robust systems like esxi or proxmox.

load more comments (1 replies)
[–] [email protected] 6 points 10 months ago (1 children)

Not an answer to your question, but have you checked out Bedrock Linux as opposed to installing multiple distros? Or maybe using virtual machines?

[–] [email protected] 2 points 10 months ago (1 children)

I have HEARD of Bedrock but never really read about it. I will give it a check out now. Not too interested in VM's ATM

[–] [email protected] 5 points 10 months ago (1 children)

Bedrock linux is not a vm. It is a meta distro means it runs on top of your distros kernel.

load more comments (1 replies)
[–] [email protected] 5 points 10 months ago (24 children)

One thing that might matter is that if all distros use the same swap partition for hibernation, you shouldn't boot one distro after hibernating another or you might overwrite the saved RAM contents.

If you use different swap partitions or files, you probably should still avoid writing to a partition that belongs to a distro that isn't actually shut down.

load more comments (24 replies)
[–] [email protected] 4 points 10 months ago (9 children)

It could be done if you partition your disk prior to installing but, if there is no particular reason, you could make a bunch of VM's and daily drive one of the distros.

load more comments (9 replies)
[–] [email protected] 3 points 10 months ago

You can use one big BTRFS and multiple subvolumes, that allows you to share the free space across all the distributions. If the distribution supports that, that might be the easiest option, though not all of them do (Guix didn't last time I tried).

Using distrobox or a VM is also an option and saves you the dual booting, which will get old fast.

[–] [email protected] 3 points 10 months ago (2 children)

Perhaps consider watching this excellent video guide on dualbooting and multibooting by DorianDotSlash. It was what I used as a reference the first few times I engaged in dualbooting and/or multibooting.

[–] [email protected] 3 points 10 months ago

Here is an alternative Piped link(s): https://piped.video/watch?v=Crleyglb4mo

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

load more comments (1 replies)
load more comments
view more: next ›