Btrfs setup with Timeshift & snapshots not right?

New install with btrfs auto snap-shots and timeshift. Doesn’t seem correct. I installed grub-btrfs, timeshift, btrfs-autosnaps. When in timeshift i cannot browse to the files. Two directories were created that have @ with weird naming scheme? Not sure that it is correct.


Edit: Timeshift browse won’t open

What does this command show?

sudo btrfs subvolume list /

It doesn’t work in plasma. You can still browse to them in your file manager.

[ricklinux@eos-kde ~]$ sudo btrfs subvolume list /
[sudo] password for ricklinux: 
ID 256 gen 249 top level 5 path @
ID 257 gen 254 top level 5 path @home
ID 258 gen 196 top level 5 path @cache
ID 259 gen 252 top level 5 path @log
ID 260 gen 196 top level 5 path @swap
ID 263 gen 27 top level 256 path var/lib/portables
ID 264 gen 28 top level 256 path var/lib/machines
ID 290 gen 196 top level 5 path @-0gyqxf
ID 292 gen 196 top level 5 path @-g7un5v
ID 295 gen 230 top level 5 path timeshift-btrfs/snapshots/2021-08-11_21-58-35/@
ID 296 gen 231 top level 5 path timeshift-btrfs/snapshots/2021-08-11_21-58-35/@home
[ricklinux@eos-kde ~]$ 

Oops that was the wrong command. I fixed it above.

I can browse to them through dolphin. Do you mean timeshift doesn’t open in KDE to browse that way?

I mean the browse button in timeshift doesn’t work in plasma.

It is because all that button does is open your default file manager. However, timeshift is running as root because, apparently, running the application as root is a better choice than actually designing it in a way that properly escalates permissions. Dolphin is restricted from running as root so when timeshift tries to open dolphin it fails.


I’m concerned about these? Don’t seem right?

It looks like you have one timeshift snapshot.

I am not sure what those @-* subvolumes are, that is not normal. What is in them?

The first two are created by systemd. Those are normal.

They seemed to get created when i installed grub-btrfs and updated grub and rebooted? I think?

Did you boot into a snapshot? I have never used btrfs-grub but I think it must somehow create read/write copies of your snapshots in order for you to boot into them. Perhaps that is what those are?

No? I just set it up to see if i could do it. Here is what is inside the folders. Both look like it’s the same.

Edit: It looks like it copied the /

Those look like snapshots of the root.

Can i just delete both Directories and how with everything inside the folders it will be a pain.

Why would it take snapshots of the root?

Edit: Is there a way i can delete the two folders with everything in them easily?

Yes, you can destroy the subvolumes. You don’t want to delete the data from within snashots.

sudo btrfs subvolume delete <subvolume>

I don’t know how to do that. Did you look at the fstab? Is it correct?

Edit: They aren’t listed there. So i’m confused.

Edit2: Obviously I’m not doing this right?

[ricklinux@eos-kde ~]$ sudo btrfs subvolume delete @-g7un5v
[sudo] password for ricklinux: 
ERROR: Could not statfs: No such file or directory
[ricklinux@eos-kde ~]$ 

Looks fine to me except that you don’t need to set btrfs subvolumes to fsck.

/etc/fstab shows the filesystems you mount. snapshots shouldn’t be mounted unless you need to do so for recovery purposes so they won’t be in fstab.

It’s not deleting them. For the subvolume i enter exactly the folder name with the @?

Edit: Maybe I don’t have the path?

Yes, you need the path to them.

Alternatively, you can use the subvolid.