i'm still pretty new in BTRFS. I created a snapshot because i made changes in the system. Now system is a bit messed up and i want to roll back to the snapshot.
That's what i did:
create a read-only snapshot from my root:
btrfs sub snapshot -r / pre_kde
which creates the following snapshot:
want to roll back
I followed a procedure which succeede under Ubuntu:
mount the default subvolume:
mount /dev/sda2 /mnt/sda2/ -o subvolid=5
cd to there:
ls show one directory:
create a snapshot from the snapshot:
btrfs sub snap /.snapshots/pre_kde/ @
creates a snapshot @/pre_kde which i didn't want
mv -v @ @_alt
create a snapshot from the snapshot (it's twice, i know :-))
btrfs sub snap @_alt/pre_kde/ @
Now i have a snapshot called @ which is what i wanted
All previous snapshots are now under @_alt, and the desired snapshot is under @.
System didn't boot.
As i said, with Ubuntu i succeeded.
What is wrong ?
Btw: I have the following snapshot (retrieved from the same system, booted with Knoppix):
btrfs sub show @_alt/.snapshots/1/snapshot
Parent UUID: 1baca319-0888-5f49-b87b-bfefb598c77f
Received UUID: -
Creation time: 2016-09-19 17:54:09 +0200
Subvolume ID: 259
Gen at creation: 11
Parent ID: 258
Top level ID: 258
The snapshot is created on the 19th of september. Yes ?