btrfs rescue

Try to recover a damaged btrfs filesystem. More information: https://btrfs.readthedocs.io/en/latest/btrfs-rescue.html.

sudo btrfs rescue chunk-recover {{path/to/partition}}

sudo btrfs rescue fix-device-size {{path/to/partition}}

sudo btrfs rescue super-recover {{path/to/partition}}

sudo btrfs rescue zero-log {{path/to/partition}}

sudo btrfs rescue create-control-device