You are not logged in.

#1 2019-03-18 07:07:31

_zethex
Member
Registered: 2019-01-30
Posts: 10

Snapper: "Creating snapshot failed." when creating a BTRFS snapshot.

Running this command:

snapper -c root create --description Description

outputs:

Creating snapshot failed.

Output of

btrfs subvolume list -p /

is

ID 259 gen 16 parent 5 top level 5 path var/lib/portables
ID 260 gen 17 parent 5 top level 5 path var/lib/machines
ID 282 gen 926 parent 5 top level 5 path .snapshots

.

I don't know what I am doing wrong. I am trying to snapshot the (/) directory. My goal is to be able to snapshot (/) and restore it at a later time if the OS gets screwed. Can someone tell me what I am doing wrong and how to resolve it?

Offline

#2 2019-03-18 19:42:44

ratcheer
Member
Registered: 2011-10-09
Posts: 924

Re: Snapper: "Creating snapshot failed." when creating a BTRFS snapshot.

I don't understand your configuration, but I will try to explain mine for you.

My btrfs (one of several, actually, but I'll just describe one of them for clarity) exists on a partition, say /dev/sda4. It contains "normal" subvolumes / and /home.

So, I mount the root subvolume (not to be confused with /) thus:

mount -o subvolid=0 /dev/sda4 /mnt/btrfsroot

You can call the mount point anything you want. Then, I make a subdirectory for my snapshots under /mnt/btrfsroot, e.g., /mnt/btrfsroot/.snapshots

I hope this helps.

Offline

Board footer

Powered by FluxBB