linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Clements <Paul.Clements@SteelEye.com>
To: linux-raid@vger.kernel.org
Subject: Re: Zero Superblock... any ways to recover?
Date: Mon, 01 Mar 2004 14:31:07 -0500	[thread overview]
Message-ID: <40438F7B.2CAE0B21@SteelEye.com> (raw)
In-Reply-To: 20040301181240.GC4340@percy.comedia.it

Luca Berra wrote:
> 
> On Mon, Mar 01, 2004 at 03:23:43PM +0100, Timo.Bolse@SerNet.DE wrote:

> >pentium-test:/proc/ide # mdadm -E /dev/hdc
> >mdadm: No super block found on /dev/hdc (Expected magic a92b4efc, got 00000000)
> >
> >There must be a way to find the superblock on the new device... is there anyone
> >who has a solution for this problem?
> >
> >I thougt about searching for a92b4efc on the device...

If you know how the array was configured, you could just re-create it,
which will create a new superblock in the correct location. But if you
aren't sure, and you want to search for the superblock, you can do:

dd if=/dev/hdc bs=512 | od -A d -h | grep "4efc a92b"

That will give you the offset of the superblock.


> if you know the size of the old device you can find it starting at
> (sector aligned) DEVICE_SIZE - 64k

Actually, the superblock is going to be at:

sb_offset = size - (size % 64k) - 64k

So the superblock is actually somewhere between 64k and 128k from the
end of the (old) device.

--
Paul

      reply	other threads:[~2004-03-01 19:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 14:23 Zero Superblock... any ways to recover? Timo.Bolse
2004-03-01 18:12 ` Luca Berra
2004-03-01 19:31   ` Paul Clements [this message]

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=40438F7B.2CAE0B21@SteelEye.com \
    --to=paul.clements@steeleye.com \
    --cc=linux-raid@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).