Skip to contentSkip to conversation

Zero Superblock... any ways to recover?

DISCUSSION [email protected] 3 participants 3 messages Mar 1, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · On Mon, Mar 01, 2004 at 03:23:43PM +0100, [email protected] 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:

Quoted 8 lines

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.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#2 lore raw
Quoted 10 lines · Luca Berra
Quoted 7 lines · On Mon, Mar 01, 2004 at 03:23:43PM +0100, [email protected] 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.

Quoted 2 lines

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