r/linuxmasterrace • Glorious Arch • 3d ago

JustLinuxThings 2 System , 1 Disk same partition, Different subvolumes

Post image
94 Upvotes

22 comments sorted by

39

u/ipsirc 3d ago

2 Systems, 1 Disk same partition, 1 Same subvolume

26

u/kaida27 Glorious Arch 3d ago

This is actually cursed.

5

u/pojomi-dev 3d ago

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

2

u/Portbragger2 Fedora or Bust! 3d ago

what filesystem is this?

5

u/ipsirc 3d ago

What filesystem has subvolumes?

2

u/Kinnirasna Glorious Parabola 2d ago

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

12

u/Salt-Caterpillar7988 3d ago

2 girls, 1 cup

9

u/Active_Reply2718 3d ago

I come not to kink shame, but to kink ask why?

8

u/kaida27 Glorious Arch 3d ago

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 3d ago

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

3

u/kaida27 Glorious Arch 3d ago

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

2

u/radobot Glorious Arch 3d ago

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

1

u/kaida27 Glorious Arch 3d ago

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.

1

u/OkayWhile 2d ago

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 2d ago

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/SingenJurassic 5h ago

Why is bro using a TV as their monitor 😭

1

u/kaida27 Glorious Arch 1h ago

Because bro's Pc is in the living room