1 |
Here's a marvelous program crying out for an ebuild; |
2 |
|
3 |
https://launchpad.net/boot-repair |
4 |
|
5 |
It's part of my Ubuntu setup. With one click it goes out and finds all |
6 |
the boot partitions on your hd(s) and automatically writes the proper |
7 |
grub2 configuration for them. It even pastebins a copy of grub.cfg |
8 |
for troubleshooting purposes, though I have never needed it, sof far. |
9 |
When you boot all your OSes are there in the menu ready to be |
10 |
selected. In my case Ubuntu, Gentoo and Sabayon. . |
11 |
|
12 |
On 3/21/12, Julian Simioni <julian.simioni@×××××.com> wrote: |
13 |
> Hi all, |
14 |
> I'm working on the exciting and challenging task of installing Gentoo |
15 |
> on a new Macbook Pro with grub2 and EFI. I've got things booting, but |
16 |
> every time grub complains of many missing commands including search, |
17 |
> echo, and most surprisingly '['. It also can't find any modules, and |
18 |
> in order to get everything to work I had to specify about 10 modules |
19 |
> to be built in using grub2-mkimage. This feels a little suboptimal to |
20 |
> me, but I can't figure out where various things need to be for grub to |
21 |
> find them happily. |
22 |
> |
23 |
> My partition layout at least is simple since I don't plan on dual booting: |
24 |
> /dev/sda1: big root partition using ext4 |
25 |
> /dev/sda2: 200MB vfat EFI partition, set to bootable (yes this should |
26 |
> be sda1: I didn't know you needed an EFI partition until after I had |
27 |
> already made the root partition and started installing things. I was |
28 |
> able to add this partition later with gparted) |
29 |
> |
30 |
> Of course I'm using GPT, not MBR. |
31 |
> |
32 |
> On /dev/sda2 I've got the grub2 image at /EFI/BOOT/BOOTX64.EFI as is |
33 |
> standard, and I have been mounting /dev/sda2 at /boot/efi. I can put |
34 |
> either a grub2 image or a 3.3 kernel with EFI stub support at |
35 |
> /EFI/BOOT/BOOTX64.EFI and it gets detected just fine, so I'm on the |
36 |
> right track. |
37 |
> |
38 |
> I've tried messing with various permutations of the -p parameter to |
39 |
> grub2-mkimage, but haven't gotten anywhere. Right now the *.mod and |
40 |
> *.lst files from /usr/lib/grub/x86_64-efi/ can be found at both |
41 |
> /boot/grub2/x86_64-efi and /boot/efi/EFI/BOOT/. Where is it that they |
42 |
> actually should be? |
43 |
> |
44 |
> Thanks, |
45 |
> Julian |
46 |
> |
47 |
> |