From: Qu Wenruo <wqu@suse.com>
To: "S." <sb56637@gmail.com>, Qu Wenruo <quwenruo.btrfs@gmx.com>,
linux-btrfs@vger.kernel.org
Subject: Re: Upgraded from Buster to Bullseye, unmountable Btrfs filesystem
Date: Thu, 11 Nov 2021 08:58:08 +0800 [thread overview]
Message-ID: <725543aa-029d-c22e-0ac8-bc77637c0474@suse.com> (raw)
In-Reply-To: <4f7be37a-502c-6ee1-2519-29b84810999c@gmail.com>
On 2021/11/11 08:18, S. wrote:
> On 11/10/21 18:46, Qu Wenruo wrote:
>> So it means, we still need btrfs-progs to repair it.
>>
>> Thus I believe you still need to prepare a build environment for it.
>>
>> For the worst case, I could try to build a static btrfs-progs for you if
>> you could provide the "uname -a" output.
>
> Thanks for your time and patience. If you have time for a static build
> of btrfs-progs I would be very grateful.
> # uname -a
> Linux OpenMediaVault 5.10.0-9-marvell #1 Debian 5.10.70-1 (2021-09-30)
> armv5tel GNU/Linux
>
Oh, I was expecting something like aarch64...
I don't have the toolchain for armv5 at hand.
But there is still another way.
Don't mount the fs with older kernel yet, make sure the newer kernel
still fails with the same dmesg output, especially the same line like:
[ 115.428780] BTRFS error (device sda3): block=170459136 read time tree
block corruption detected
Then use the following command to grab the physical position of the
corrupted tree block:
# btrfs-map-logical -l 170459136 /dev/sda3
It would show something like:
mirror 1 logical 170459136 physical 178847744 device /dev/test/test
mirror 2 logical 170459136 physical 447283200 device /dev/test/test
Then use the physical values to read the tree block out:
# dd if=/dev/sda3 of=/tmp/mirror1 bs=1 count=16k skip=178847744
# dd if=/dev/sda3 of=/tmp/mirror2 bs=1 count=16k skip=447283200
Then send the file mirror1 and mirror2 to me, so I can modify the tree
block manually.
NOTE: 178847744 and 447283200 should be from your btrfs-map-logical
output, the numbers I used are just some examples.
And 16k should be your node size, which you can verify by "btrfs ins
dump-super /dev/sda3 | grep nodesize".
16K should have been the default value for a long long time.
Thanks,
Qu
next prev parent reply other threads:[~2021-11-11 0:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-10 2:17 Upgraded from Buster to Bullseye, unmountable Btrfs filesystem S.
2021-11-10 2:33 ` Qu Wenruo
2021-11-10 2:55 ` S.
2021-11-10 3:34 ` Qu Wenruo
2021-11-10 4:30 ` S.
2021-11-10 7:01 ` Qu Wenruo
2021-11-10 14:01 ` S.
2021-11-10 23:46 ` Qu Wenruo
2021-11-11 0:18 ` S.
2021-11-11 0:58 ` Qu Wenruo [this message]
2021-11-11 2:29 ` S.
[not found] ` <e19518ec-a885-4a1d-1dda-a5be645a1d73@gmail.com>
[not found] ` <73fb26b3-932c-9592-bced-6a3fda3456f0@gmx.com>
[not found] ` <fdcac254-e169-7aba-7a12-c828aaab3231@gmail.com>
2021-11-12 0:06 ` Qu Wenruo
2021-11-11 5:22 ` S.
2021-11-11 6:20 ` Rosen Penev
2021-11-11 14:26 ` S.
2021-11-12 15:18 ` S.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=725543aa-029d-c22e-0ac8-bc77637c0474@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
--cc=sb56637@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox