Hi,

I am trying to recover from a mistake I made by overwriting the first GBs of my 
Btrfs /home partition with a non-Btrfs filesystem.

I have already made a .dd image of the partition, and I am using it to try and 
find the mirror superblock, in particular the one at 256 GB.

When I run the "btrfs restore" command I get an error message, maybe because 
the mirror superblock -- I am not sure about the reason.

Using the dummy run option, from the command line I do

btrfs restore -D -u 2 /run/media/user01/SamsungHD/sda2.dd 
/run/media/user01/ToshibaHD/RecoveredData

The message is get is:

checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 33D5DCDD wanted 0000016C
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
bytenr mismatch, want=20971520, have=709
ERROR: cannot read chunk root
Could not open root, trying backup super

With the -u 1 option (instead of -u 2) I get:

checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 33D5DCDD wanted 0000016C
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
bytenr mismatch, want=20971520, have=709
ERROR: cannot read chunk root
Could not open root, trying backup super
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
checksum verify failed on 20971520 found 33D5DCDD wanted 0000016C
checksum verify failed on 20971520 found 01FA5E60 wanted 0000000E
bytenr mismatch, want=20971520, have=709
ERROR: cannot read chunk root
Could not open root, trying backup super

I have reason to believe that the mirror superblock at 256 GB is intact (I am 
assuming that only the initial sectors of the partition were overwritten), so I 
do not understand why it is not being recovered. BTW, the size of the partition 
is above 300 GBs, so there is supposed to be a mirror superblock at 256 GB.

Can anyone help me?

--------

Here is the btrfs info:

uname -a
Linux adfa-workstation 4.9.63-1-MANJARO #1 SMP PREEMPT Sat Nov 18 14:12:41 UTC 
2017 x86_64 GNU/Linux

btrfs --version
btrfs-progs v4.13

Thanks

Terry
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to