I had lost my boot partition. This happened quite frequently. I used to boot for recovery and rewrite the existing partioning. Last time I missed the correct option and installed LVM by mistake. Is it possible to get the previous partioning table back?
You just need to change the partition type with
To begin modifying the partition table. (Replace the below block device if applicable.)
Then, set the type for the applicable partition number. (Probably #1.)
If the file system hasn't been clobbered every thing should be intact. Otherwise, you may need to restore the contents of the partition from backup.
Also, count me in for explanation on why this was a problem in the first place.