On my laptop running Fedora 37, after a system crash I can no longer boot into the system. Here is the dmsg output after trying to mount the partition from a live system:
[ 7197.629787] BTRFS info (device sda3): using crc32c (crc32c-intel) checksum algorithm
[ 7197.629796] BTRFS info (device sda3): disk space caching is enabled
[ 7197.835286] BTRFS info (device sda3): enabling ssd optimizations
[ 7197.835291] BTRFS info (device sda3): start tree-log replay
[ 7198.936162] ------------[ cut here ]------------
[ 7198.936165] BTRFS: Transaction aborted (error -17)
[ 7198.936174] WARNING: CPU: 0 PID: 11071 at fs/btrfs/delayed-inode.c:1182 __btrfs_run_delayed_items+0x16d/0x280
[ 7198.936180] Modules linked in: hid_logitech_hidpp hid_logitech_dj binfmt_misc uinput hid_apple hidp rfcomm snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE ip6table_mangle ip6table_nat iptable_mangle iptable_nat bridge stp llc ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG qrtr nf_log_syslog xt_multiport xt_comment xt_limit xt_addrtype xt_conntrack ip6table_filter nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter bnep snd_hda_codec_hdmi snd_soc_avs snd_soc_hda_codec snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_sst_ipc intel_rapl_msr sunrpc snd_soc_sst_dsp snd_soc_acpi_intel_match intel_rapl_common snd_soc_acpi ath10k_pci snd_soc_core ath10k_core rtsx_usb_ms snd_ctl_led snd_compress ac97_bus intel_tcc_cooling snd_hda_codec_realtek mei_pxp memstick iTCO_wdt snd_hda_codec_generic x86_pkg_temp_thermal ledtrig_audio snd_pcm_dmaengine intel_pmc_bxt intel_powerclamp
[ 7198.936228] mac80211 coretemp snd_hda_intel kvm_intel iTCO_vendor_support at24 mei_hdcp snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec btusb snd_hda_core btrtl snd_hwdep uvcvideo vfat btbcm snd_seq fat kvm videobuf2_vmalloc btintel snd_seq_device btmtk libarc4 irqbypass snd_pcm bluetooth videobuf2_memops ath rapl videobuf2_v4l2 intel_cstate videobuf2_common intel_uncore joydev cfg80211 squashfs snd_timer videodev acer_wmi loop mc sparse_keymap intel_wmi_thunderbolt snd i2c_i801 wmi_bmof pcspkr rfkill i2c_smbus soundcore mei_me mei idma64 intel_pch_thermal intel_xhci_usb_role_switch acpi_pad zram dm_crypt i915 drm_buddy rtsx_usb_sdmmc drm_display_helper mmc_core cec hid_multitouch crct10dif_pclmul uas crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel r8169 serio_raw usb_storage ttm rtsx_usb i2c_hid_acpi i2c_hid video wmi scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip6_tables ip_tables dm_multipath i2c_dev fuse
[ 7198.936285] CPU: 0 PID: 11071 Comm: mount Not tainted 6.0.12-300.fc37.x86_64 #1
[ 7198.936287] Hardware name: Acer Aspire V3-372/Aspire V3-372, BIOS V1.12 02/23/2017
[ 7198.936288] RIP: 0010:__btrfs_run_delayed_items+0x16d/0x280
[ 7198.936291] Code: 48 0f ba 2a 03 72 25 41 83 ff fb 0f 84 07 01 00 00 41 83 ff e2 0f 84 fd 00 00 00 44 89 fe 48 c7 c7 88 37 79 a4 e8 c2 a2 7b 00 <0f> 0b 44 89 f9 ba 9e 04 00 00 48 c7 c6 30 22 2c a4 4c 89 e7 e8 2b
[ 7198.936293] RSP: 0018:ffffb1478c85fa70 EFLAGS: 00010296
[ 7198.936295] RAX: 0000000000000026 RBX: ffff9fbd9749f6d8 RCX: 0000000000000000
[ 7198.936296] RDX: 0000000000000001 RSI: ffffffffa47aac1a RDI: 00000000ffffffff
[ 7198.936298] RBP: ffff9fbd9749f680 R08: 0000000000000000 R09: ffffb1478c85f910
[ 7198.936299] R10: 0000000000000003 R11: ffffffffa5146328 R12: ffff9fbb918d0888
[ 7198.936300] R13: ffff9fbb89b9da80 R14: ffff9fbb9fe67800 R15: 00000000ffffffef
[ 7198.936302] FS: 00007faedf105800(0000) GS:ffff9fbde2c00000(0000) knlGS:0000000000000000
[ 7198.936303] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7198.936304] CR2: 000055ac8540d008 CR3: 00000003174d4006 CR4: 00000000003706f0
[ 7198.936306] Call Trace:
[ 7198.936308] <TASK>
[ 7198.936312] btrfs_commit_transaction+0x319/0xc90
[ 7198.936318] btrfs_recover_log_trees+0x3f2/0x650
[ 7198.936321] ? replay_one_extent+0x7e0/0x7e0
[ 7198.936324] open_ctree+0x12f4/0x1550
[ 7198.936329] btrfs_mount_root.cold+0xe/0xa5
[ 7198.936335] legacy_get_tree+0x24/0x50
[ 7198.936338] vfs_get_tree+0x22/0xc0
[ 7198.936341] vfs_kern_mount.part.0+0x73/0xb0
[ 7198.936343] btrfs_mount+0x13a/0x3e0
[ 7198.936349] ? legacy_get_tree+0x24/0x50
[ 7198.936350] legacy_get_tree+0x24/0x50
[ 7198.936352] vfs_get_tree+0x22/0xc0
[ 7198.936354] path_mount+0x446/0xa60
[ 7198.936358] __x64_sys_mount+0xf6/0x140
[ 7198.936361] do_syscall_64+0x58/0x80
[ 7198.936365] ? syscall_exit_to_user_mode+0x17/0x40
[ 7198.936368] ? syscall_exit_to_user_mode+0x17/0x40
[ 7198.936369] ? do_syscall_64+0x67/0x80
[ 7198.936372] ? do_syscall_64+0x67/0x80
[ 7198.936375] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 7198.936378] RIP: 0033:0x7faedf2ecf6e
[ 7198.936399] Code: 48 8b 0d c5 5e 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 92 5e 0c 00 f7 d8 64 89 01 48
[ 7198.936401] RSP: 002b:00007ffd733e9078 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 7198.936403] RAX: ffffffffffffffda RBX: 00005564ffdb7550 RCX: 00007faedf2ecf6e
[ 7198.936404] RDX: 00005564ffdbe090 RSI: 00005564ffdbd900 RDI: 00005564ffdb7780
[ 7198.936405] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000007
[ 7198.936406] R10: 0000000000000000 R11: 0000000000000246 R12: 00005564ffdb7780
[ 7198.936407] R13: 00005564ffdbe090 R14: 00000000ffffffff R15: 00007faedf421076
[ 7198.936411] </TASK>
[ 7198.936412] ---[ end trace 0000000000000000 ]---
[ 7198.936413] BTRFS: error (device sda3: state A) in __btrfs_run_delayed_items:1182: errno=-17 Object already exists
[ 7198.936418] BTRFS warning (device sda3: state EA): Skipping commit of aborted transaction.
[ 7198.936419] BTRFS: error (device sda3: state EA) in cleanup_transaction:1983: errno=-17 Object already exists
[ 7198.939182] BTRFS: error (device sda3: state EA) in btrfs_replay_log:2395: errno=-17 Object already exists (Failed to recover log tree)
[ 7198.960692] BTRFS error (device sda3: state EA): open_ctree failed
I ran sudo btrfs check --check-data-csum -p /dev/sda3
, which found no errors:
Opening filesystem to check...
Checking filesystem on /dev/sda3
UUID: 5f3727cf-2c38-4bda-ad27-03b4bdbbbc18
[1/7] checking root items (0:00:07 elapsed, 3101951 items checked)
[2/7] checking extents (0:00:39 elapsed, 222836 items checked)
[3/7] checking free space cache (0:00:07 elapsed, 437 items checked)
[4/7] checking fs roots (0:01:30 elapsed, 169866 items checked)
[5/7] checking csums against data (0:20:15 elapsed, 1392091 items checked)
[6/7] checking root refs (0:00:00 elapsed, 26 items checked)
[7/7] checking quota groups skipped (not enabled on this FS)
found 421575835648 bytes used, no error found
total csum bytes: 406240592
total tree bytes: 3650437120
total fs tree bytes: 2793619456
total extent tree bytes: 315752448
btree space waste bytes: 734239898
file data blocks allocated: 7263968927744
referenced 400996683776
Given the express warnings that you should not run btrfs-check --repair
without expert consultation, I am here to get some advice on how to proceed.