Question: When I reinstall Windows XP by mistake I deleted all five partitions. I did not format them yet though.

How can I recover the partitions? When I attach the hard disk to another PC it just says that the partition is unformated and asks “Would you like to format it?”.

Answer: Use ralford’s suggestion together with TestDisk :

?

TestDisk is a powerful free data ?recovery software! It was primarily ?designed to help recover lost ?partitions and/or make non-booting ?disks bootable again when these ?symptoms are caused by faulty ?software, certain types of viruses or ?human error (such as accidentally ?deleting a Partition Table). Partition ?table recovery using TestDisk is ?really easy.