public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Pieter P <pieter.p.dev@outlook.com>, linux-btrfs@vger.kernel.org
Subject: Re: Errors found in extent allocation tree (single bit flipped)
Date: Tue, 27 Aug 2024 19:03:01 +0930	[thread overview]
Message-ID: <c29529ca-e6b5-4979-a25a-b254a4d800d0@gmx.com> (raw)
In-Reply-To: <bc8701ab-0054-48c7-88d9-6fd9e856cde7@gmx.com>



在 2024/8/27 16:21, Qu Wenruo 写道:
>
>
> 在 2024/8/27 14:49, Qu Wenruo 写道:
>>
>>
>> 在 2024/8/27 10:17, Pieter P 写道:
>>> On 27/08/2024 01:18, Qu Wenruo wrote:
>>>> After your latest --repair try, the fs should be more or less fine, you
>>>> can try remove the offending file.
>>>>
>>>> Just a minor problem left with the superblock used bytes, that can be
>>>> fixed by another "btrfs check --repair" run very safely.
>>>
>>> No luck, unfortunately. Removing the file fails (automatically gets
>>> re-mounted read-only, and the file re-appears), and btrfs check --repair
>>> fails to repair the super bytes_used error (output attached).
>>>
>>>> Another possibility is, the fs is old and you just migrated the
>>>> drive/fs
>>>> to the current platform, but I doubt about the case considering the
>>>> file
>>>> is some browser cache, which shouldn't be that old.
>>>>
>>>> Just in case, mind to try something like memtest86+ (UEFI payload) or
>>>> memtester (inside the OS) to rule out the hardware problem?
>>>
>>> The fs is only around 1.5 years old, it never left the system. The file
>>> was last modified on July 22. I'll run another memtest.
>>
>> Anyway considering it's not going to be resolved by repair, I can craft
>> a dedicated tool, if you can compile btrfs-progs.
>>
>> That should fix modify that specific file extent (root 257 ino 50058751
>> filepos 0) by changing its on-disk bytenr to the correctly.
>>
>> Will let you know when the tool is done (should be pretty soon)
>
> Here is the hand crafted fix for you:
>
> https://github.com/adam900710/btrfs-progs/tree/dirty_fixes
>
> The usage is:
>
> # ./btrfs-corrupt-block -X <device>
>
> The fs must be unmounted.

And it's better to run "btrfs check --readonly" after a successful run
(the successful should result no output), and paste the output of the
btrfs-check.

If there is something wrong, the program should output something and
please paste it here.

Thanks,
Qu

>
> Thanks,
> Qu
>
>>
>> Thanks,
>> Qu
>>>
>>> Thank you,
>>> Pieter
>>>
>>
>

  reply	other threads:[~2024-08-27  9:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-12 14:57 Errors found in extent allocation tree (single bit flipped) Pieter P
2024-08-20 14:01 ` Pieter P
2024-08-20 22:55   ` Qu Wenruo
2024-08-20 23:02 ` Qu Wenruo
2024-08-26 23:04   ` Pieter P
2024-08-26 23:18     ` Qu Wenruo
2024-08-27  0:47       ` Pieter P
2024-08-27  5:19         ` Qu Wenruo
2024-08-27  6:51           ` Qu Wenruo
2024-08-27  9:33             ` Qu Wenruo [this message]
2024-08-28  8:49               ` Pieter P
2024-08-28  9:06                 ` Qu Wenruo

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=c29529ca-e6b5-4979-a25a-b254a4d800d0@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pieter.p.dev@outlook.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