linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issue in recovering and using the mirror superblock
@ 2017-11-23 16:31 koller
  2017-11-23 20:47 ` koller
  2017-11-24  1:08 ` Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: koller @ 2017-11-23 16:31 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-24  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 16:31 Issue in recovering and using the mirror superblock koller
2017-11-23 20:47 ` koller
2017-11-24  1:08 ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).