I had a Ubuntu partition and windows 7 partition after installing windows 10 I accidentally deleted my Ubuntu partition, now I'm stuck at grub rescue. I saw a YouTube tutorial and did the steps like set boot, set prefix etc. I tried em all hd0 and msdos0 to 9. No luck... Any help? Pretty please...
-
This is a duplicate of at least three answered questions on Ask Ubuntu. Did you search before you asked? – TheWanderer Aug 24 '15 at 14:43
-
4If partition is missing and was logical inside the extended this see this thread: http://askubuntu.com/questions/654386/windows-10-upgrade-lead-into-grub-rescue – oldfred Aug 24 '15 at 15:35
-
What's your question? – David Foerster Apr 12 '17 at 15:12
-
VTC as dup to get this 2 y/o abandoned question off the radar permanently. – WinEunuuchs2Unix Feb 28 '18 at 23:48
3 Answers
Use a Windows 7 disc (or later).
Boot from the disc.
Choose to repair the Operating system.
Use Command Prompt and use bootrec /fixmbr
command.
This will remove grub and let you access windows only.
Use a Linux live cd if you wish to restore grub

- 84
- 9

- 462
Another thing you could do (this worked for me) is take out your hard drives and then turn the PC/Laptop on, you should then try make your way into the Bios and stick windows on top of the boot order and Linux at the bottom, then save and exit.
Then turn off the PC/Laptop and stick the hard drives back in.

- 55,668
- 25
- 164
- 183
Others (including me) had this problem before. Visit GRUB rescue problem after deleting Ubuntu partition!
what worked for me was the answer from rumman0786:
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
This happend because you lost your ubuntu partition but still have the grub. In case you later want to remove a linux partition, remove the grub first and then the partition (plenty of info on askubuntu and youtube about that)
-
Welcome to Ask Ubuntu. Please note that in order to minimize clutter, when you come across a question that has already been asked here, it is good practice to flag it as a duplicate. – hmayag Aug 24 '15 at 20:36