can I reconstruct partitions according to raid information.
My hard drive got some bad sectors several days ago and my partition table was lost in the meantime. But I got some information from Linux RAID log.
I wonder whether I can reconstruct the partition table from it.
Here are some details of my system.
Two harddrives are Samsung SP1404N.
hda is the first drive and the hdc is the second drive
Soft raid level 0:
md0 : hda2 + hdc1
md1 : hda3 + hdc2
Partition table:
hdc: LOST
start end blocks ID System
hdc1: 1 83 Linux
hdc2: 3649 83 Linux
hdc3: 3650 19457 126977760 f W95 Ext'd
hda:
Disk /dev/hda: 160.0 GB 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units: cylinders of 16065 * 512 = 8225380 bytes
start end blocks Id System
hda1: 1 9 72261 83 Linux
hda2: 10 1833 14651280 fd raid auto
hda3: 1834 3657 144651280 fd raid auto
hda4: 3658 19457 126913500 f W95 Ext'd
......
some RAID log:
raid0: looking at hdc2
raid0: comparing hdc2(14651136) with hdc2(14651136)
raid0: END
raid0: ==> UNIQUE
raid0: 1 zones
raid0: looking at hda3
raid0: comparing hda3(14651136) with hdc2(14651136)
raid0: EQUAL
raid0: Final 1 zones
raid0: md_size is 29302272 blocks
raid0: conf->hashing_spacing is 29302272 blocks
raid0: looking at hdc1
raid0: comparing hdc1(14659072) with hdc1(14659072)
raid0: END
raid0: ==> UNIQUE
raid0: 1 zones
raid0: looking at hda2
raid0: comparing hda2(14651136) with hdc1(14659072)
raid0: NOT EQUAL
raid0: comparing hda2(14651136) with hda2(14651136)
raid0: END
raid0: ==> UNIQUE
raid0: 2 zones
raid0: Final 2 zones
raid0: chekingg hda2 .... nope.
raid0: checking hdc1 ... contained as device 0 (14659072) is smallest!
raid0: current zone offset: 14659072
raid0: md_size is 29310208 blocks
raid0: conf->hashing_spacing is 29302272 blocks.
Last edited by FinalFantasy; 07-04-2005 at 10:41 PM.
|