Thanks again for your answer. Obviously even if my filesystem is toast, it's useful to learn from what happened.
On Fri, May 05, 2017 at 01:03:02PM +0800, Qu Wenruo wrote: > > > So unfortunately, your fs/subvolume trees are also corrupted. > > > And almost no chance to do a graceful recovery. > > So I'm confused here. You're saying my metadata is not corrupted (and in > > my case, I have DUP, so I should have 2 copies), > > Nope, here I'm all talking about metadata (tree blocks). > Difference is the owner, either extent tree or fs/subvolume tree. I see. I didn't realize that my filesystem managed to corrupt both copies of its metadata. > The fsck doesn't check data blocks. Right, that's what scrub does, fair enough. > The problem is, tree blocks (metadata) that refers these data blocks are > corrupted. > > And they are corrupted in such a way that both extent tree (tree contains > extent allocation info) and fs tree (tree contains real fs info, like inode > and data location) are corrupted. > > So graceful recovery is not possible now. I see, thanks for explaining. > Unfortunately, no, even you have 2 copies, a lot of tree blocks are > corrupted that neither copy matches checksum. Thanks for confirming. I guess if I'm having corruption due to a bad card, it makes sense that both get updated after one another and both got corrupted for the same reason. > Corrupted blocks are corrupted, that command is just trying to corrupt it > again. > It won't do the black magic to adjust tree blocks to avoid them. I see. you may hve seen the earlier message from Kai Krakow who was able to to recover his FS by trying this trick, but I understand it can't work in all cases. Thanks again for your answers. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ | PGP 1024R/763BE901 -- 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