This question already has an answer here:
After I deleted my Ubuntu partition, I rebooted my computer and I only get a prompt:
grub rescue >
The command ls lists
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
I check them one by one:
ls (hd0,msdos5)/
ls (hd0,msdos1)/
But I cannot find the right partition.
sudo apt-get install syslinuxENTER and thensudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda. To create a bootable USB : ubuntu.com/download/desktop/create-a-usb-stick-on-windows, to launch ubuntu from the usb, press F11 or F12 when your computer boot (before windows start). To launch ubuntu terminal Ctrl - Alt + T – Enora Nov 17 '15 at 13:34