Hi,
today i wanted to repartition my system, so i decide to back up the data with sending the existing data from all volumes with btrfs send to an external XFS formatted drive and saved the streams as files.
After repartitioning the drive, i wanted to restore my Files using btrfs receive, but it fails on a specific file which i do not need necessarily, but i can’t get any further as the receive stops immediately after hitting the crc32 error.
is there anything i can try to get past the crc32 error and try to recover the remaining data in the stream?
Edit: found the --max-errors option. Hope this will restore the rest of the file.
one lesson learned: run btrfs-receive --dump to test the file before deleting the source, as btrfs send does not verify it’s stream written to a file … ![]()
Sidenote: i think the corruption arises because the system went to standby during btrfs send so i expect that there is only one corrupted file in the stream. Keeping my fingers crossed…