Skip to content

[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 = /boot 200 MB

  • sda2 = / [Arch] 20 GB

  • sda3 = / [Ubuntu] 20 GB

  • sda4 = /home [shared between Arch & Ubuntu] remaining drive space


  1. Can Arch & Ubuntu share the same /boot parition? Or will things mess up?

  2. 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

3 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
ccb06x

Author

26
posts
201
comments
3
media
View profile

12 comments

  1. 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).

  2. Depends on what you do. If whatever you do occupies atleast half your RAM, I would do a 2-5GB swap just in case.

4 points
  1. Interesting, I thought the /boot partition was generally small, usually 100 MB but always recommended to make it between 200-250 MB.

  2. 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. /boot must be primary, and for easier imaging, I wanted both / partitions as primary. I don't really care about /home being primary though, but is it a smart move to make /home a logical partition?

  3. I use VMs a lot, so I know I 'll need swapspace, but does a swapfile perform the same as a dedicated /swap partition?

1 points

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.

2 points
  1. It can be small but having two kernels(one for Ubuntu, one for Arch) can make things cluttered pretty easily.

  2. The only difference you'll notice is that you won't be able to boot your /home partition, which I think you won't be planning any time soon ;)

  3. It will perform a bit slower, but you probably won't notice.

1 points

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.

2 points

Just make sure you don't use btrfs features Ubuntu's Kernel doesn't support yet.

1 points

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.

Can Arch & Ubuntu share the same /boot parition? Or will things mess up?

Unless they use the same file names for the kernel and initramfs, they can share it.

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?

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.

1 points
  1. I'll use it as a backup distro once I nice everything over to Arch.

  2. 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.

  3. 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.

1 points

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

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.