Help setting up snapper

To mount the root of the partition you can use the option subvolid=5.

So it would be something like this:

sudo mkdir -p /mnt/btrfs
sudo mount /dev/sda2 /mnt/btrfs -o subvolid=5

Of course, replace /dev/sda2 with the actual device your btrfs volume is using. If you need help with that please share the output of findmnt --real

Ah i see re: the subvolid option

so my order of operations would be:

cryptsetup luksOpen /dev/nvme0n1p2 ssd
mount /dev/mapper/ssd /mnt/btrfs -o subvolid=5

Does this look correct?

Here is the output of what you asked:

TARGET                  SOURCE                                                                         FSTYPE OPTIONS
/                       /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5[/@]                      btrfs  rw,noatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=256,subvol=/@
├─/boot/efi             /dev/nvme0n1p1                                                                 vfat   rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remou
├─/tmp/{79e42392-e501-4494-a738-189135520c1f}
│                       /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5                          btrfs  rw,relatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=5,subvol=/
├─/var/log              /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5[/@log]                   btrfs  rw,noatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=259,subvol=/@log
├─/home                 /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5[/@home]                  btrfs  rw,noatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=257,subvol=/@home
├─/var/cache            /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5[/@cache]                 btrfs  rw,noatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=258,subvol=/@cache
└─/var/lib/docker/btrfs /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5[/@/var/lib/docker/btrfs] btrfs  rw,noatime,compress=zstd:3,ssd,space_cache=v2,autodefrag,subvolid=256,subvol=/@

Here is lsblk

NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1                                       259:0    0 953.9G  0 disk
├─nvme0n1p1                                   259:1    0   300M  0 part  /boot/efi
├─nvme0n1p2                                   259:2    0 936.7G  0 part
│ └─luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5 254:0    0 936.7G  0 crypt /tmp/{79e42392-e501-4494-a738-189135520c1f}
│                                                                        /var/lib/docker/btrfs
│                                                                        /var/log
│                                                                        /var/cache
│                                                                        /home
│                                                                        /
└─nvme0n1p3                                   259:3    0  16.9G  0 part
  └─luks-060fe643-6dcf-4d01-b2ab-46cd6d9022e7 254:1    0  16.9G  0 crypt [SWAP]

If you are booting off a live ISO and need to unlock the volume then yes. You also need to ensure the /mnt/btrfs exists before you try to mount anything on it.

If you are booting off a snapshot, the luks volume will already be unlocked and you can use the existing device at /dev/mapper/luks-a32fac0c-db69-4a33-97ba-df3af75b8ee5

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.