Why 12.04 Fails to install grub-efi to /target/?
I have a Lenovo u410 ultrabook. It's sata scheme consists of a 30gb SSD and a 1tb hdd in a raid0 with intel rapid start technology. I removed IRST and disabled the raid0. I want to install ubuntu on the ssd and /home/
on the 1gb hdd. I foolishly erased the efi partition on the 1tb and attempted to recreate it by formatting the ssd and creating a new GPT partition table. I made a 250mb fat32 partition (/dev/sda1
) and filled the rest ~24gb with an ext4 partition (/dev/sda2
)
I made a live USB using a 12.04.2 iso and universal usb installer. The installation completes fine however at the end I get the error "Failed to install grub-efi to /target/ the system will not boot". I tried to open terminal and update grub however it's not there and when trying to install grub-efi from the repo I get flagged for missing a lot of dependencies. Ubiquity crashes after the error message.
I had success a few months ago installed 12.10 using my friends usb cd drive however I broke the system and cant be down until I next see him. Is there a huge difference in 12.10 and LTS that would stop this install from working smoothly?
My net goal is to have Ubuntu running on the machine with steam (tf2 and bastion) and eclipse IDE. If 12.10 is better suited, and can solve this efi issue then I'll gladly install that however from my understanding LTS would be more stable and still run the modern updates of Quantal.
Will 12.10 install grub-efi
flawlessly? and if not how can I install grub-efi from the live usb onto a solid state drive /dev/sda
with efi boot on /dev/sda1
, ext4
mounted as root on /dev/sda2
, and /home/
on the hard disk /dev/sdb2
?
Conclusion: LTS wasn't capable of handling the uefi environment. Downloading and installing 12.10 worked flawlessly. Raring worked fine too, however it was unstable with the drivers necessary for steam.
Hardware: Lenovo U410 ultrabook
HDs: 30 GB SSD, 1 T HDD with raid0
Ubuntu: 12.04
Solution 1:
This error was solved for me by making sure there was an internet connection available to the installer.
When I chose not to connect I got this error.
Solution 2:
In my case, I skip install grub by running ubiquity from terminal using the following command:
ubiquity -b
It also means that you have to install grub by your bare hand.
After ubuntu has been installed. DON'T restart because you haven't had bootloader yet. You have to install grub on your pc.
sudo mount /dev/sdXY /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
sudo chroot /mnt
grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub
This link will help you: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
Update: Thanks for Mikko Östlund's comment.
In case you separate your EFI system partition and Ubuntu partition, when running grub-install /dev/sdX
you may get error message cannot find EFI directory
. You have to do mount /dev/sdXY /boot/efi
. Then run the grub-install /dev/sdX
and the remaining commands with success. And reboot.
Solution 3:
Ubuntu's been making slow but steady improvements in its EFI support for the last several versions, so yes, there are differences between 12.04 and 12.10 that could be important. That said, the fact that you got a bunch of dependency errors when you tried to install grub-efi
suggests that a more fundamental problem might be the root cause -- perhaps there was a network problem that prevented a string of other packages from installing, for instance. If so, trying again at a later time might correct matters.
That said, on an EFI system, IMHO it's better to use 12.10 than 12.04. This is especially true if it's a recent computer that shipped with Windows 8, since such computers also invariably use Secure Boot, which Ubuntu 12.10 supports but Ubuntu 12.04 doesn't. This isn't the root cause of your problem, though, since 12.04's installation disc won't boot at all if Secure Boot is active; I mention it only for the benefit of others who might read this page.
Solution 4:
You should have
/boot/efi
and about 100MB ,then everything is ok...
mine is
sda1 /boot/efi 100MB
sda2 / 100G
sda3 /swap 16384MB
sdb1 /home 3TB