Rebuild the checksum tree

btrfs check

  • Check or repair a btrfs filesystem.
    More information: <https://btrfs.readthedocs.io/en/latest/btrfs-check.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo btrfs check --repair --init-csum-tree {{path/to/partition}}

click the source code to copy install btrfs check on any operating system with command-not-found.com