On 2019/12/6 上午11:40, Christian Wimmer wrote: > Hi Hugo and Qu, > > I installed Arch Linux latest version and here are the results: > > > # btrfs ins dump-tree -t root /dev/sde1 2>&1 > btrfs-progs v5.3.1 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > bad tree block 5349895454720, bytenr mismatch, want=5349895454720, > have=14275350892879035392 > Couldn't setup device tree > ERROR: unable to open /dev/sde1 > # My bad, after looking into the code, we skipped all other trees but not device tree. That why even latest btrfs-progs won't work. I have sent a patch to you, which you can apply it on btrfs-progs v5.4, and compile it (no need to install), then use that compiled btrfs command to retry. For recompile btrfs-progs, you may need the following packages (and groups) under Arch: # pacman -S base-devel e2fsprogs asciidoc xmlto xmltoman attr libutil-linux Then you should be able to continue. Sorry for the inconvenience. Thanks, Qu > > > > # btrfs ins dump-tree -t extent /dev/sde1 2>&1 >/dev/null > btrfs-progs v5.3.1 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > bad tree block 5349895454720, bytenr mismatch, want=5349895454720, > have=14275350892879035392 > Couldn't setup device tree > ERROR: unable to open /dev/sde1 > # > > > # btrfs ins dump-tree -t chunk /dev/sde1 > btrfs-progs v5.3.1 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > bad tree block 5349895454720, bytenr mismatch, want=5349895454720, > have=14275350892879035392 > Couldn't setup device tree > ERROR: unable to open /dev/sde1 > # > > > # btrfs ins dump-tree -t 5 /dev/sde1 2>&1 >/dev/null > btrfs-progs v5.3.1 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > checksum verify failed on 5349895454720 found 000000A8 wanted 00000000 > bad tree block 5349895454720, bytenr mismatch, want=5349895454720, > have=14275350892879035392 > Couldn't setup device tree > ERROR: unable to open /dev/sde1 > # > > What could be the next steps? > > > Thanks a lot for your patience and help! > > Chris >
Attachment:
signature.asc
Description: OpenPGP digital signature
