Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I apologize in advance for my bad english. I was trying to dual boot Windows 7 and Kubuntu 11.10, and i get this error 'Executing 'grub-install /dev/sda5' failed. This is a fatal error.'. every time when i try install GRUB on boot partition.Tried this on my desktop and laptop and always get this error. Hope anyone can help.Thanks!

share|improve this question
    
It might be this bug bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/976027 –  Enkouyami Jun 5 '12 at 17:03
add comment

3 Answers

Grub is installed on the hard drive, not on the partition. I'm assuming you want to create a seperate partition to mount on /boot, but grub-install should be used on a drive (/dev/sda in this particular case), not on a partition.

As long as you set everything right (mountpoints, that is), grub-install will automatically detect your settings and adjust itself accordingly.

share|improve this answer
add comment

ok do this: with a live cd

   sudo fdisk -l

to know where is installed you linux

   sudo mount /dev/sdaX/ mnt

X is where your kubuntu is installed

then

   sudo grub-install --root-directory=/mnt/ /dev/sda

then reboot normally and then

do this

   sudo update-grub
share|improve this answer
    
Thanks for your reply! I didnt aks this question well, this error happens during Kubuntu 11.10 install on a free space. –  djuro Nov 5 '11 at 12:05
add comment

Here is how it worked for me:

Choose Try Ubuntu without installation

The system boots up with desktop on which there is Install Ubuntu copy the command of this icon (right click - properties - command)

Now open a terminal and do

sudo bash

run the copied command from here (I think the command was as below)

ubiquity %k ubuntu-desktop

And success.

I was installing 11.10 x64 on my desktop considering dual-boot where Windows XP x64 is already installed. I had kept provision of a boot partition in advance. The installation order does not matter.

/sda1 /boot 260M (primary)

/sda2 win-xp     (primary)
..
(2 more logical partitions)
..
/sda7 /    10g
/sda8 swap

While I was trying to install Ubuntu, I was getting fatal error while installing grub on /dev/sda1. I tried on /dev/sda without success.

Then I employed to run the installation from root shell. It worked.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.