I had Ubuntu and Win 7 on different partitions. And then i formatted partition which containing Win 7 and reinstall Win 7. And then dual boot screen disappeared. I'm following tohuwawohu's answer.
My HDD partition is sda5 which Ubuntu installed.
Now i'm trying to boot my computer, after BIOS loading , i'm getting GRUB command prompt screen (screenshot) directly.
TO solve it, i'm following this steps .
REsult is like this :
I assume those steps relate to
grub
, notgrub2
. Withgrub2
, the file structure has changed, so there are no morestage
file in thegrub
directory. In this thread, under #13, you will find a description how to restore grub2 from a LiveCD. EDIT2: It has the following steps (credits drs305):Boot the Ubuntu Live CD (Try without installing).
From the Desktop, open a terminal - Applications, Accessories, Terminal.
Determine your normal system partition -
sudo fdisk -l
(That is a lowercase L).If you aren't sure, run
df -Th
. Look for the correct disk size and ext3 or ext4 format.Mount your normal system partition:
nautilus /mnt
" to inspect the partition. If it is the correct partition, you should see the normal Ubuntu folders such as /bin, /boot, /etc, /home, etcsudo mount /dev/sda1 /mnt
Only if you have a separate boot partition:
with sdXY being your /boot partition designation.
Reinstall GRUB 2:
Do NOT include the partition number.
Example:
Unmount the partition *:
Reboot.
After reboot: Update the grub menu using
sudo update-grub
Here's another description. Good luck!
EDIT1: Some more information is also available in the Ubuntu Wiki on
grub2
.I had a similar error , how I fixed it was like this: I used Boot repair, a tool to fix grub
Boot into the LiveCD and use the following commands
and launch Boot repair, choosing the right options from the GUI
check the below link
RecoveringUbuntuAfterInstallingWindows