BTRFS snapshot from GRUB not properly working

Hello, I'm having some problem restoring from a BTRFS snapshot using the GRUB menu.
The pop-up asking me if I wanted to restore the system to that snapshot no longer appear making the grub menu useless.

garuda-inxi
System:
Kernel: 5.16.10-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=995b984e-0171-4ed2-adff-0bc76cdf57e5 rw [email protected]
vt.global_cursor_default=0
resume=UUID=3aa21218-c4c0-4f6c-b01d-a03bd160addb
systemd.unified_cgroup_hierarchy=1 mitigations=off intel_iommu=on
iommu=pt acpi_enforce_resources=lax snd_hda_intel.dmic_detect=0
snd-intel-dspcfg.dsp_driver=1 ignore_loglevel
Desktop: KDE Plasma 5.24.1 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: N/A
Mobo: ASUSTeK model: ROG MAXIMUS XII FORMULA v: Rev 1.xx serial: <filter>
UEFI: American Megatrends v: 2301 date: 07/13/2021
Battery:
ID-1: hidpp_battery_0 charge: 65% condition: N/A volts: 3.9 min: N/A
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
serial: <filter> status: Charging
CPU:
Info: model: Intel Core i9-10900K socket: LGA1200 bits: 64 type: MT MCP
arch: Comet Lake family: 6 model-id: 0xA5 (165) stepping: 5 microcode: 0xEE
Topology: cpus: 1x cores: 10 tpc: 2 threads: 20 smt: enabled cache:
L1: 640 KiB desc: d-10x32 KiB; i-10x32 KiB L2: 2.5 MiB desc: 10x256 KiB
L3: 20 MiB desc: 1x20 MiB
Speed (MHz): avg: 5001 high: 5303 min/max: 800/5300 base/boost: 3663/8300
scaling: driver: intel_pstate governor: performance volts: 0.9 V
ext-clock: 100 MHz cores: 1: 4900 2: 4902 3: 4901 4: 5059 5: 5303 6: 5296
7: 5279 8: 5065 9: 5224 10: 5083 11: 4900 12: 4901 13: 4900 14: 4901
15: 4901 16: 4912 17: 4902 18: 4900 19: 4902 20: 4901 bogomips: 147994
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Vulnerable
Type: spectre_v1 status: Vulnerable: __user pointer sanitization and
usercopy barriers only; no swapgs barriers
Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Gigabyte driver: nvidia
v: 510.54 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1b81
class-ID: 0300
Device-2: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 7280x1440 s-dpi: 109 s-size: 1696x333mm (66.8x13.1")
s-diag: 1728mm (68")
Monitor-1: DP-0 res: 1920x1080 dpi: 92 size: 531x298mm (20.9x11.7")
diag: 609mm (24")
Monitor-2: DP-2 res: 1920x1080 dpi: 92 size: 531x299mm (20.9x11.8")
diag: 609mm (24")
Monitor-3: DP-4 res: 3440x1440 dpi: 109 size: 800x330mm (31.5x13.0")
diag: 865mm (34.1")
OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
v: 4.6.0 NVIDIA 510.54 direct render: Yes
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:06c8 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0
class-ID: 0403
Device-3: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Device-4: RODE Microphones RODE NT-USB type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1:2 chip-ID: 19f7:0003
class-ID: 0300
Sound Server-1: ALSA v: k5.16.10-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.47 running: yes
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
IF: wlo1 state: down mac: <filter>
Device-2: Aquantia AQC107 NBase-T/IEEE 802.3bz Ethernet [AQtion]
vendor: ASUSTeK driver: atlantic v: kernel port: N/A bus-ID: 04:00.0
chip-ID: 1d6a:07b1 class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
port: N/A bus-ID: 05:00.0 chip-ID: 8086:15f3 class-ID: 0200
IF: enp5s0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-14:12 chip-ID: 8087:0026 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel Comet Lake PCH-H RAID driver: ahci v: 3.0 port: 4020
bus-ID: 00:17.0 chip-ID: 8086:06d6 rev: class-ID: 0104
Drives:
Local Storage: total: 1.61 TiB used: 46.34 GiB (2.8%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A
size: 953.87 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: RKT343.4
temp: 28.9 C scheme: GPT
SMART: yes health: PASSED on: 80 hrs cycles: 47
read-units: 403,121 [206 GB] written-units: 551,785 [282 GB]
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 26 C
SMART: yes state: enabled health: PASSED on: 1y 282d 18h cycles: 2792
written: 32.81 TiB
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 26 C
SMART: yes state: enabled health: PASSED on: 1y 330d 4h cycles: 3067
written: 40.9 TiB
ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 1B6Q temp: 26 C
SMART: yes state: enabled health: PASSED on: 3y 119d 11h cycles: 2656
written: 40.93 TiB
Partition:
ID-1: / raw-size: 919.29 GiB size: 919.29 GiB (100.00%)
used: 46.34 GiB (5.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 919.29 GiB size: 919.29 GiB (100.00%)
used: 46.34 GiB (5.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-4: /var/log raw-size: 919.29 GiB size: 919.29 GiB (100.00%)
used: 46.34 GiB (5.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-5: /var/tmp raw-size: 919.29 GiB size: 919.29 GiB (100.00%)
used: 46.34 GiB (5.0%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 34.28 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
ID-2: swap-2 type: zram size: 31.16 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 32.5 C mobo: 34.0 C gpu: nvidia temp: 37 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1555 fan-3: 0 fan-4: 0 fan-5: 0
fan-6: 901 fan-7: 0 gpu: nvidia fan: 0%
Info:
Processes: 491 Uptime: 1m wakeups: 4 Memory: 31.16 GiB
used: 4.03 GiB (12.9%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 clang: 13.0.1 Packages: note: see --pkg pacman: 1732 lib: 477
Shell: fish v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.12
Garuda (2.5.5-1):
System install date:     2022-02-13
Last full system update: 2022-02-21
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            systemd-guest-user.service

Open BTRFS assistant, click snapshots and “Restore mode”. Then restore to whatever snapshot you want.

1 Like

This works but I would like to make the GRUB menu work as well.

  • Once the boot process completed you will be automatically prompted to restore the currently booted snapshot (This isn't happening)

You want to restore a Snapshot from the GRUB menu before the boot process has started?

Read the post above your.

Oh yeah that's when you boot into a Snapshot and after the boot process and login to DE, there is a window prompt that asks if you want to restore the Snapshot you just booted into.

Is that what you're referring to?

That no longer happens. You have to open up BTRFS Assistant and select the snapshot to restore.

We switched to using an overlayfs when you boot off a snapshot which makes the snapshot booting much more reliable. A side effect is it makes it much harder to detect which snapshot you are booting off of.

4 Likes

Oh that's easy to workaround, you simply add it in your Conky config, if you use Conky. That way you always know which subvol you are in. I cannot live without this, but it requires Conky. There are other ways certainly to clearly identify which subvol you booted into, just gave one idea here...

1 Like

Have you tried those methods when you are booted off an overlayfs? Everything I have tried only shows the overlayfs, not the btrfs subvolume that is underneath it.

Good one @dalto, I don't even know if I ever booted off an overlayfs since I use my own snapshots management. My Conky uses findmnt command to display the subvols.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.