Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

booting R/O snapshots on Ubuntu #264

Open
jfabernathy opened this issue Jan 12, 2023 · 2 comments
Open

booting R/O snapshots on Ubuntu #264

jfabernathy opened this issue Jan 12, 2023 · 2 comments

Comments

@jfabernathy
Copy link

jfabernathy commented Jan 12, 2023

I have added snapper and grub-btrfs to a Kubuntu 22.04 system and manage the snapshots with btrfs-assistant. This system does not have subvols @var or @cache. Just @, @home, and @/.snapshots. So I can't boot any of the snapshots. The workaround with the overlayfs mentions Archlinux. What about Ubuntu based O/S's?

I guess I could boot a USB install ISO and restore those snapshots manually??

@jfabernathy
Copy link
Author

I went back and created subvolumes @var, @log, and @tmp. Then moved that content from under @ to the respective subvols. But that doesn't help booting the snapshots. So I'm going to need the overlayfs.

@avpariy
Copy link

avpariy commented Mar 18, 2023

On last Ubuntu Lunar i can change btrfs snapshot from read-only to read-write and all boot ok from snapshot.
This can be done from btrfs assistant o manually from shell: sudo btrfs property get -ts /.snaphots/10 and then set it to rw type.

You can check it with:

$ sudo btrfs property get -ts /path/to/snapshot/

If it returns ro=true, you have to make it writable with:

$ sudo btrfs property set -ts /path/to/snapshot/ ro false

may be this helpfull to integrate workaround in grub-btrfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants