My attempt to upgrade to 12.04 failed, so I burnt a 12.04 CD, and asked to do a full install, getting rid of all previous OS (I had Windows as well as 11.10). All seemed well until the very end when it said it had failed to install GRUB. I tried selecting different partitions to try in, with the same result. I can proceed without installing GRUB, but then it tells me I have to manually install the boot loader. A long Google session has failed to come up with any instructions to do this that I can understand. Help.
Asked
Active
Viewed 2.8e+01k times
12
-
2If the answer below works for you, great! If not, it would help to have more info about what your system looks like. Please consider using the Boot-Repair tool to collect & post this info. I tried to outline how to do that here – irrational John Apr 28 '12 at 00:13
-
2Possible duplicate of How can I repair grub? (How to get Ubuntu back after installing Windows?) – Elder Geek Feb 11 '16 at 17:29
1 Answers
15
Here's what I'd do:
Boot the machine using a Live CD.
Open a terminal.
Find out the name of the internal disk by using fdisk to look up the device's size.
For example:sudo fdisk -l
Install GRUB boot loader onto the proper disk (the example below assumes it is
/dev/sda
):sudo grub-install --recheck --no-floppy --root-directory=/ /dev/sda