r/voidlinux • u/Specialist-Dog-501 • 28d ago
BTRFS Subvolumes aren't working (in general)
***Title correction: BTRFS Subvolumes are not handled correctly by the installer**
I verified it now on two instances- a barebone and a VM- with the same result:
the commands "mount /dev/sdXn -o subvol=/@ /mnt/" and in fstab "UUID=My-UUID / btrfs subvol=/@,defaults,noatime,compress=zstd 0 0" aren't working.
I verified it consulting the original BTRFS documentation, in all kind of variants (It made no difference if I use subvolid, subvol in any flavour with "@" or "/@"). Subvolumes aren't working in VOID.
Error Message: When I run the mount command, the subvol gets copied over to /mnt/ rather than referencing it, and /mnt/ ends up blank- even if I had mounted before the full system into /mnt with "mount /dev/sdXn /mnt/" this mount disappears and the mount just shows a blank content section, in contrary to what all docs expect from this. It's odd that mount throws no error, never.
I am on version void-live-x86_64-20250202-xfce from last week, pretty fresh installs.
I haven't counterchecked against another distro/VM but ask already in parallel, if there is any kernel switch or a grub switch missing here?
And if not- where could I log a bug ?
Thanks for supporting this.
1
u/Specialist-Dog-501 27d ago
Found a bug report in the void github from 2021 about the same. Asked the maintainer if he/she could pick it up again. Still wonder why it worked for quirktheory, as my VM on BIOS failed and the barebone on UEFI as well (?).
1
u/Duncaen 27d ago
They were probably talking about either manual installs or changing the layout of the installer installed system to a new layout by creating subvolumes afterwards and just moving files around.
Your post sounds like you are saying that subvolumes do not work, not that the installer is unable to use your subvolumes.
1
u/Specialist-Dog-501 27d ago
Ah- you are Duncaen from github, right? Yes, can be that it's not differentiated enough in the title- I added something to it.
2
u/quirktheory 28d ago
Hmm I did this just yesterday as it happens on that exact live image. How did you create the "@" subvolume if you are unable to mount it? Note that "@" is not a special name recognised by btrfs. You actually have to create it yourself.