All of lore.kernel.org
 help / color / mirror / Atom feed
* Bad tree block, on root filesystem after reset
@ 2013-04-09 17:18 Maxime Nicco
       [not found] ` <CAE5mzviyg7pSw0a6GhctBC4sCEFbLSfRqAtC6Qc10t_qi8Je0Q@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Maxime Nicco @ 2013-04-09 17:18 UTC (permalink / raw)
  To: linux-btrfs

Hi,

Today my laptop messed-up my display configuration between 2 screens. I 
had to reset it, but my btrfs root partition is no longer mountable.
I have the following output in dmesg :

device fsid f9264db3-f277-47b6-bd8f-57d0a67c93a7 devid 1 transid 78577 
/dev/sda2
btrfs: force clearing of disk cache
btrfs bad tree block start 0 18565984256
btrfs bad tree block start 0 18565984256
trfs: failed to read tree root on sda2
btrfs: open_ctree failed

I downloaded the latest btrfs-progs, but getting strange output from 
several of the programs:

# ./btrfs-debug-tree /dev/sda2
btrfs-debug-tree: root-tree.c:46: btrfs_find_last_root: Assertion 
`!(path->slots[0] == 0)' failed.

But find-root program found things

# ./btrfs-find-root /dev/sda2
Super think's the tree root is at 18564399104, chunk root 20971520
Well block 13139611648 seems great, but generation doesn't match, 
have=78267, want=78578
Well block 13154590720 seems great, but generation doesn't match, 
have=78266, want=78578
Well block 13160091648 seems great, but generation doesn't match, 
have=78265, want=78578
Well block 23123091456 seems great, but generation doesn't match, 
have=78456, want=78578
Well block 23598575616 seems great, but generation doesn't match, 
have=78506, want=78578
Well block 23600107520 seems great, but generation doesn't match, 
have=78507, want=78578
Well block 23601156096 seems great, but generation doesn't match, 
have=78508, want=78578
Well block 23601225728 seems great, but generation doesn't match, 
have=78509, want=78578
No more metdata to scan, exiting

I tried restoring my data with

# btrfs-restore -v -t 13154590720 /dev/sda2 /mnt/sda2/@home/recovery/
parent transid verify failed on 13154590720 wanted 78578 found 78266
parent transid verify failed on 13154590720 wanted 78578 found 78266
parent transid verify failed on 13154590720 wanted 78578 found 78266
parent transid verify failed on 13154590720 wanted 78578 found 78266
Ignoring transid failure
Check tree block failed, want=29360128, have=0
Check tree block failed, want=29360128, have=0
Check tree block failed, want=29360128, have=0
Check tree block failed, want=29360128, have=0
Check tree block failed, want=29360128, have=0
read block failed check_tree_block
Couldn't setup device tree
btrfs-restore: extent_io.c:602: free_extent_buffer: Assertion 
`!(eb->refs < 0)' failed.


Is there anything I can do to debug or grab a few bits before reformatting?

Thanks,

Maxime

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-09 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 17:18 Bad tree block, on root filesystem after reset Maxime Nicco
     [not found] ` <CAE5mzviyg7pSw0a6GhctBC4sCEFbLSfRqAtC6Qc10t_qi8Je0Q@mail.gmail.com>
2013-04-09 17:52   ` Maxime Nicco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.