I am dual booting with win8 and deleted the partition from it. After restarting I get the grub rescue prompt I tried to run Ubuntu off of a flashdrive and supergrub2 but neither worked and it went right back to rescue grub
2 Answers
That once happened to me. You need to put Windows 8 installation disc in your computer and start it. Then you go to repair system and to more options and select command prompt. Then, type the following commands: bootrec /WriteMbr, bootrec /Fixboot, bootrec /Fixmbr.
It will probably say that it couldn't find any windows systems but that's normal - it will be fixed. THIS WILL DELETE GRUB AND INSTALL WINDOWS BOOTLOADER!

- 103
-
-
Use this to put one on a usb http://windows.microsoft.com/en-us/windows-8/create-reset-refresh-media – Kecoey Mar 26 '15 at 12:31
Boot into win8 installation and you will find a repair option at lower left side of installation screen. Follow the ongoing instructions.

- 36
-
-
well, there are other options. You can give it a try. use a running windows 8 PC to create a Repair Disc. Boot with it and rebuild the MBR
Or, download Partition Wizard Bootable CD, it allows user to boot computer directly to manage partition. If it detects the windows partition then click 'Rebuild MBR' and click apply at the bottom left.
– baundule Mar 24 '13 at 05:14
sudo apt-get install syslinux
ENTER and thensudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
. To create a bootable USB : http://www.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 – MagTun Nov 17 '15 at 13:35