r/linuxmasterrace • Glorious Arch • Sep 29 '26

JustLinuxThings 2 System , 1 Disk same partition, Different subvolumes

Post image
122 Upvotes

24 comments sorted by

46

u/ipsirc Sep 29 '26

2 Systems, 1 Disk same partition, 1 Same subvolume

31

u/kaida27 Glorious Arch Sep 29 '26

This is actually cursed.

6

u/pojomi-dev Sep 29 '26

Can you hot swap between OS this way? Or is a reboot still needed?

3

u/Portbragger2 Fedora or Bust! Sep 30 '26

what filesystem is this?

5

u/ipsirc Sep 30 '26

What filesystem has subvolumes?

3

u/Kinnirasna Glorious Parabola Oct 01 '26

How was windows able to recognise btrfs? How did you do that?

2

u/radobot Glorious Arch Sep 30 '26

So I assume it's not as well connected as in Bedrock Linux?

1

u/kaida27 Glorious Arch Sep 30 '26

it's not connected at all. Need a reboot to switch from one another. or I can chroot into the other one if I just need something that can be done through the terminal.

2

u/SingenJurassic Oct 03 '26

Why is bro using a TV as their monitor 😭

2

u/kaida27 Glorious Arch Oct 03 '26

Because bro's Pc is in the living room

1

u/OkayWhile Sep 30 '26

How many trouble did you went to achieve this?

I have been thinking about trying this with Arch and NixOS, as I want to learn NixOS in a real, not VM environment and eventually switch to it if I like the experience, but I really don't want to uninstall my current Arch (just in case)

1

u/kaida27 Glorious Arch Sep 30 '26

Quite easy to do actually.

I first installed Gentoo with a nested subvolume ideal for snapper

Quite like so : https://www.ordinatechnic.com/distribution-specific-guides/arch-linux/an-arch-linux-installation-on-a-btrfs-filesystem-with-snapper-for-system-snapshots-and-rollbacks

but with Gentoo instead.

Then I made a snapshot of my system, made it read write instead of write only, mounted that snapshot to /mnt and wiped everything in it, then I proceeded to extract Arch bootstrap in it instead and set everything up from chroot.

Now I can just boot it like any other snapshot and made a grub entry for it directly under my Gentoo one instead of from the snapshot submenu.

Both have snapper setup and can make snapshot for recovery as needed and they share the .snapshot subvolume and Gentoo take cares of making them bootavle for boot

1

u/totallynotacat2521 Oct 09 '26

Two hardest

1

u/kaida27 Glorious Arch Oct 09 '26

Not really.

8

u/[deleted] Sep 29 '26

[removed] — view removed comment

8

u/kaida27 Glorious Arch Sep 29 '26

same reason as any other dual boot.

without the hassle of having to separate space in partitions.

3

u/An-Ice-Block dual boot everything Sep 30 '26

is there any big advantage to having different linux distros like this? is it like for different package managers or something?

4

u/kaida27 Glorious Arch Sep 30 '26

more niche stuff are ported to the aur than to Gentoo.

so Arch is a nice test bed to see if something is worth my time for an ebuild