From: Sean Bartell <wingedtachikoma@gmail.com>
To: Alli Quaknaa <alquaknaa@gmail.com>
Cc: Wengang Wang <wen.gang.wang@oracle.com>, linux-btrfs@vger.kernel.org
Subject: Re: Restoring BTRFS partition
Date: Tue, 20 Apr 2010 16:30:17 -0400 [thread overview]
Message-ID: <20100420203017.GA4532@lelouch.nomadic.ncsu.edu> (raw)
In-Reply-To: <r2o8c113a261004201113gf771574eu35db1b0d916cdfd8@mail.gmail.com>
On Tue, Apr 20, 2010 at 06:13:41PM +0000, Alli Quaknaa wrote:
> So here are first ~12M of the partition. There was some junk preceding
> what is in the file, but it mostly looked like my swap or something
> (cached css, javascript and webpages I've recently visited - though I
> hope the beginning of the partition isn't somewhere else. Hopefuly you
> would be able to tell from the dump).
>
> http://pub.yweb.cz/sda7_head.dump
The superblock in that file (starting at byte 0x10) is actually a mirror
of the real superblock. Aside from the real superblock at 0x10000,
Btrfs stores mirror copies of the superblock at 0x4000000 (64 MiB),
0x4000000000 (256 GiB), and 0x4000000000000 (1 PiB). Each superblock has
a field that indicates where it is; when you made your image, you put
the mirror superblock where the real superblock was supposed to be, and
btrfs refused to mount it because that field was wrong.
The real start of the btrfs partition is 0x4000000 bytes (64 MiB) before
the place you found that mirror superblock; the real superblock should
be 0x3ff0000 bytes before the mirror. Even if the real superblock is
corrupt, if the mirror is at 0x4000000, where it's supposed to be, you
should be able to get btrfs to mount it (though I think you might need a
mount option or a patch).
next prev parent reply other threads:[~2010-04-20 20:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 14:56 Restoring BTRFS partition Alli Quaknaa
2010-04-20 15:55 ` Wengang Wang
2010-04-20 16:50 ` Sean Bartell
2010-04-20 17:14 ` Alli Quaknaa
2010-04-20 18:13 ` Alli Quaknaa
2010-04-20 20:30 ` Sean Bartell [this message]
2010-04-20 22:25 ` Alli Quaknaa
2010-04-21 0:32 ` Sean Bartell
2010-04-21 7:45 ` Alli Quaknaa
2010-04-21 2:49 ` Wengang Wang
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=20100420203017.GA4532@lelouch.nomadic.ncsu.edu \
--to=wingedtachikoma@gmail.com \
--cc=alquaknaa@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wen.gang.wang@oracle.com \
/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).