Btrfs "/" fails to mount after kernel panic?

A kernel panic occured while i was gaming, so i restarted laptop… The problems didnt end there and soon after restart it kicked me into emergency mode. journalctl and dmesg report that partition with “/” fails to mount due to checksum error (data got corrupt?). I have tried to use btrfs rescue fix-data-checksum /dev/nvme0n1p3 however it requires for the partition to be mounted, but mounting obviously fails. What should i do? Is it possible to restore any data from partition?

I can provide more info about my laptop/system if needed

I “fixed” the problem by mounting the partition with something like mount -o ro,rescue=all /dev/nvme0n1p3 /mnt, extracting needed files from it, and moving to a fresh new fedora install.
Also 10-20 files related to “lm_sensors”(corrupt data itself?) refused to copy due to I/O error despite SMARTCTL checks saying that drive is ok.

If you can figure out what package(s) those files belong to[1], then you might want to reinstall that package (i.e. sudo dnf reinstall <package-name>).[2] If the same version of the package isn’t available, you can try sudo dnf update <package-name> instead. Otherwise, it sounds like you have solved the problem.


  1. E.g., with rpm -qf /path/to/file ↩︎

  2. You can omit the package version (the part of the package name that starts with a dash followed by a number). ↩︎