I see two posibilities, use dd to clone a complete RP sd card (not only the partitions) and then you can use dd to restore the partitions from the images files. This is easy but takes longer. Or you can do the math for the formatting params based on sector- or blocksize on the old sd card. Use fdisk to see the partition layout. and use a guide like this: http://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html