How to multiboot in btrfs?
by ddenial from LinuxQuestions.org on (#5C6TG)
Hello
I just installed Fedora 33 in btrfs. I want to install other Linux OS alongside with it.
In my previous setup, I had the following:
Code:sda1 -> 512MiB (for EFI)
sda2 -> 1GiB (for Fedora /boot (xfs))
sda3 -> 1GiB (for Ubuntu /boot (ext4))
sda4 -> LVM
/dev/vol/fedy -> 200GiB Fedora OS
/dev/vol/ubun -> 200GiB Ubuntu OS
/dev/vol/swap -> 8GiB Swap partition shared by both.Then I had installed Fedora on (sda1, sda2, /dev/vol/fedy, /dev/vol/swap) and Ubuntu on (sda1, sda3, /dev/vol/ubun, /dev/vol/swap) separately. It worked perfectly.
Now, how do I do the same with btrfs subvolume system?
Right now I have the following setup in fedora (btrfs)
Code:sda1 -> 512MiB (for EFI)
sda2 -> 1GiB (for Fedora /boot (ext4))
sda3 -> 1GiB (for Ubuntu /boot (ext4))
sda4 -> BTRFSI have installed Fedora OS in subvolume called 'fedora'.
Code:$ sudo btrfs subv list /
ID 256 gen 296 top level 5 path fedoraThis is my /etc/fstab
Code:$ cat /etc/fstab
UUID=623f9d41-fd33-49b1-8ff5-1982a2123831 / btrfs subvol=fedora 0 0
UUID=40929505-4410-4f6f-85eb-5925bb05f7e4 /boot ext4 defaults 1 2
UUID=A9B0-9BE9 /boot/efi vfat umask=0077,shortname=winnt 0 2I also created another subvolume called 'ubuntu' for Ubuntu OS.
Code:$ sudo btrfs subv list /
ID 256 gen 296 top level 5 path fedora
ID 265 gen 272 top level 256 path ubuntuBut when I tried to install Ubuntu, The installer does not show subvolumes like it did for LV in LVM.
Is there a way to install multiple Linux OSs in btrfs subvolumes separately?
Thanks


I just installed Fedora 33 in btrfs. I want to install other Linux OS alongside with it.
In my previous setup, I had the following:
Code:sda1 -> 512MiB (for EFI)
sda2 -> 1GiB (for Fedora /boot (xfs))
sda3 -> 1GiB (for Ubuntu /boot (ext4))
sda4 -> LVM
/dev/vol/fedy -> 200GiB Fedora OS
/dev/vol/ubun -> 200GiB Ubuntu OS
/dev/vol/swap -> 8GiB Swap partition shared by both.Then I had installed Fedora on (sda1, sda2, /dev/vol/fedy, /dev/vol/swap) and Ubuntu on (sda1, sda3, /dev/vol/ubun, /dev/vol/swap) separately. It worked perfectly.
Now, how do I do the same with btrfs subvolume system?
Right now I have the following setup in fedora (btrfs)
Code:sda1 -> 512MiB (for EFI)
sda2 -> 1GiB (for Fedora /boot (ext4))
sda3 -> 1GiB (for Ubuntu /boot (ext4))
sda4 -> BTRFSI have installed Fedora OS in subvolume called 'fedora'.
Code:$ sudo btrfs subv list /
ID 256 gen 296 top level 5 path fedoraThis is my /etc/fstab
Code:$ cat /etc/fstab
UUID=623f9d41-fd33-49b1-8ff5-1982a2123831 / btrfs subvol=fedora 0 0
UUID=40929505-4410-4f6f-85eb-5925bb05f7e4 /boot ext4 defaults 1 2
UUID=A9B0-9BE9 /boot/efi vfat umask=0077,shortname=winnt 0 2I also created another subvolume called 'ubuntu' for Ubuntu OS.
Code:$ sudo btrfs subv list /
ID 256 gen 296 top level 5 path fedora
ID 265 gen 272 top level 256 path ubuntuBut when I tried to install Ubuntu, The installer does not show subvolumes like it did for LV in LVM.
Is there a way to install multiple Linux OSs in btrfs subvolumes separately?
Thanks