multiboot btrfs subvolumes

there's an idea knocking around in my head for a while. and i want to document it here, to flush it out later..

i usually multiboot, and have several systems on the same disk. my currently laptop has 12 partitions. each os is fully contained within a partition, including the bootloader on pbr. mbr is clean. partitions are efficient in one way, but scatter diskspace in another way.

half of these dozen partitions have btrfs. and i haven't had any trouble, apart from newer versions not being backward compatible. for eg, wheezy can not access the stretch btrfs, due to some new features. but bleeding-edge stretch, ubuntu, and arch can access all other btrfs partitions.

gentoo docs gave me this idea, but it was ubuntu which made it practical. the default ubuntu install created two subvolumes, one for root and another for home. whatif i create more subvolumes and install other os in each subvolume. would they coexist together on the same partition, albeit different subvolumes? and still keep them separate? i think so.

one major risk would be an install wanting to format the partition. that might wipe all subvolumes in that partition.

i could keep a separate btrfs partition for installing, and post-install copy to a relevant new subvolume in my main btrfs partition.

i would have to keep a separate btrfs partition for each os which doesn't have the bleeding-edge btrfs. all the ones on bleeding edge could be lumped in the same partition on different subvolumes.

i did a quick search to check whether someone else has tapped this/similar idea from the collective consciousness ;)
yes they have :) and i can learn from their experience

ref:

No comments:

Post a Comment

most popular posts