Status of snapshots as of Fedora 34

Hi! I just installed Fedora 34 (YAY!) and while trying to setup Snapper I mistakenly messed up /etc/fstab (hence the username) and had to blank install. I am using the automatic partitioning.

I was just wondering if there is any better (or commonplace) way to set up Snapper or any other snapshot program. I never used any snapshot program before and after doing my research Snapper seemed the one that needed the least modifications to the base settings of all of them, but after my previous experience I’d rather ask first.

I have seen this guide on the internet, but it is not specific for Fedora 34. Would that still work as of now?

Thank you and all the best

2 Likes

Chris Murphy made a mini howto for snapper on Fedora Linux 34 a few days ago:

2 Likes

Thank you! I have been trying to follow the tutorial, but I am getting stuck at the point where it asks me to mount the partitions:

$ lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
zram0              252:0    0     8G  0 disk  [SWAP]
nvme0n1            259:0    0 476.9G  0 disk  
├─nvme0n1p1        259:1    0   600M  0 part  /boot/efi
├─nvme0n1p2        259:2    0     1G  0 part  /boot
└─nvme0n1p3        259:3    0 475.4G  0 part  
  └─luks-$btrfsuuid
                   253:0    0 475.3G  0 crypt /home

$ sudo mount /dev/nvme0n1p3 /mnt/btrfs
mount: /mnt/btrfs: unknown filesystem type 'crypto_LUKS'.

I suppose I will have to decrypt it first as in here, right?

Edit: gave it a go, but

$ sudo cryptsetup luksOpen /dev/nvme0n1p3 secure
Enter passphrase for /dev/nvme0n1p3: 
Cannot use device /dev/nvme0n1p3 which is in use (already mapped or mounted).

Edit 2: just thought a possible solution could be

$ sudo mount -o subvolid=5 /dev/mapper/luks-$btrfsuuid /mnt/btrfs

I haven’t tested it, but wouldn’t that get the same result?

Edit 3: IT DOES! So that solves it, thank you