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 >
(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.