Ubuntu: GRUB rescue problem after deleting Ubuntu partition! [duplicate]



Question:

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.


Solution:1

Try the following ..

grub rescue > ls  (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)  grub rescue > ls (hd0,msdos1) # try to recognize which partition is this  grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition  grub rescue > set root=(hd0,msdos2)  grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed  grub rescue > insmod normal # if this produced an error, reset root and prefix to something else ..  grub rescue > normal  

For a permanent fix run the following after you successfully boot:

sudo update-grub  sudo grub-install /dev/sdX  

where /dev/sdX is your boot drive.


Solution:2

I had the same problem. I removed GRUB. Just download Windows 8 or 10 from another PC. Burn the iso into the USB with Rufus. Boot from USB, click Troubleshooting, then Command Prompt, and type:

Bootrec /fixmbr    

Windows will start normally without Ubuntu's GRUB. You can reinstall Ubuntu again.


Solution:3

Boot your computer on a Ubuntu live-CD or live-USB

then follow the section 2nd option : install Boot-Repair in Ubuntu from this link:

https://help.ubuntu.com/community/Boot-Repair


Solution:4

I did the same thing. Deleted Ubuntu partition. I am able to enter into BIOS.

If you have a bootable USB for Ubuntu, enter BIOS and choose the USB first in boot sequence. Restart. Then install Ubuntu again. And you can delete SAFELY this time.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »