[Advice] What is the best way to partition an SSD for both Arch Linux & a backup Ubuntu install?
Question is in the title. The goal is to be able to have a rolling distro (Arch) always installed, and then have a backup Ubuntu install on a separate partition that I can re-image whenever I need it using Clonezilla (going from Ubuntu 18.04.2 to Ubuntu 19.04, etc...).
This is what I was thinking:
-
sda1 =
/boot200 MB -
sda2 =
/[Arch] 20 GB -
sda3 =
/[Ubuntu] 20 GB -
sda4 =
/home[shared between Arch & Ubuntu] remaining drive space
-
Can Arch & Ubuntu share the same
/bootparition? Or will things mess up? -
I have 32 GB of RAM, so I don't think I'll need a swap partition, but do you all recommend a logical swap parition?
Thanks
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- ccb06x
12 comments
Yeah, it is fine to share a /boot between operating systems(I used to do this even in Windows!). Although I would make it larger(500-700MiB should be more than enough).
Depends on what you do. If whatever you do occupies atleast half your RAM, I would do a 2-5GB swap just in case.
Interesting, I thought the
/bootpartition was generally small, usually 100 MB but always recommended to make it between 200-250 MB.I think the issue will be the fact that I wanted all these partitions to be primary partitions and you can only have up to 4.
/bootmust be primary, and for easier imaging, I wanted both/partitions as primary. I don't really care about/homebeing primary though, but is it a smart move to make/homea logical partition?I use VMs a lot, so I know I 'll need swapspace, but does a swapfile perform the same as a dedicated
/swappartition?I'd recommend partitioning your drive using GPT instead of MBR. You can then have up to 128 primary partitions rather than the limit of 4 with MBR.
It can be small but having two kernels(one for Ubuntu, one for Arch) can make things cluttered pretty easily.
The only difference you'll notice is that you won't be able to boot your
/homepartition, which I think you won't be planning any time soon ;)It will perform a bit slower, but you probably won't notice.
You can leverage btrfs subvolumes to not waste space for Ubuntu. Just create one boot efi partition and single btrfs volume. And then create three subvolumes under it, one for shared home and two others for root filesystems.
Just make sure you don't use btrfs features Ubuntu's Kernel doesn't support yet.
Do you need the Ubuntu partition for anything but recovery?
If so it'd probably be better to just have the archiso as a boot menu entry, it's a lot smaller and has Arch specific tools needed for recovery.
Unless they use the same file names for the kernel and initramfs, they can share it.
I'd recommend at least some swap, though I'd put it in a swap file, not a partition.
Also keep in mind that you'll need as much swap as you have RAM usage at the time you want to be able to hibernate.
I'll use it as a backup distro once I nice everything over to Arch.
I have no idea if they share the same filenames or not. I read one article saying don't do it, and I read a forum post saying that a guy does it all the time with several distros.
I just decided to use a separate 5GB swap partition based on another user's suggestion. I don't use the hibernate function, so I don't think I'll need a whole 32GB of swap. I'm not sure if 5GB is enough swap though, but I rarely hit that 32GB limit.
If you don't use hibernation and you have 32gigs of ram, it's likely that you don't need any swap. If any case you need swap later, you can make a swap file for your arch