Note: The original version of this file is at http://codeine.rocks.net.nz/raidrecover.html.
fdisk /dev/sda p (prints the partition table) q (quits)
/sbin/raidhotadd /dev/mdX /dev/sdxN
(Where X is the raid device number, x is the device and N the partition)
cat /proc/mdstat
Note: The regeneration is sequential for each mdX device...