N
N
Nikolai Vasilchuk2012-09-30 06:22:47
linux
Nikolai Vasilchuk, 2012-09-30 06:22:47

How to setup grub-efi?

There is a laptop. Hard disk - GPT partition table and pre-installed Windows 7 x64, EFI bootloader.
Installed Ubuntu 12.04.1 desktop x64 alongside Windows.
The problem is that the boot goes straight to Windows, GRUB doesn't boot.
Removed grub-pc, installed grub-efi and efilinux, did grub-install and update-grub on the bootloader's EFI partition - didn't help.
I tried copying .efi files from /boot/grub/ to the bootloader's EFI partition manually - GRUB tries to boot, but it fails.
Windows is loaded by default now. If you boot from a flash drive that has GRUB installed, you can also boot into Ubuntu.
How to make GRUB boot by default and let you choose an OS?
PS: Converting GPT to MBR is not an option, OEM Windows with Recovery partition is installed only on GPT, and I would like to keep the license.
UPD : I found out that if you set the EFI partition to /boot/efi in fstab, and then do grub-install, then grub loads normally, but you can’t boot into WIndows from it - it says “Invalid EFI file path”.
UPD2 : As GaMBiT suggested , you need to boot during installation in UEFI mode. I have not yet figured out how to do this from a USB flash drive, but if you boot from a disk, you can select UEFI. Then, during installation, the EFI partition is visible in the disk layout (like efi, not like fat32) and the bootloader is placed on it.
UPD3 : After installing ubunta (taking into account UPD2) you need to grub.cfg in the section Windows 7 (loader)replace the partition number and UUID with the EFI partition and set the path to the Windows EFI bootloader. Editing grub.cfg is not very good, but so far.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
GaMBiT, 2012-09-30
@Anonym

Install ubuntu 12.10. I also recently suffered with this UEFI. It turned out that something was broken in ubuntu 12.04 and it is not loading. Any other operating systems, like Debian or Fedora, are installed quietly.

V
ValdikSS, 2012-09-30
@ValdikSS

Installed ArchLinux following these two instructions:
wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface
wiki.archlinux.org/index.php/GRUB2

S
Sild, 2012-10-01
@Sild

"But thanks for the tip, I'll try 12.10 now and see if it installs."
where are you climbing into the bottle ...
forum.ubuntu.ru/index.php?topic=78270.0
try it if GRUB is not a goal for you, but a means

D
DisDis, 2012-11-29
@DisDis

I set it up like this
habrahabr.ru/post/160655/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question