Bug#538730: grub-efi-amd64: cant find prefix

A Mennucc mennucc1 at debian.org
Sun Jul 26 16:11:30 UTC 2009


Package: grub-efi-amd64
Version: 1.96+20090725-1
Severity: normal

hi, I have a MacBook 5,1 unibody

I have installed rEFIt, and I installed grub-legacy inside
my linux partition /dev/sda4 , and this way I can boot either linux or
Mac OS/X. 

Today I tried to use grub2 new EFI method, no success.
Here is what I did:

1) mount EFI partition 
 
 # mount /dev/sda1 /efi

2) copy all kernels and such
 
 # cp -a /boot /efi/boot-fresh

3) create a grub dir
 
 # mkdir /efi/efi/grub

4) copy all stuff that  http://grub.enbug.org/TestingOnEFI tells to copy
 
 # cd /usr/lib/grub/x86_64-efi ; cp *.mod fs.lst command.lst /efi/efi/grub

5) create menu (see attachment)

6) create EFI image
 # grub-mkimage  -o /efi/efi/grub/grub.efi -p /efi/efi/grub


----------

When I boot the Mac, rEFIt happily lists grub as a possible way to boot
the system, but if I select it, 
grub starts in "rescue mode" and complains that the "prefix"
is not correctly found

-----------

I also tried
 # grub-mkimage  -o /efi/efi/grub/grub.efi -p /efi/grub
with same result

Any clue?

a.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-efi-amd64 depends on:
ii  grub-common              1.96+20090725-1 GRand Unified Bootloader, version 
ii  libc6                    2.9-21          GNU C Library: Shared libraries
ii  ucf                      3.0018          Update Configuration File: preserv

grub-efi-amd64 recommends no packages.

Versions of packages grub-efi-amd64 suggests:
pn  efibootmgr                    <none>     (no description available)
pn  os-prober                     <none>     (no description available)

-- no debconf information

-- 
Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
-------------- next part --------------
timeout=10
menuentry "MacOSX" {
  # Set the root device for Mac OS X's loader.
  root=(hd0,2)
  # Load the loader.
  chainloader /usr/standalone/i386/boot.efi
}
menuentry "GNU/Linux" {
  # Set the root device for GNU/Linux.
  #search --set /boot/vmlinuz
  root=(hd0,1)
  # Load the kernel and initrd.
  linux /boot-fresh/vmlinuz-2.6.30-1-686 video=vesafb agp=off acpi=force libata.atapi_enabled=1  root=UUID=b36cdc79-6a50-46e5-8ab0-bc05238ca3bc  gpt
  initrd /boot-fresh/initrd-2.6.30-1-686
}



More information about the Pkg-grub-devel mailing list