OpenSuse recently implemented an GRUB entry that allows you to boot directly into a previous Btrfs snapshot of your root. Is there any way of bringing it to my Ubuntu installation?

Such feature would be really useful, because it makes more straightforward to restore previous system states.



Snapshot in BTRFS is a form of subvolume. By default, your Ubuntu installer on BTRFS created two subvolumes - @ and @home. If you create there a snapshot, say @backup, then you can boot from it by editing grub settings during boot to change the root subvolume name from @ to @backup. You may need to edit @backup/etc/fstab too.

  • Thanks for the answer. Could you provide instructions on how to do that? – lf_araujo Dec 2 '15 at 21:09
  • Well, this is rather adavanced move. Research into BTRFS at BTRFS Wiki and Arch linux wiki, then look for grub configuration there too. This is not a one line solution. – Barafu Albino Dec 3 '15 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.