Repository navigation
Replies: 3 comments 9 replies
|
I'm having the same problem on 3.1.4, could not find any helpful logs so far. |
9 replies
|
this helped me:
sudo snapper list-configs
sudo btrfs subvolume show /home
A plain directory won't work — Snapper requires a proper Btrfs subvolume. sudo rmdir /home/.snapshots # only if it exists as a plain dir
sudo btrfs subvolume create /home/.snapshots
omarchy-snapshot create |
0 replies
|
I dug into this same issue and confirmed that, as others have said, it's because btrfs refuses to take a snapshot with an active swapfile in the target volume. The solution is to move the swapfile to its own volume. Step 1 — find your values. Run these and note the output: findmnt -no UUID / # your btrfs UUID
findmnt -no SOURCE --nofsroot / # your root device (e.g. /dev/mapper/root or /dev/sda2)Step 2 — move the swapfile. Substitute , , and adjust the size/path if yours differ: # Release and delete the swapfile that's pinning the root subvolume
sudo swapoff /swapfile
sudo rm /swapfile
sudo sed -i '\#^/swapfile[[:space:]]#d' /etc/fstab # remove the now-dead fstab entry
# Create a dedicated top-level @swap subvolume
sudo mount -o subvolid=5 <DEVICE> /mnt
sudo btrfs subvolume create /mnt/@swap
sudo umount /mnt
# Mount it at /swap (no compression — swap must be uncompressed/NOCOW)
sudo mkdir -p /swap
echo 'UUID=<UUID> /swap btrfs rw,noatime,subvol=/@swap 0 0' | sudo tee -a /etc/fstab
sudo systemctl daemon-reload
sudo mount /swap
# Recreate the swapfile in its new home (mkswapfile handles NOCOW + mkswap)
sudo btrfs filesystem mkswapfile --size 16g /swap/swapfile
echo '/swap/swapfile none swap defaults 0 0' | sudo tee -a /etc/fstab
sudo swapon /swap/swapfile
swapon --showThen verify root snapshots now work — the whole point of this: sudo snapper -c root create -c number -d "verify after swapfile move"
sudo snapper -c root list | tail -5 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
System details
Omarchy 3.1.3
What's wrong?
I'm unable to update Omarchy whenever I try using the refresh button at the waybar or via the Omarchy menu (Super + Alt + Space). I get this error.
Any clue please
All reactions