BTRFS error repair?

I try to Balance over the Garuda welcome app after a while it exit and the system was unusable bec all was read only
i restore snapshot and try to repair with btrfs check repair. but i dont no how to fix it . maybee someone can advice me ?

SYS
[sudo] Passwort für smoky:  
ERROR: not a block device: /

 ╭─smoky@smoky in ~ took 1s
[🔴] × inxi -Fxxxza
System:    Kernel: 5.11.3-xanmod1-cacule-1-cacule x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-xanmod-cacule 
           root=UUID=05a427f0-e7bb-4fdd-96da-417540e16787 rw rootflags=subvol=@ quiet splash 
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 loglevel=3 
           sysrq_always_enabled=1 mitigations=off 
           Desktop: KDE Plasma 5.21.2 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM Distro: Garuda Linux 
Machine:   Type: Desktop System: ASUS product: N/A v: N/A serial: <filter> 
           Mobo: ASUSTeK model: ROG STRIX B550-F GAMING v: Rev X.0x serial: <filter> UEFI: American Megatrends 
           v: 1805 date: 02/05/2021 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K270 serial: <filter> 
           charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Info: 12-Core model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) 
           model-id: 71 (113) stepping: N/A microcode: 8701021 L2 cache: 6 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 191988 
           Speed: 3999 MHz min/max: 2200/4000 MHz boost: enabled Core speeds (MHz): 1: 3999 2: 3997 3: 4017 
           4: 3998 5: 3999 6: 4000 7: 4002 8: 3999 9: 3998 10: 3998 11: 3999 12: 4018 13: 3997 14: 3997 
           15: 3985 16: 3999 17: 3973 18: 4000 19: 4001 20: 4001 21: 3990 22: 3998 23: 4001 24: 3975 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           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: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] 
           vendor: ASUSTeK driver: amdgpu v: kernel bus ID: 0a:00.0 chip ID: 1002:731f class ID: 0300 
           Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: loaded: amdgpu,ati 
           unloaded: modesetting,radeon alternate: fbdev,vesa display ID: :0 screens: 1 
           Screen-1: 0 s-res: 3840x2160 s-dpi: 192 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9") 
           Monitor-1: DisplayPort-0 res: 3840x2160 hz: 60 dpi: 154 size: 632x360mm (24.9x14.2") 
           diag: 727mm (28.6") 
           OpenGL: 
           renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.40.0 5.11.3-xanmod1-cacule-1-cacule LLVM 11.1.0) 
           v: 4.6 Mesa 20.3.4 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver: snd_hda_intel v: kernel 
           bus ID: 0a:00.1 chip ID: 1002:ab38 class ID: 0403 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK 
           driver: snd_hda_intel v: kernel bus ID: 0c:00.4 chip ID: 1022:1487 class ID: 0403 
           Device-3: Logitech HD Webcam C510 type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-9:6 
           chip ID: 046d:081d class ID: 0e02 serial: <filter> 
           Sound Server: ALSA v: k5.11.3-xanmod1-cacule-1-cacule 
Network:   Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel port: N/A bus ID: 07:00.0 
           chip ID: 8086:15f3 class ID: 0200 
           IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IF-ID-1: wg-mullvad state: unknown speed: N/A duplex: N/A mac: N/A 
Bluetooth: Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb v: 0.8 
           bus ID: 3-1:2 chip ID: 0a12:0001 class ID: e001 
           Message: Required tool hciconfig not installed. Check --recommends 
Drives:    Local Storage: total: 6.15 TiB used: 2.71 TiB (44.1%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: Corsair MP400 size: 1.82 TiB block size: 
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
           rev: ECFM53.0 temp: 41.9 C scheme: GPT 
           ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB 
           block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
           rev: 2B2QEXM7 temp: 44.9 C scheme: GPT 
           ID-3: /dev/sda maj-min: 8:0 type: USB vendor: Samsung model: Type-C size: 239.02 GiB block size: 
           physical: 512 B logical: 512 B serial: <filter> rev: 1100 scheme: MBR 
           SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
           ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 020 temp: 41 C 
           scheme: GPT 
           ID-5: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 860 QVO 2TB size: 1.82 TiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 2B6Q scheme: GPT 
           ID-6: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 2B6Q scheme: GPT 
Partition: ID-1: / raw size: 1.82 TiB size: 1.82 TiB (100.00%) used: 629.9 GiB (33.8%) fs: btrfs 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) used: 25.8 MiB (8.6%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
           ID-3: /home raw size: 1.82 TiB size: 1.82 TiB (100.00%) used: 629.9 GiB (33.8%) fs: btrfs 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-4: /var/log raw size: 1.82 TiB size: 1.82 TiB (100.00%) used: 629.9 GiB (33.8%) fs: btrfs 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-5: /var/tmp raw size: 1.82 TiB size: 1.82 TiB (100.00%) used: 629.9 GiB (33.8%) fs: btrfs 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
Swap:      Kernel: swappiness: 10 (default 60) cache pressure: 65 (default 100) 
           ID-1: swap-1 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram0 
           ID-2: swap-2 type: zram size: 2.62 GiB used: 228 KiB (0.0%) priority: 32767 dev: /dev/zram1 
           ID-3: swap-3 type: zram size: 2.62 GiB used: 168 KiB (0.0%) priority: 32767 dev: /dev/zram2 
           ID-4: swap-4 type: zram size: 2.62 GiB used: 208 KiB (0.0%) priority: 32767 dev: /dev/zram3 
           ID-5: swap-5 type: zram size: 2.62 GiB used: 216 KiB (0.0%) priority: 32767 dev: /dev/zram4 
           ID-6: swap-6 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram5 
           ID-7: swap-7 type: zram size: 2.62 GiB used: 204 KiB (0.0%) priority: 32767 dev: /dev/zram6 
           ID-8: swap-8 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram7 
           ID-9: swap-9 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram8 
           ID-10: swap-10 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram9 
           ID-11: swap-11 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram10 
           ID-12: swap-12 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram11 
           ID-13: swap-13 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram12 
           ID-14: swap-14 type: zram size: 2.62 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram13 
           ID-15: swap-15 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram14 
           ID-16: swap-16 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram15 
           ID-17: swap-17 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram16 
           ID-18: swap-18 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram17 
           ID-19: swap-19 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram18 
           ID-20: swap-20 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram19 
           ID-21: swap-21 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram20 
           ID-22: swap-22 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram21 
           ID-23: swap-23 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram22 
           ID-24: swap-24 type: zram size: 2.62 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram23 
Sensors:   System Temperatures: cpu: 49.5 C mobo: N/A gpu: amdgpu temp: 51.0 C mem: 48.0 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 0 
Info:      Processes: 505 Uptime: 11m wakeups: 2 Memory: 62.78 GiB used: 8.03 GiB (12.8%) Init: systemd v: 247 
           Compilers: gcc: 10.2.0 clang: 11.1.0 Packages: pacman: 2155 lib: 600 Shell: fish v: 3.1.2 
           running in: konsole inxi: 3.3.01 ~~~
BTRFS Scrub no error
UUID:             05a427f0-e7bb-4fdd-96da-417540e16787
Scrub started:    Sun Mar  7 09:45:59 2021
Status:           finished
Duration:         0:03:39
Total to scrub:   629.40GiB
Rate:             2.87GiB/s
Error summary:    no errors found
Mount BTRFS
mount | grep btrfs
/dev/nvme0n1p2 on / type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=2260,subvol=/@)
/dev/nvme0n1p2 on /home type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=1993,subvol=/@ho
me)
/dev/nvme0n1p2 on /root type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=258,subvol=/@roo
t)
/dev/nvme0n1p2 on /srv type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=259,subvol=/@srv)
/dev/nvme0n1p2 on /var/cache type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=260,subvol=
/@cache)
/dev/nvme0n1p2 on /var/log type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=261,subvol=/@
log)
/dev/nvme0n1p2 on /var/tmp type btrfs (rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=262,subvol=/@
tmp) ~~~
sudo dmesg | grep -i btrfs
[sudo] Passwort für smoky:  
[   11.724487] Btrfs loaded, crc32c=crc32c-intel, zoned=yes
[   11.735376] BTRFS: device fsid 05a427f0-e7bb-4fdd-96da-417540e16787 devid 1 transid 48237 /dev/nvme0n1p2 scanned by systemd-udevd (425)
[   11.822882] BTRFS info (device nvme0n1p2): disk space caching is enabled
[   11.822884] BTRFS info (device nvme0n1p2): has skinny extents
[   11.949208] BTRFS info (device nvme0n1p2): enabling ssd optimizations
[   11.949212] BTRFS error (device nvme0n1p2): qgroup generation mismatch, marked as inconsistent
[   11.949482] BTRFS info (device nvme0n1p2): checking UUID tree
[   12.720405] BTRFS info (device nvme0n1p2): enabling auto defrag
[   12.720409] BTRFS info (device nvme0n1p2): use zstd compression, level 3
[   12.720410] BTRFS info (device nvme0n1p2): disk space caching is enabled
sudo btrfs subvolume list /
ID 258 gen 48208 top level 5 path @root
ID 259 gen 44025 top level 5 path @srv
ID 260 gen 48254 top level 5 path @cache
ID 261 gen 48256 top level 5 path @log
ID 262 gen 48242 top level 5 path @tmp
ID 1522 gen 48162 top level 5 path timeshift-btrfs/snapshots/2021-03-04_13-32-51/@home
ID 1523 gen 48177 top level 5 path timeshift-btrfs/snapshots/2021-03-04_13-32-51/@
ID 1899 gen 48177 top level 5 path timeshift-btrfs/snapshots/2021-02-28_10-01-15/@
ID 1900 gen 48162 top level 5 path timeshift-btrfs/snapshots/2021-02-28_10-01-15/@home
ID 1993 gen 48256 top level 5 path @home
ID 1994 gen 48180 top level 5 path timeshift-btrfs/snapshots/2021-03-07_09-07-01/@
ID 2040 gen 48124 top level 5 path timeshift-btrfs/snapshots/2021-03-06_20-23-26/@
ID 2041 gen 48124 top level 5 path timeshift-btrfs/snapshots/2021-03-06_20-37-23/@
ID 2042 gen 48124 top level 5 path timeshift-btrfs/snapshots/2021-03-06_22-20-46/@
ID 2043 gen 48124 top level 5 path timeshift-btrfs/snapshots/2021-03-06_23-51-29/@
ID 2044 gen 48191 top level 5 path timeshift-btrfs/snapshots/2021-03-07_07-38-00/@
ID 2260 gen 48256 top level 5 path @
sudo btrfs check --repair /dev/nvme0n1p2
enabling repair mode
WARNING:

