Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.today
linux4noobs·Linux 101 stuff. Questions are encouraged, noobs are welcome!bygpstarman

How to restore root subvolume BTRFS snapshot?

I'm using CachyOS (Arch) with BTRFS. And tried to restore snap of root subvolume and it didn't work ( see previous post ).

If I remember correctly, i successfully restored root subvolume before. Take it with a grain of salt.

Some people on my previos posts said that I shouldn't have tried restore root subvol while system is actively running through the subvol.

Now my question is,

How to restore a snap of root subvolume ?

Edit: I know how to restore a snapshot. Just need help with root subvol snapshot.

I use BTRFS Assistant with snapper. And rEFInd doens't have boot to snapshot option. (I installed and it didn't work )

View original on lemmy.today
2

4 replies

lemm.ee

On openSUSE with the default partitioning and Snapper you rollback this way:

  1. Boot to the snapshot from the grub menu.
  2. Test to make sure it's working.
  3. Run sudo snapper rollback and reboot.

It may differ for Arch depending on how you have it set up. If you don't have grub entries for the snapshots, you could install and configure grub-btrfs. It's easy, but there could be gotchas depending on how you are set up currently. Maybe give this a read and see if it's helpful: https://www.lorenzobettini.it/2023/03/snapper-and-grub-btrfs-in-arch-linux/

(Not my blog, it just looked useful)

1
gpstarmanreply
lemmy.today

I use rEFInd. And installed refind-btrfs and it didn't do anything.

Also I use BTRFS assistant with snapper.

1
lemm.ee

If I was in your shoes I would probably figure that out first. It could be related to why the snapshot restore failed.

1

But restoring home subvol worked just fine though.

Anyways I should look what's up with refind-btrfs. Probably just gonna switch to grub.

1

You reached the end

How to restore root subvolume BTRFS snapshot? | Spyke