# Unable to use super grub disk [duplicate]

I have a lenovo z500 with dual boot Windows 8 and Ubuntu 13.04.
Recently I deleted the Linux partition (from windows disk manager) but did not remove the boot loader.Now the next time I booted it gave the following error.

No such partition found
Grub rescue


I tried to make a super grub disk but when I insert it in the machine nothing happened it still gave the same response.

-

## marked as duplicate by Jorge Castro, Kevin Bowen, guntbert, Radu Rădeanu, Warren HillSep 10 '13 at 9:59

Do you want the windows bootloader back or do you want the grub back? –  Stormvirux Sep 9 '13 at 5:16
Of course it will give you the same response. It relies on grub.cfg which you deleted. Now you have to run Windows Setup disk or Boot-Repair disk. –  Danatela Sep 9 '13 at 6:23
The answers to the question to which Danatela refers are all inapplicable in this case. Most of the answers there assume a BIOS-mode installation, but the Lenovo Z500 ships with Windows 8, and is therefore an EFI-enabled computer. Methods of restoring a BIOS-mode Windows to bootability won't work on EFI-based computers. The EFI-mode solution is actually likely to be quite simple if Boot Repair hasn't messed things up. –  Rod Smith Sep 9 '13 at 14:33
None of the answers to the question that's marked as a duplicate address the current question; those answers all assume a BIOS-based installation, whereas Namit Juneja almost certainly has an EFI-based installation. See my answer here for a correct answer. –  Rod Smith Sep 10 '13 at 17:28
A question that's closer to being a duplicate of this one is askubuntu.com/questions/304558/…. –  Rod Smith Sep 10 '13 at 17:34

• In Linux, the ESP is identified as having its "boot flag" set in parted or GParted. Find the ESP and mount it somewhere (/boot/efi is traditional, but a live CD is unlikely to have that mount point, so you can use somewhere else).
• In Windows, open an Administrator Command Prompt window and type mountvol S: /S. You can use a mount point other than S:, if you like.
2. Delete the EFI/ubuntu directory, and the files it contains, from the ESP.
A couple of alternatives to this procedure are to install rEFInd to your hard disk (which might be desirable if you want to dual-boot with another OS) or to use efibootmgr in Linux to re-order the firmware's boot options. (EFI version 2 shells and some firmware user interfaces provide equivalent functionality to efibootmgr, too.)