Illecors,

BTRFS has a concept called a subvolume. You are allowed to mount it just like any other device. This is an example /etc/fstab I’ve copied from somewhere some time ago.


<span style="color:#323232;">UUID=49DD-6B6F                                  /efi            vfat    defaults        0 2
</span><span style="color:#323232;">UUID=701c73d7-58b5-4f90-b205-0bb56a8f1d96       /               btrfs   subvol=@root    0 0
</span><span style="color:#323232;">UUID=701c73d7-58b5-4f90-b205-0bb56a8f1d96       /home           btrfs   subvol=@home    0 0
</span><span style="color:#323232;">UUID=701c73d7-58b5-4f90-b205-0bb56a8f1d96       /opt            btrfs   subvol=@opt     0 0
</span><span style="color:#323232;">UUID=701c73d7-58b5-4f90-b205-0bb56a8f1d96       /srv            btrfs   subvol=@srv     0 0
</span><span style="color:#323232;">UUID=701c73d7-58b5-4f90-b205-0bb56a8f1d96       /var            btrfs   subvol=@var     0 0
</span>

/efi (or /boot, or /boot/efi, whatever floats your boat) still has to be a separate vfat partition, but all the other mounts are, technically speaking, the same partition mounted many times with a different subvolume set as the target.

Obviously, you don’t need to have all of them separated like this, but it allows you to fine tune the parts of system that do get snapshot.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #