Stuck in a btrfs snapper restore volume

I don't know exactly what I did to create the problem but the snapshot list no longer loads in the snapper menu of BTRFS assistant and therefore I cannot create snapshots.
I assume I'm stuck in a btrfs subvolume created from the snapper menu in grub. I think so because in btrfs subvolumes I see this:
https://imgur.com/a/ykDpElz

Post your terminal/konsole in- and output as text (no pictures) from:

inxi -Faz

System:
Kernel: 5.16.1-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=53ea36ed-72a2-452d-976b-6b79d65a182f rw rootflags=subvol=@
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
mitigations=off acpi_enforce_resources=lax snd_hda_intel.dmic_detect=0
snd-intel-dspcfg.dsp_driver=1
Desktop: KDE Plasma 5.23.5 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: 81% condition: N/A volts: 4.0 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: 0xEC
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: 5246 high: 5306 min/max: 800/5300 base/boost: 3700/8300
scaling: driver: intel_pstate governor: performance volts: 1.0 V
ext-clock: 100 MHz cores: 1: 5292 2: 5266 3: 5277 4: 5298 5: 5204 6: 5295
7: 5299 8: 5213 9: 5149 10: 5298 11: 5301 12: 5069 13: 5299 14: 5306
15: 5306 16: 5098 17: 5218 18: 5158 19: 5300 20: 5278 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: 495.46 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:16 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: nvidia unloaded: modesetting alternate: fbdev,nouveau,nv,vesa
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 hz: 60 dpi: 92
size: 531x299mm (20.9x11.8") diag: 609mm (24")
Monitor-3: DP-4 res: 3440x1440 hz: 50 dpi: 110
size: 797x334mm (31.4x13.1") diag: 864mm (34")
OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
v: 4.6.0 NVIDIA 495.46 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:16 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Device-4: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:7 chip-ID: 1b3f:2008
class-ID: 0300
Device-5: 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.1-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.43 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:13 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: 698.66 GiB used: 43.24 GiB (6.2%)
ID-1: /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 scheme: GPT
SMART: yes state: enabled health: PASSED on: 1y 269d 19h cycles: 2691
written: 25.34 TiB
ID-2: /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: 24 C
SMART: yes state: enabled health: PASSED on: 1y 317d 6h cycles: 2966
written: 40.9 TiB
ID-3: /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: 24 C
SMART: yes state: enabled health: PASSED on: 3y 106d 12h cycles: 2555
written: 40.93 TiB
Partition:
ID-1: / raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
used: 43.24 GiB (18.6%) fs: btrfs block-size: 4096 B dev: /dev/sda2
maj-min: 8: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/sda1 maj-min: 8:1
ID-3: /home raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
used: 43.24 GiB (18.6%) fs: btrfs block-size: 4096 B dev: /dev/sda2
maj-min: 8:2
ID-4: /var/log raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
used: 43.24 GiB (18.6%) fs: btrfs block-size: 4096 B dev: /dev/sda2
maj-min: 8:2
ID-5: /var/tmp raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
used: 43.24 GiB (18.6%) fs: btrfs block-size: 4096 B dev: /dev/sda2
maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.16 GiB used: 2 MiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 33.0 C mobo: 30.0 C gpu: nvidia temp: 34 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1569 fan-3: 0 fan-4: 0 fan-5: 0
fan-6: 1127 fan-7: 0 gpu: nvidia fan: 0%
Info:
Processes: 484 Uptime: 16m wakeups: 3 Memory: 31.16 GiB
used: 5.85 GiB (18.8%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1682 lib: 472 Shell: Bash (su)
v: 5.1.16 running-in: konsole inxi: 3.3.12

Report everything you have already attempted to solve your problem.
Restore to another snapshot using grub menu (I get an infinite load).

Can we see the output of

sudo btrfs subvolume list
findmnt /
1 Like
findmnt /
TARGET SOURCE        FSTYPE OPTIONS
/      /dev/sda2[/@] btrfs  rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,autodefrag,subvolid=400,subvol=/@

Regarding the other command it requires an argument what should I pass to it?

Oops.

sudo btrfs subvolume list /
1 Like
sudo btrfs subvolume list /
ID 257 gen 6375 top level 5 path @home
ID 258 gen 6375 top level 5 path @root
ID 259 gen 6214 top level 5 path @srv
ID 260 gen 6375 top level 5 path @cache
ID 261 gen 6375 top level 5 path @log
ID 262 gen 6375 top level 5 path @tmp
ID 263 gen 6312 top level 401 path restore_backup_@_202148186/.snapshots
ID 330 gen 3166 top level 263 path restore_backup_@_202148186/.snapshots/67/snapshot
ID 354 gen 3215 top level 263 path restore_backup_@_202148186/.snapshots/90/snapshot
ID 366 gen 3375 top level 263 path restore_backup_@_202148186/.snapshots/101/snapshot
ID 388 gen 4730 top level 263 path restore_backup_@_202148186/.snapshots/122/snapshot
ID 389 gen 4731 top level 263 path restore_backup_@_202148186/.snapshots/123/snapshot
ID 390 gen 6202 top level 263 path restore_backup_@_202148186/.snapshots/124/snapshot
ID 391 gen 5962 top level 263 path restore_backup_@_202148186/.snapshots/125/snapshot
ID 393 gen 6028 top level 263 path restore_backup_@_202148186/.snapshots/126/snapshot
ID 394 gen 5989 top level 263 path restore_backup_@_202148186/.snapshots/127/snapshot
ID 396 gen 6034 top level 263 path restore_backup_@_202148186/.snapshots/128/snapshot
ID 397 gen 6035 top level 263 path restore_backup_@_202148186/.snapshots/129/snapshot
ID 398 gen 6088 top level 263 path restore_backup_@_202148186/.snapshots/130/snapshot
ID 399 gen 6046 top level 263 path restore_backup_@_202148186/.snapshots/131/snapshot
ID 400 gen 6375 top level 5 path @
ID 401 gen 6311 top level 5 path restore_backup_@_202148186

We can fix that. Give me one moment.

Try this:

sudo mkdir -p /mnt/btrfs
sudo mount /dev/sda2 /mnt/btrfs -o subvolid=5
sudo mv /mnt/btrfs/restore_backup_@_202148186/.snapshots /mnt/btrfs/@/.snapshots
sudo umount /mnt/btrfs
3 Likes
sudo mv /mnt/btrfs/restore_backup_@_202148186/.snapshots /mnt/btrfs/@/.snapshots
mv: impossibile spostare '/mnt/btrfs/restore_backup_@_202148186/.snapshots' in '/mnt/btrfs/@/.snapshots/.snapshots': Operazione non permessa

Translated means:

sudo mv /mnt/btrfs/restore_backup_@_202148186/.snapshots /mnt/btrfs/@/.snapshots
mv: impossible to move '/mnt/btrfs/restore_backup_@_202148186/.snapshots' to '/mnt/btrfs/@/.snapshots/.snapshots': Operation not permitted
sudo rmdir /mnt/btrfs/@/.snapshots
sudo mv /mnt/btrfs/restore_backup_@_202148186/.snapshots /mnt/btrfs/@/.snapshots
sudo umount /mnt/btrfs
6 Likes

Now everything works again!
Thanks for your help

In summary, the commands that solved the problem were:

sudo mkdir -p /mnt/btrfs
sudo mount /dev/sda2 /mnt/btrfs -o subvolid=5
sudo rmdir /mnt/btrfs/@/.snapshots
sudo mv /mnt/btrfs/restore_backup_@_202148186/.snapshots /mnt/btrfs/@/.snapshots
sudo umount /mnt/btrfs
3 Likes

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