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 )

  • tychosmoose@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    5 days ago

    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)

    • gpstarman@lemmy.todayOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 days ago

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

      Also I use BTRFS assistant with snapper.

      • tychosmoose@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        5 days ago

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

        • gpstarman@lemmy.todayOP
          link
          fedilink
          arrow-up
          1
          ·
          5 days ago

          But restoring home subvol worked just fine though.

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