I once did something similar while installing gentoo. cfdisk orders partitions by their physical on drive layout rather than by their id, so when I did the install I misread and ended up with a 30GB swap partition and a 1GB /home. After using it as swap during the build process, there wasn't much hope for recovery. Never do an install not having slept in more than a day.