linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: btrfs@nentwig.biz
Cc: linux-btrfs@vger.kernel.org
Subject: Re: can't read superblock (but could mount)
Date: Mon, 13 Feb 2012 08:09:43 -0500	[thread overview]
Message-ID: <20120213130943.GA1573@shiny> (raw)
In-Reply-To: <20120211072725.Horde.8iYhMlNNcXdPNgpNS2yG-PA@webmail.df.eu>

On Sat, Feb 11, 2012 at 07:27:25AM +0100, btrfs@nentwig.biz wrote:
> 
> Quoting Chris Mason <chris.mason@oracle.com>:
> 
> >On Fri, Feb 10, 2012 at 05:18:42PM -0500, Chris Mason wrote:
> >>Ok, step one:
> >>
> >>Pull down the dangerdonteveruse branch of btrfs-progs:
> >>
> >>git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
> >>dangerdonteveruse
> >>
> >>Run btrfs-debug-tree -r /dev/sda1 and send the output here please.
> >
> >Sorry, that's btrfs-debug-tree -R /dev/sda1
> 
> # ./btrfs-debug-tree -R /dev/sda1
> root tree: 10229936128 level 1
> chunk tree: 10364125184 level 1
> extent tree key (EXTENT_TREE ROOT_ITEM 0) 10229944320 level 3
> device tree key (DEV_TREE ROOT_ITEM 0) 10192654336 level 0
> fs tree key (FS_TREE ROOT_ITEM 0) 10103791616 level 3
> checksum tree key (CSUM_TREE ROOT_ITEM 0) 10103156736 level 2
> data reloc tree key (DATA_RELOC_TREE ROOT_ITEM 0) 10027970560 level 0

Ok, I'm surprised our bad block wasn't one of the roots, we're looking
for 9872289792.

Could you please do:

btrfs-debug-tree -b 9872289792 /dev/xxx

Then please run the new fsck (without any args) on the device and send
the output here.  Before we mount with -o recovery or try to repair
things, I just want to double check where this bad block lives.

> 
> But we it is that the bootloader apparently is able to load (at
> least) the kernel (and initrd) from the partition?

The btrfs-debug-tree command above should answer this, but I'd guess
that syslinux either isn't checking the parent trans id or it just
doesn't need to read this block to find the files.  That's a good sign
;)

-chris


  reply	other threads:[~2012-02-13 13:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-10 19:30 can't read superblock (but could mount) btrfs
2012-02-10 22:18 ` Chris Mason
2012-02-10 23:39   ` Chris Mason
2012-02-11  6:27     ` btrfs
2012-02-13 13:09       ` Chris Mason [this message]
2012-02-14 17:37         ` Timo Nentwig
2012-02-14 18:41           ` Chris Mason
2012-02-14 18:54             ` Timo Nentwig
2012-02-14 21:14               ` Chris Mason
2012-02-15  6:03                 ` Timo Nentwig
2012-02-15 13:23                   ` Chris Mason
2012-02-16 17:04                     ` Timo Nentwig
2012-02-16 18:14                       ` Chris Mason
2012-02-17  3:35           ` Timo Nentwig

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=20120213130943.GA1573@shiny \
    --to=chris.mason@oracle.com \
    --cc=btrfs@nentwig.biz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).