With the linux command sfdisk you can dump your partitions in sfdisk readable format:
(I copy this output from a debian installation)
> sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 1, size= 4209029, Id=fd
/dev/sda2 : start= 4209030, size=972559035, Id=fd
/dev/sda3 : start= 0, size= 0, Id= 0
/dev/sda4 : start= 0, size= 0, Id= 0
Well, you don't need to understand if your partitions are primary or extended. You can directly copy partitions from healthy hard drive to the new one.
This code copies the partitions from harddrive A to harddrive B:
sfdisk -d /dev/sda | sfdisk /dev/sdb
Then you can start your recovery with the command ( of course you need to pass correct md0 or md1 corresponding to your partitions):
mdadm /dev/md0 -a /dev/sdb1
mdadm /dev/md1 -a /dev/sdb2