Call for testing BTRFS Assistant

No, they are mounted inside of /. mounted and nested are totally different.

I guess i don’t understand.

To be clear, you don’t need to understand any of this to use the tool. It “just works”

The only rule is that you can’t have something permanently mounted at /.snapshots in fstab.

So i just have to remove this line in fstab so it’s not mounted? Other than installing your package what else do i need to do? Enable the btrfs- something.service?

UUID=314dd67c-2060-4f55-8afe-edeacc8d15d6 /.snapshots btrfs subvol=/@snapshots,defaults,noatime,autodefrag,compress=zstd 0 0

Since you have a custom setup, that happens to be customized in the one way the app doesn’t support, you need to undo those customizations.

LIke this:

sudo umount /.snapshots
sudo mkdir /mnt/btrfs
sudo mount UUID=314dd67c-2060-4f55-8afe-edeacc8d15d6 /mnt/btrfs -o subvolid=5
sudo mv /mnt/btrfs/@snapshots /.snapshots
sudo umount /mnt/btrfs

Then remove that line from /etc/fstab

1 Like

It’s taking a while to move the @snapshots. Also I haven’t installed your package yet. Was i supposed to do that first?

Err…it really shouldn’t be. It should be instant unless it is doing something wrong.

No, it doesn’t matter.

[ricklinux@eos-kde ~]$ sudo umount /.snapshots
[sudo] password for ricklinux: 
[ricklinux@eos-kde ~]$ sudo mkdir /mnt/btrfs
[ricklinux@eos-kde ~]$ sudo mount UUID=314dd67c-2060-4f55-8afe-edeacc8d15d6 /mnt/btrfs -o subvolid=5
[ricklinux@eos-kde ~]$ sudo mv /mnt/btrfs/@snapshots /.snapshots

Edit: I don’t know what it’s doing?

Edit2: Probably going to be ruined now.

Something is wrong if it is taking a while. Is your disk getting full? I hope it isn’t copy all the data…

Worst case is you lose the snapshots. It shouldn’t otherwise hurt your install.

So what do i do? ctrl c

I would.

I don’t mind reinstalling and starting from the beginning. My installs are 3-4 minutes. If i reinstalled with Btrfs what do i have to do to set it up compared to what i’m doing here? Or what should i do?

I tried the command again

[ricklinux@eos-kde ~]$ sudo mv /mnt/btrfs/@snapshots /.snapshots
[sudo] password for ricklinux: 
mv: inter-device move failed: '/mnt/btrfs/@snapshots' to '/.snapshots/@snapshots'; unable to remove target: Directory not empty
[ricklinux@eos-kde ~]$ 

Edit: Must have moved something.

I might as well start from something that is correct if I’m going to test it don’t you think?

@dalto

Okay i reinstalled kde on btrfs.

[ricklinux@eos-kde ~]$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=BEE5-B28E                            /boot/efi      vfat    umask=0077 0 2
UUID=3f5d640d-34e4-4ddc-aceb-870f49a9c7a9 /              btrfs   subvol=/@,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=3f5d640d-34e4-4ddc-aceb-870f49a9c7a9 /home          btrfs   subvol=/@home,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=3f5d640d-34e4-4ddc-aceb-870f49a9c7a9 /var/cache     btrfs   subvol=/@cache,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=3f5d640d-34e4-4ddc-aceb-870f49a9c7a9 /var/log       btrfs   subvol=/@log,defaults,noatime,autodefrag,compress=zstd,discard=async,ssd 0 0
UUID=3f5d640d-34e4-4ddc-aceb-870f49a9c7a9 /swap          btrfs   subvol=/@swap,defaults,noatime,discard=async,ssd 0 0
/swap/swapfile                            swap           swap    defaults,noatime 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
[ricklinux@eos-kde ~]$ 
[ricklinux@eos-kde ~]$ sudo btrfs subvolume list /
[sudo] password for ricklinux: 
ID 256 gen 61 top level 5 path @
ID 257 gen 63 top level 5 path @home
ID 258 gen 57 top level 5 path @cache
ID 259 gen 62 top level 5 path @log
ID 260 gen 29 top level 5 path @swap
ID 261 gen 27 top level 256 path var/lib/portables
ID 262 gen 28 top level 256 path var/lib/machines
[ricklinux@eos-kde ~]$ 

So what are all the things i have to do.

@anon49550872
I ended up reinstalling but i really don’t know how to set this up again to work with this. It’s really discouraging.

Based on the screenshots he provided, I assume you just need to click the buttons to enable the features such as snapper time and snapper cleanup.
I wouldn’t enable the balance feature because, in my opinion, it’s just not necessary for a single ssd drive.
I would tune the cleanup settings accordingly.
I wouldn’t turn on the scrub feature because I would like to know when it’s running to avoid slowdowns or even reboots during the process.
I would turn on fstrim as based on Dalto post above, it doesn’t hurt to have fstrim and discard=async running together…

This is how I would use it… It’s my personal preference, and the nature of a personal preference is that is not perfect for everyone, and also I would change it and tune it accordingly over time…

I reinstalled with kde and btrfs but there is no /.snapshots folder. I’m trying to understand is everything here that that is needed. Do i have to install snapper? I did but I’m not sure if that program already pulls it in. Does it automatically create the configs? I really don’t know what to do.

Let me check, I’ll install it here to find it out.
Maybe it’s a requirement, I remember a pacman -Qs snapper that would show that, not sure if the pacman command is right to check the requirements…

Sorry, I was away for a while.

If you re-installed, all you need to do is install snapper and btrfs-assistant-git

Once you do, if you run btrfs Assistant, you can create the snapper configs you want right in the gui.

1 Like