You are not logged in.

#1 2014-10-26 06:37:38

isntall
Member
Registered: 2014-10-25
Posts: 2

Umountable BTFS IMG file

I have a borked btrfs volume as an IMG, from dd.
I'm pretty sure that it was the 3.17.1 and read-only snapshots.
there are no backups of this (was using snapper though i didn't export them).

Is there hope for recovery?

Various combinations of btrfs restore, rescue, and check have yielded nothing useful. I've been using the 3.17 btrfs-progs.

Before i head to the IRC #btrfs room, I'd like to know what would be useful in troubleshooting this

Last edited by isntall (2014-10-26 06:38:42)

Offline

#2 2014-10-26 06:40:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Umountable BTFS IMG file

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-10-26 06:56:29

isntall
Member
Registered: 2014-10-25
Posts: 2

Re: Umountable BTFS IMG file

Some output

[root@lep 20141023]# ./btrfs-progs/btrfs restore /dev/loop0 /mnt/b2/restore
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Could not open root, trying backup super
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Could not open root, trying backup super
No valid Btrfs found on /dev/loop0
Could not open root, trying backup super
[root@lep 20141023]# ./btrfs-progs/btrfs check /dev/loop0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system
# dmesg | tail
[63444.617311] BTRFS: failed to read tree root on loop0
[63444.617340] BTRFS: bad tree block start 0 1163613192192
[63444.617348] BTRFS: failed to read tree root on loop0
[63444.847079] parent transid verify failed on 1163608866816 wanted 176180 found 176182
[63444.847088] BTRFS: failed to read tree root on loop0
[63444.847875] BTRFS: bad tree block start 0 1163608342528
[63444.847895] BTRFS: failed to read tree root on loop0
[63444.851304] BTRFS: bad tree block start 0 1163606458368
[63444.851341] BTRFS: failed to read tree root on loop0
[63444.919323] BTRFS: open_ctree failed
[root@lep 20141023]# ./btrfs-progs/btrfs check /dev/loop0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system
[root@lep 20141023]# ./btrfs-progs/btrfs check --repair /dev/loop0
enabling repair mode
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
Check tree block failed, want=1163613192192, have=0
read block failed check_tree_block
Couldn't read tree root
Couldn't open file system

As stated before I'm using the btrfs-progs 2.17

Offline

Board footer

Powered by FluxBB