Fix grub2 after installing ubuntu 12.04
Solution 1
Boot your system into a live CD. Mount your system into the live CD:
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Log into the mounted system:
sudo chroot /mnt
Install grub:
grub-install --boot-directory=/boot/ --recheck /dev/sda
Reboot your system.
Solution 2
You can type the command at grub rescue:
grub-install /dev/sda
Then quit the grub rescue mode and reboot the machine
Or :
You can install GRUB on your hard disk. You can do this by using bootable Ubuntu CD.
Boot to LiveCD
-
When you get Ubuntu Live Desktop. Open terminal ( What is a terminal and how do I open and use it? ) and type the following one line at a time:
sudo grub-install /dev/sda sudo update-grub quit
You are done now. Reboot the machine.
This will install grub on MBR of your hard disk with dual boot. Try the latest Ubuntu 12.04 LTS.
Related videos on Youtube
3cHeLoN
Updated on September 18, 2022Comments
-
3cHeLoN over 1 year
I've installed ubuntu 12.04, but after rebooting I get the message:
GRUB loading: Welcome to GRUB! error: file '/grub/i386-pc/normal.mod' not found Entering rescue mode... grub rescue>
I have the following partitons setup:
/dev/sda6: /boot ext2 /dev/sda9: / ext4 /dev/sda8: swap /dev/sda7: /home ext4
I guess that some of the prefixes for GRUB are wrong due to the /boot partition? Or there might be a problem with EFI? The hardware is a 1015bx asus netbook with c-60 amd fusion chipset. How can I fix this GRUB problem from the rescue prompt?
-
Admin over 11 yearsTo people considering closing this question: The OP has solved the problem and the OP's solution has been posted as an answer, so this question should not be closed as too localized.
-
Admin over 11 years@EliahKagan That answer has since been deleted. What do you suggest now?
-
Admin over 11 years@jokerdino There may have been some good reason for it to have been deleted. I've pinged the user in chat who posted and (I believe) subsequently deleted it. Maybe it was wrong and we don't know if/how the problem was solved (in which case this should be closed as too localized). We'll probably find out soon.
-
Admin over 11 yearsHi, I had posted a perfectly fine solution and somehow it got removed. I don't know the exact details anymore, but I think I used the program Boot-Repair from the live cd. This solution was given in the documentation: help.ubuntu.com/community/Grub2/Troubleshooting if you want I can re-answer my question...
-
Admin about 11 yearsI have the same problem, and none of these answers are correct. My /boot includes the directory /boot/grub/x86_64-efi/normal.mod, so there seems to be a package issue involved in some cases as well (v 12.10).
-
Admin about 11 years@user80039 your exact words were "I've followed the following article: Boot-Repair The problem has been solved, although booting seems slower than usual, it takes a long time before the splash screen is shown. The problem was, I think, due to ubuntu installing the efi version of GRUB2, while my laptop only supports regular grub-bios." with a link to help.ubuntu.com/community/Boot-Repair, you never added as an answer, only in comments.
-
-
Anwar over 11 yearsNo, you can't do
grub-install
command ingrub-rescue
prompt. It is totally Wrong. I suggest you to remove the first part. And yes, the second part is better, but again you can't runsudo update-grub
from Live CD as far as I know