btrfs-rescue
Try to recover a damaged btrfs filesystem. tldr-pages
On Linux
Linux
Rebuild the filesystem metadata tree (very slow)
sudo btrfs [resc [ch path/to/partitionIdentifyFix device size alignment related problems (e.g. unable to mount the filesystem with super total bytes mismatch)
sudo btrfs [resc [fix-de path/to/partitionIdentifyRecover a corrupted superblock from correct copies (recover the root of filesystem tree)
sudo btrfs [resc [s path/to/partitionIdentifyRecover from an interrupted transactions (fixes log replay problems)
sudo btrfs [resc [z path/to/partitionIdentifyCreate a /dev/btrfs-control control device when mknod is not installed
sudo btrfs [resc [cIdentify