Preface
Dear BTRFS folks, I’m using snapper in openSUSE.
For learning purpose I did % snapper rollback
.
It was more like a curiosity reason about snapper, but become a blunder.
BTRFS Mount Trapped in Snapper Rollback
After % snapper rollback
, my % snapper list
become empty.
And this strange error message from snapper.
It seems like root filesystem mounted to a snapshot volume as shown in command below.
How do I solve the issue, undo the rollback to my normal filesystem ?
The answer is, add .snapshots
entry in /etc/fstab
.
Before The Issue
I actually had wonderful life with snapper.
Reading
Setup Subvolume for Root
Configuration
Some Cool Commands
Or if you wish, summary using line count.
Undo Change
Even delete
Make a snapshot
Solving The Issue
First I need to add this line to /etc/fstab
and mount it, no need to reboot.
Get current snap
In my case, previously I have snapshot number 75.
This is below just an example.
list snapper
I decide to go back to 45.
Get BTRFS ID
I find the ID of 45, it is 355.
Change default
To make it writable
And make it default
Then reboot
Remove the annoying snapshot.
That’s all
Conclusion
I have to learn about the basic of BTRFS before going back to snapper !
Thank you for reading