Do not use --repair unless you are advised to do so by a developer
or an experienced user, and then only after having accepted that no
fsck can successfully repair all types of filesystem corruption. Eg.
some software or hardware bugs can fatally damage a volume.
The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...
Checking filesystem on /dev/nvme0n1p2
UUID: 05a427f0-e7bb-4fdd-96da-417540e16787
[1/7] checking root items
Fixed 0 roots.
[2/7] checking extents
No device size related problem found
[3/7] checking free space cache
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups
Invalid mapping for 986753318912-986753335296, got 1007326068736-1008399810560
Couldn't map the block 986753318912
Couldn't map the block 986753318912
bad tree block 986753318912, bytenr mismatch, want=986753318912, have=0
Invalid mapping for 986701791232-986701807616, got 1007326068736-1008399810560
Couldn't map the block 986701791232
Couldn't map the block 986701791232
bad tree block 986701791232, bytenr mismatch, want=986701791232, have=0
check/qgroup-verify.c:546: account_all_refs: BUG_ON `ref->num_bytes != num_bytes` triggered, value 1
btrfs(+0x1ab1d)[0x55e6088d3b1d]
btrfs(qgroup_verify_all+0x5b5)[0x55e6088d4735]
btrfs(+0x49b74)[0x55e608902b74]
btrfs(main+0x94)[0x55e6088cf0c4]
/usr/lib/libc.so.6(__libc_start_main+0xd5)[0x7f7de9544b25]
btrfs(_start+0x2e)[0x55e6088cf3ee]
fish: 'sudo btrfs check --repair /dev/…' terminated by signal SIGABRT (Abbruch)

is it possible to fix ? or must i install new to fix it ?
i looked at the BTRFS wiki but honestly i dont no really what do to so im afraid i will broke it more
Thx for any help

Looks like it. :pensive:

4 Likes

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