* Zero Superblock... any ways to recover?
@ 2004-03-01 14:23 Timo.Bolse
2004-03-01 18:12 ` Luca Berra
0 siblings, 1 reply; 3+ messages in thread
From: Timo.Bolse @ 2004-03-01 14:23 UTC (permalink / raw)
To: linux-raid
Hi List,
The following Problem:
I dd'ed a whole harddisk with the RAID Partitions to another harddisk. The new
harddisk was a little bit bigger than the original one. Now if i'am doing an
mdadm -E /dev/hdc on the new harddisk i get this:
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...
Regards,
Timo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero Superblock... any ways to recover?
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
0 siblings, 1 reply; 3+ messages in thread
From: Luca Berra @ 2004-03-01 18:12 UTC (permalink / raw)
To: linux-raid
On Mon, Mar 01, 2004 at 03:23:43PM +0100, Timo.Bolse@SerNet.DE wrote:
>Hi List,
>
>The following Problem:
>
>I dd'ed a whole harddisk with the RAID Partitions to another harddisk. The new
>harddisk was a little bit bigger than the original one. Now if i'am doing an
>mdadm -E /dev/hdc on the new harddisk i get this:
>
>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 the size of the old device you can find it starting at
(sector aligned) DEVICE_SIZE - 64k
since you do not give more information on how your raid was set-up prior
to this activity it is difficult to give firther help
Regards,
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zero Superblock... any ways to recover?
2004-03-01 18:12 ` Luca Berra
@ 2004-03-01 19:31 ` Paul Clements
0 siblings, 0 replies; 3+ messages in thread
From: Paul Clements @ 2004-03-01 19:31 UTC (permalink / raw)
To: linux-raid
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-01 19:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).