# Btrfs setup with Timeshift & snapshots not right?

**URL:** <https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496>\
**Category:** EndeavourOS installation\
**Created:** [August 12, 2021, 1:57am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496 "2021-08-12T01:57:33Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 2:31am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/21 "2021-08-12T02:31:40Z")

</div>

They are in root so do i put / in front of it or needs a space? It isn’t working.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [August 12, 2021, 2:35am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/22 "2021-08-12T02:35:59Z")

</div>

They are not in the root of the filesystem, they in the root of the device. If you click near the area in dolphin at the top where it says root it should show you where it is mounted. Probably `/run/timeshift/backup`

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 2:39am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/23 "2021-08-12T02:39:19Z")

</div>

Okay I see. I didn’t realize that. So would it be like

sudo btrfs subvolume delete /run/timeshift/backup/@-0gyqxf

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [August 12, 2021, 2:40am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/24 "2021-08-12T02:40:34Z")

</div>

Yes, something like that. Just be careful not to delete the other ones. 😉

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 2:41am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/25 "2021-08-12T02:41:23Z")

</div>

Okay… that worked but I’m still not understanding why it created them?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [August 12, 2021, 2:42am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/26 "2021-08-12T02:42:22Z")

</div>

I don’t know why they were created. I don’t use timeshift personally. I prefer to have more control over my snapshots.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 2:44am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/27 "2021-08-12T02:44:34Z")

</div>

Well i don’t know much about this stuff so I’m just trying. How do you use it without timeshift then?

Edit: So i guess then when it makes a snapshot it is actually a snapshot of a subvolume?

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 2:57am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/28 "2021-08-12T02:57:21Z")

</div>

> [@dalto](#):
>
> Looks fine to me except that you don’t need to set btrfs subvolumes to fsck

What does this mean?

Edit: I didn’t set this? It was automatic.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [August 12, 2021, 3:10am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/29 "2021-08-12T03:10:23Z")

</div>

> [@ricklinux](#):
>
> So i guess then when it makes a snapshot it is actually a snapshot of a subvolume?

The interesting thing about btrfs is that snapshots are also subvolumes themselves. That is why when you list subvolumes you see all your snapshots.

> [@ricklinux](#):
>
> What does this mean?
> 
> Edit: I didn’t set this? It was automatic.

In `/etc/fstab`, all those lines end with `0 2`. The `2` part of that tells it to fsck the filesystem in the second pass. However, btrfs filesystems don’t need to be fsck’d so they should be `0 0`. It won’t hurt anything because `fsck.btrfs` basically does nothing. It is calamares that sets those wrong.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 3:13am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/30 "2021-08-12T03:13:26Z")

</div>

Yes i used the secret sauce ISO. 😉 So efi is set 0, 2 and / is 0, 1 the rest are 0, 2  
Should they alll be 0, 0?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [August 12, 2021, 3:15am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/31 "2021-08-12T03:15:28Z")

</div>

> [@ricklinux](#):
>
> Should they alll be 0, 0?

All the btrfs lines should be `0 0`, yes.

If it is a throw-away install I wouldn’t worry about it but if it is something you are planning to keep around might as well change it.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 3:19am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/32 "2021-08-12T03:19:54Z")

</div>

I’ll change it just because it helps to remember stuff. Thanks a lot i couldn’t have done it without your help! I learned a little although this was a lot really. Every little bit is a step forward. 😉 I would have just started over and given up.

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [August 12, 2021, 3:21am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/33 "2021-08-12T03:21:09Z")

</div>

this is how i’ve set mine when followed @2000 howto

> **fstab**
>
> ```auto
> # <file system> <mount point> <type> <options> <dump> <pass>
> UUID=D476-FF9D /boot/efi vfat umask=0077 0 2
> UUID=f3496a94-266c-4596-a437-da3530ad8f7e /boot ext4 defaults,noatime 0 2
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd / btrfs subvol=/@,defaults,noatime,space_cache,autodefrag,compress-force=zstd 0 0
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd /home btrfs subvol=/@home,defaults,noatime,space_cache,autodefrag,compress-force=zstd 0 0
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd /var/cache btrfs subvol=/@cache,defaults,noatime,space_cache,autodefrag,cpmpress-force=zstd 0 0
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd /var/log btrfs subvol=/@log,defaults,noatime,space_cache,autodefrag,compress-force=zstd 0 0
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd /var/cache/pacman/pkg btrfs subvol=/@var-cache-pacman-pkg,defaults,noatime,space_cache,autodefrag,compress-force=zstd 0 0
> /dev/mapper/luks-f6540be3-39bf-401d-8c00-5603b407b4cd /swap btrfs subvol=@swap,defaults,compress=no 0 0
> /swap/swapfile none swap defaults 0 0
> 
> ```

> **lsblk**
>
> ```auto
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
> luks-f6540be3-39bf-401d-8c00-5603b407b4cd 254:0 0 357,9G 0 crypt /run/timeshift/backup
> /var/cache/pacman/pkg
> /var/log
> /var/cache
> /swap
> /home
> /
> nvme0n1 259:0 0 465,8G 0 disk  
> nvme0n1p1 259:1 0 100M 0 part /boot/efi
> nvme0n1p2 259:2 0 16M 0 part  
> nvme0n1p3 259:3 0 106,4G 0 part  
> nvme0n1p4 259:4 0 824M 0 part  
> nvme0n1p5 259:5 0 512M 0 part /boot
> nvme0n1p6 259:6 0 357,9G 0 part  
> 
> ```

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 12, 2021, 3:24am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/34 "2021-08-12T03:24:35Z")

</div>

Yes, i also have a set up from the wiki on another system. But this one i tried to setup myself without knowing how it’s supposed to be exactly and somehow my time shift created snapshots of / twice? So i was confused as i don’t really understand the whole set up but I’m starting to. 😀

Edit: I think it probably happened because as @dalto said it doesn’t open dolphin on kde because time shift is running in root. So i probably was clicking on the buttons thinking it wasn’t working. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [August 12, 2021, 3:29am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/35 "2021-08-12T03:29:03Z")

</div>

I know exactly what you mean, as i don’t understand anything ^^  
Especially regarding timeshift… i’ve been thru issues that i didn’t succeed to comprehend…

> [@dalto](#):
>
> I don’t use timeshift personally. I prefer to have more control over my snapshots.

and this is exactly what I need to do…

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [August 12, 2021, 3:38am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/36 "2021-08-12T03:38:45Z")

</div>

Apparently, as per the wiki, you wouldn’t need to specify the tmpfs entry for /tmp in your fstab

> [Arch uses a tmpfs /run directory, with /var/run and /var/lock simply existing as symlinks for compatibility. It is also used for /tmp by the default systemd setup and does not require an entry in fstab unless a specific configuration is needed.](https://wiki.archlinux.org/title/tmpfs)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [August 14, 2021, 3:39am UTC](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496/37 "2021-08-14T03:39:22Z")

</div>

Closed on August 14, 2021, 3:39am UTC

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

[Previous page](https://forum.endeavouros.com/t/btrfs-setup-with-timeshift-snapshots-not-right/16496.md?page=1)
