I'm trying to create a btrfs root filesystem following Richard Browns blog found here: https://rootco.de/2018-01-19-opensuse-btrfs-subvolumes/[1] but it seems that he missed a step or I can't follow directions. If I follow his recipe to the letter then no 1st snapshot is ever made and no default subvolume can be set. So, I omitted line 4 of step 4: and created a snapshot between his steps 6: & 7: btrfs subvol snapshot /mnt /mnt/@/.snapshots/1/snapshot After step 7: I am able to set the default subvolume, but I have the @ subvolume showing when I list the directory in step 8: Anyone have some pointers? Thanks. Mark -------- [1] https://rootco.de/2018-01-19-opensuse-btrfs-subvolumes/
On 23.01.2022 07:12, Mark Petersen wrote:
I'm trying to create a btrfs root filesystem following Richard Browns blog found here: https://rootco.de/2018-01-19-opensuse-btrfs-subvolumes/[1] but it seems that he missed a step or I can't follow directions.
If I follow his recipe to the letter then no 1st snapshot is ever made and no default subvolume can be set.
You should never follow instructions in Internet to the letter. You should understand what and why they do and adjust as needed. Any subvolume can be made default, so btrfs subvolume set-default /mnt/@/.snapshots/1/snapshot /mnt should most certainly work.
So, I omitted line 4 of step 4: and created a snapshot between his steps 6: & 7: btrfs subvol snapshot /mnt /mnt/@/.snapshots/1/snapshot
After step 7: I am able to set the default subvolume, but I have the @ subvolume showing when I list the directory in step 8:
You should create snapshot of /mnt/@, not /mnt. And default subvolume is set *in* step 7, not after, so it is unclear what exactly you are doing.
participants (2)
-
Andrei Borzenkov
-
Mark Petersen