Results 1 to 2 of 2
I apologies if i did not place this in the right section. I have been having difficulties properly installing and using grub on my machine. First the details of my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-07-2012 #1
- Join Date
- May 2012
efi grub setup
I apologies if i did not place this in the right section. I have been having difficulties properly installing and using grub on my machine.
First the details of my setup and what I think I should be able to do:
I am using a MacBookPro8,1 which contains EFI 2.7 firmware (see macbook pro 13in early 2011 support(dot)apple(dot)com/kb/HT1237?v...S&locale=en_US EFI and SMC firmware updates for Intel-based Macs)
I am trying to set up a multi boot environment that uses only grub to select between linux, mac os 10.7, and windows 7.
I wish to make my setup a full UEFI boot which should be ok considering my systems firmware version.
I have properly setup an ESP and wish to use it to hold grub and any components grub requires to boot.
At the moment I have Ubuntu installed on my hard drive in its own partition, but I broke it because I removed the hybrid protective master boot record (again because I wish to use a full EFI boot).
Here is roughly the steps I have used to try and install grub. I start by booting into an Ubuntu live CD, I then mount my Ubuntu partition to /mnt/ubuntu. With my linux system mounted, I mount the ESP to /mnt/ubuntu/boot/efi and mount the special file systems (proc, dev, sys). Once I have finished mounting the required parts of my system I chroot to /mnt/ubuntu
(Please excuse this if it is wrong i'm doing this from memory)
Now this is where I am confused. As I understand, grub-install cannot be used to install an efi version of grub so I use:
grub-mkimage -d /usr/local/lib/grub/x86_64 -p /boot/efi/efi/grub -o /boot/efi/efi/grub/grub.efi -O x86_64 `cat <file that contains a list of all the modules with out .mod>`
After running the grub-mkimage command I have an efi binary in my ESP that I am able to boot. When I boot into grub I am printed with a grub command prompt and I am able to load a grub config file (I used grub-mkconfig to make this file and it seems to have detected all of my operating systems but I still am not able to use it to boot any of my systems, also I am familiar with bash scripting so I expect to either modify this file at some point or make my own config)
At the grub command prompt I am able to try some other commands but again I am unable to boot any of my operating systems.
I don't really know very much about grub (only what I have read in the grub manual or online) and did not ever install grub legacy by myself. I believe the following are my most direct questions (but i would appreciate any extra help to kinda give me better footing with grub and the rest of this):
-Where can I learn about the grub modules that I can load and figure out which ones I need?
-What is the format for loading grub modules? (I noticed the folder I point to in the mkimage command has the module files that end in (dot)mod, can i use a command like `ls *.mod` to load all the modules or does the .mod need to be removed from the name?)
-Are there more modules that I may need to load that are not in the grub folder? (are these modules like kernel modules? if so, do i need to load some specific kernel modules?)
-Once I have grub booting, how do i boot the operating system I wish to boot? Is there more information about the required commands? What steps do I need to use to get my mac system to boot? Is there a document, site, etc that I could use to get a better understanding of booting systems from grub? (again I read the manual and i was confused because the parts about booting were either incomplete or over my head)
Is anything in grub like grub legacy? I know there is a lot of information about the previous version of grub, would it be worth my time to read any of it or are the two too different?
Thanks for your time and I'm sorry if this post is a little confusing, if there is anything unclear or something more I can add to help you guys help me please let me know.
- 05-10-2012 #2
- Join Date
- May 2012
Also would any of you have any other suggestions of where to post my question? I have made this post on the grub help mailing list, as well this form and the linux.org form and haven't gotten much feed back. I don't mind asking someone else if any of you think it might help