I had Windows 7 dual booted with Ubuntu 14.04. Yesterday I ran
sudo apt-get upgrade
and after installing everything and restarting, I only got Ubuntu's option in my Grub.
Checking in grub-customizer, I saw that Windows boot loader had been erased and as such decided to restore it using boot-repair via live USB.
Now the problem is using boot-repair in recommended settings gave the following error
grub-pc purge cancelled. Send this to mail...
I also tried accessing the drive via live USB, mounting and installing grub using the link
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB.
This method was not allowing me to run boot-repair or grub-customizer in the mounted drive. It kept giving the error which was something like
couldn't identify the host
That only gave me a single "System Setup" option in Grub.
Right now, I have used the "Restore MBR" option of the boot-repair to restore Windows boot loader and I am directly booting into Windows now. I am not greeted with the GRUB prompt on booting.
I have spent my whole day in figuring out a solution but to no avail. Do I have no option other than to reinstall Ubuntu? Please help.
EDIT-1: Added Boot-Info
EDIT-2: Added GParted's result
Here /dev/sda1 is Windows primary partition (C)
/dev/sda2 is secondary (D)
/dev/sda3 is dedicated to Ubuntu