In the Beginner's Guide https://www.kubuntuforums.net/forum/...guide-to-btrfs
It shows mounting the disk partition that contains the btrfs root file system on /mnt and then creating a directory at /mnt/snapshots that is subsequently used to create the system snapshots with
Having tested this I know it works.
What puzzles me is some other tutorials on btrfs I have read do it differently and I'm not sure if there is a difference in the end as subvolumes are not complete clear to me yet.
In one case the tutorial shows creating the drive structure prior to installation. First mounting the rootfs on /mnt as above but they create a subvol using
Then they umount /mnt and then remount the rootfs using
Next they create directories for subvols
Then they mount subvolumes
All I can see with this method is the snapshots are taken directly to /.snapshots/ without having to mount it on /mnt since /etc/fstab has the mount for the @snapshots subvol at /.snapshots.
It shows mounting the disk partition that contains the btrfs root file system on /mnt and then creating a directory at /mnt/snapshots that is subsequently used to create the system snapshots with
Code:
btrfs su sn /mnt/@ /mnt/snapshots/@_basic_install
What puzzles me is some other tutorials on btrfs I have read do it differently and I'm not sure if there is a difference in the end as subvolumes are not complete clear to me yet.
In one case the tutorial shows creating the drive structure prior to installation. First mounting the rootfs on /mnt as above but they create a subvol using
Code:
btrfs su cr /mnt/@snapshots
Code:
mount -o noatime,compress=zstd,space_cache,subvol=@ /dev/sdc3 /mnt
Code:
mkdir /mnt/.snapshots
Code:
mount -o noatime,compress=zstd,space_cache,subvol=@snapshots /dev/sdc3 /mnt/.snapshots
Comment