I have used snapper with Fedora 26 to create snapshots of my btrfs system, and I am trying to start fresh (i.e. remove snapper and anything it has done) but I have one snapshot I cannot remove as it appears to be my default subvolume (I don't remember why it would have done this, perhaps I tried a rollback).
# snapper delete 535
Deleting snapshot failed.
# btrfs subvolume get-default /
ID 1630 gen 112224 top level 275 path .snapshots/535/snapshot
# btrfs subvolume show /
/
Name: root
UUID: 544f9215-4537-fe4b-b1b5-4da21d9abb9c
Parent UUID: -
Received UUID: -
Creation time: 2017-07-19 21:28:42 +0100
Subvolume ID: 257
Generation: 112591
Gen at creation: 8
Parent ID: 5
Top level ID: 5
Flags: -
Snapshot(s):
I am not certain if what I am asking here makes sense, but I want to change my default subvolume back to the parent (;master;root, not sure the right word) volume I had when I originally set up the system at the top-level of the file system, i.e. /, before the default change.
# btrfs subvolume list / -a -p -t
ID gen parent top level path
-- --- ------ --------- ----
257 112604 5 5 <FS_TREE>/root
258 112604 5 5 <FS_TREE>/home
263 112214 257 257 root/var/lib/machines
275 112593 257 257 root/.snapshots
276 112577 258 258 <FS_TREE>/home/.snapshots
1630 112224 275 275 <FS_TREE>/root/.snapshots/535/snapshot
1639 112604 257 257 root/var/log
1641 111548 257 257 root/mnt/virtualbox
Can I run a btrfs subvolume set-default
to one of these to achieve this. I'm not certain on the meaning of /... as I was guessing I should change the default to the root with ID 257, but this threw me off.
The files inside this snapshot are now outdated compared to those in / and so I am not looking to overwrite / with the contents of the snapshot.