I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.
The boot-repair url I received was http://paste.ubuntu.com/12189762/.
Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:
sudo parted /dev/sda unit s print //this printed the current partition table sudo parted unit s rescue Start? //Here I entered in 1 sector after the extended partition End? //Here I entered in 1 sector before the swap parition
After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!