All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Nicco <maxime.nicco@free.fr>
To: linux-btrfs@vger.kernel.org
Subject: Bad tree block, on root filesystem after reset
Date: Tue, 09 Apr 2013 19:18:57 +0200	[thread overview]
Message-ID: <51644D81.4090400@free.fr> (raw)

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

             reply	other threads:[~2013-04-09 17:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 17:18 Maxime Nicco [this message]
     [not found] ` <CAE5mzviyg7pSw0a6GhctBC4sCEFbLSfRqAtC6Qc10t_qi8Je0Q@mail.gmail.com>
2013-04-09 17:52   ` Bad tree block, on root filesystem after reset Maxime Nicco

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=51644D81.4090400@free.fr \
    --to=maxime.nicco@free.fr \
    --cc=linux-btrfs@vger.kernel.org \
    /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 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.