Hello. I did a bit of an oopsie while moving/resizing partitions.
I currently only have a single HDD in my System which has partitions for
system, home and mass storage. During the installation of a second OS
(Manjoro) I aborted the installer while it was resizing the mass storage
partition after it showed now progress for hours. Now I can't mount it
anymore.
----------------------------------------------------------------------------------------------------------------------
$ mount /dev/sda2
mount: /mnt/a498076c-d538-41d1-8519-68c9acca0c3f: wrong fs type, bad
option, bad superblock on /dev/sda2, missing codepage or helper program,
or other error.
----------------------------------------------------------------------------------------------------------------------
The check and restore commands all exit after reporting false checksums
and a bad block for each super.
The output of btrfs rescue chunk-recover -v /dev/sda2 shows this: (last
few lines)
----------------------------------------------------------------------------------------------------------------------
Chunk: start = 977134419968, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 980364034048
Block Group: start = 977134419968, len = 1073741824, flag = 1
Device extent list:
[ 0]Device extent: devid = 1, start = 980364034048, len =
1073741824, chunk offset = 977134419968
Unrecoverable Chunks:
Chunk: start = 978208161792, len = 1073741824, type = 1, num_stripes = 1
Stripes list:
[ 0] Stripe: devid = 1, offset = 981437775872
No block group.
No device extent.
Total Chunks: 915
Recoverable: 914
Unrecoverable: 1
Orphan Block Groups:
Orphan Device Extents:
checksum verify failed on 477044244480 found E1255A0B wanted 1DA1E71B
checksum verify failed on 477044244480 found E1255A0B wanted 1DA1E71B
checksum verify failed on 477044244480 found 839751B1 wanted FFFFC17D
checksum verify failed on 477044244480 found 839751B1 wanted FFFFC17D
bad tree block 477044244480, bytenr mismatch, want=477044244480,
have=9079178223823991933
open with broken chunk error
Chunk tree recovery failed
----------------------------------------------------------------------------------------------------------------------
I have no backup of this partition as it's all data I that's stil
somwhere else (local code repos, Steam libary, ripped CDs, etc.), but it
would safe me a good chunk (pun not intended) of time if I could recover
at least some of it.
Genaral info as asked for in the wiki:
----------------------------------------------------------------------------------------------------------------------
output of dmesg | grep BTRFS:
----------------------------------------------------------------------------------------------------------------------
[ 4453.292256] BTRFS info (device sda2): disk space caching is enabled
[ 4453.292259] BTRFS info (device sda2): has skinny extents
[ 4453.383280] BTRFS error (device sda2): bad tree block start, want
477061251072 have 276290951248713
[ 4453.393647] BTRFS error (device sda2): bad tree block start, want
477061251072 have 18374762347131585792
[ 4453.393665] BTRFS error (device sda2): failed to verify dev extents
against chunks: -5
[ 4453.436276] BTRFS error (device sda2): open_ctree failed
[ 4457.570646] BTRFS info (device sda2): disk space caching is enabled
[ 4457.570648] BTRFS info (device sda2): has skinny extents
[ 4457.574983] BTRFS error (device sda2): bad tree block start, want
477061251072 have 276290951248713
[ 4457.575099] BTRFS error (device sda2): bad tree block start, want
477061251072 have 18374762347131585792
[ 4457.575106] BTRFS error (device sda2): failed to verify dev extents
against chunks: -5
[ 4457.608350] BTRFS error (device sda2): open_ctree failed
----------------------------------------------------------------------------------------------------------------------
output of uname -a:
----------------------------------------------------------------------------------------------------------------------
Linux florian-AX370M-DS3H 5.0.0-15-generic #16-Ubuntu SMP Mon May 6
17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
----------------------------------------------------------------------------------------------------------------------
output of btrfs --version:
----------------------------------------------------------------------------------------------------------------------
btrfs-progs v4.20.2
----------------------------------------------------------------------------------------------------------------------