Trouble setting up EFI boot on Macbook Pro

I've been running Arch as a single OS on my Macbook Pro 7.1 for a few months using the bios compatibility mode. I would like to try a pure EFI boot. The reason is that I have an OCZ Vertex II SSD that the MBP  fails to boot from, while booting works fine on an 4 y/o Dell Inspiron 6400. I suspect the   SATA running in IDE mode  on the MBP is the cause, and this wiki entry  suggests that under grub2 AHCI can be forced. Also the same page states that the TRIM feature in the kernel is not available in IDE mode.
I read the wiki pages on EFI, grub2 and this how-to http://grub.enbug.org/TestingOnMacbook, but some things are not clear to me:
- Do i need a separate 'EFI System' partition? If so what folder structure should it have and on which mount point should it be mounted? Does it need to be fat32?
- Do I need a  BIOS Boot Partition?
- The how to explains using  the 'Apple bootloader'. But isn't that what grub2 is?
- Do I need GPT for using EFI on a MBP?
- Do I need grub2-efi or does grub2 from core/community work well enough?
Last edited by rwd (2010-11-25 08:10:23)

Thanks for the tips skodabenz. I am getting some progress, in the sense that the Grub menu shows up. But selecting any item  results in black screen with a prompt in the top-left. These are the things that I've been trying, each time swapping harddisk with the SSD:
- following the tips on http://grub.enbug.org/TestingOnMacbook I verified that the firmware is 64 bit using the mac OSX cd.
- Also I changed the path of the the contents of /efi/efi/grub2_efi_x86_64_bzr to /efi/EFI/BOOT/
and renamed grub.efi to BOOTX64.EFI as that is where the firmware seems to expect it
- Furthermore since efi is on a separate partition I added  '/boot/' to the initrd  and kernel lines (see grub.cfg. below).
One or more of these changes made that I when booting with the alt key pressed I can get into the grub menu.  Just before the grub menu appears though I see an error message that is too quick to read. Something like "error 'prefix' ...". Selecting any item in the grub menu results in a prompt.
- To be sure that it wasn't a typo in grub.cfg I tried this within the chroot, and it doesn't show any errors:
cat /efi/EFI/BOOT/grub.cfg | /bin/grub2_efi_x86_64_bzr-script-check --verbose
- I then decided to compile more modules so I did:
grub2_efi_x86_64_bzr-mkimage -d /usr/lib/grub2_efi_x86_64_bzr/x86_64-efi -O x86_64-efi -p "" -o /efi/EFI/BOOT/BOOTX64.EFI minicmd part_msdos part_gpt fat ext2 hfsplus ntfs reiserfs xfs iso9660 ls search loopback linux chain reboot halt appleldr help configfile hexdump loadbios fixvideo sh
- Still no boot, so I installed the 2.6.36-ck kernel from aur.
- Then I tried the ahci force tip mentioned in  https://wiki.archlinux.org/index.php/Solid_State_Drives
and added to menu items in the grub.cfg 'insmod setpci' and added to the menu items 'setpci -d 10de:0d85 90.b=40' with the pci id determined from 'lspci -nn'
A strange thing I noticed was that even though when booting from the SSD there is only one drive, when I press 'c' in the grub menu and then 'ls' I get this output, so now there is both a hd0 and hd1:
(hd0) (hd1) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (cd0)
a 'ls (hd1,gpt2)' shows the contents of the partition that contains /boot. When I change the items in grub cfg to set 'root=(hd0,gpt2)' I get 'no such partition' error. When I change it to 'set root=(hd1,gpt2)' I get the black screen with a prompt. 
A little research showed the cause for this:
[root@arch-macbookpro boot]# cat /boot/grub2_efi_x86_64_bzr/device.map
(hd0) /dev/disk/by-id/ata-Hitachi_HTS545025B9SA02_100610PBL2003SKV6ZPV
(hd1) /dev/disk/by-id/usb-OCZ-VERT_EX2_FCF0FEFFEFFCF0F33F5231144FF5FD-0:0
I guess I have to change this file and reinstall grub2. Will post the results in a next post.
This is the grub.cfg so far. None of these menu items work:
# Example Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub2_efi/grub.cfg.example
# DEVICE NAME CONVERSIONS
# Linux Grub
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
# Load Graphical modules
set debug=video
insmod efi_gop
#insmod efi_uga
# Load Font module
insmod font
# Setup GFXTERM along with loading unifont.pf2 font file
if loadfont ${prefix}/unifont.pf2
then
insmod gfxterm
set gfxmode="auto"
set gfxpayload=keep
terminal_output gfxterm
set color_normal=light-blue/black
set color_highlight=light-cyan/blue
insmod png
insmod jpeg
# background_image ${prefix}/archlinux.png
fi
insmod part_gpt
insmod part_msdos
insmod fat
insmod ext2
insmod setpci
# Timeout for menu
set timeout=3
# Set default boot entry as Entry 0
set default=0
menuentry "Arch Linux - with bios dump" {
#search --set -f /boot/vmlinuz26
#setpci -d 10de:0d85 90.b=40
set root=(hd1,gpt2)
loadbios /boot/vbios.bin /boot/int10.bin
linux /boot/vmlinuz26-ck root=/dev/sda2 rootfstype=ext4 video=efifb agp=off
initrd /boot/kernel26-ck.img
menuentry "Arch Linux - Linux (with bios dump and fix video)" {
#search --set -f /boot/vmlinuz26
#setpci -d 10de:0d85 90.b=40
set root=(hd1,gpt2)
fix_video
loadbios /boot/vbios.bin /boot/int10.bin
linux /boot/vmlinuz26-ck root=/dev/sda2 rootfstype=ext4 video=efifb agp=off
initrd /boot/kernel26-ck.img
menuentry "Arch Linux" {
#search --set -f /boot/vmlinuz26
#setpci -d 10de:0d85 90.b=40
set root=(hd1,gpt2)
fakebios
linux /boot/vmlinuz26-ck root=/dev/sda2 rootfstype=ext4 video=efifb agp=off
initrd /boot/kernel26-ck.img
menuentry "Arch Linux test" {
#setpci -d 10de:0d85 90.b=40
set root=(hd1,gpt2)
linux /boot/vmlinuz26-ck root=/dev/sda2 rootfstype=ext4 video=efifb agp=off
initrd /boot/kernel26-ck.img
menuentry "Arch Linux test2" {
#setpci -d 10de:0d85 90.b=40
set root=(hd1,2)
linux /boot/vmlinuz26-ck root=/dev/sda2 rootfstype=ext4 video=efifb
initrd /boot/kernel26-ck.img
menuentry "Arch Linux test uuid" {
#setpci -d 10de:0d85 90.b=40
search --no-floppy --fs-uuid d76f36b4-109a-48cd-81de-941f169b2213 --set root
linux /boot/vmlinuz26-ck root=/dev/disk/by-uuid/d76f36b4-109a-48cd-81de-941f169b2213 ro rootfstype=ext4 video=efifb
initrd /boot/kernel26-ck.img
Last edited by rwd (2010-11-27 20:35:01)

Similar Messages

  • Having trouble setting up iCloud calendar on Macbook Pro

    I get the following error when trying to set up the family share calendar on my MacBook Pro Mac Calendar: internet accounts can't verify the identity of the server "p31 - caldav.icloud.com". Anyone know how to correct

    I get the following error when trying to set up the family share calendar on my MacBook Pro Mac Calendar: internet accounts can't verify the identity of the server "p31 - caldav.icloud.com". Anyone know how to correct

  • Trouble Setting Up Samsung 30inch On Macbook Pro

    I can't seem to get the resolution on my 30" monitor working correctly with my macbook pro. If I set the resolution to anything > 1200x800 only a portion of the screen is displayed and by positioning my mouse to the outer edge of the screen the monitor scrolls to the corresponding undisplayed section.
    Anyone know what to do to get the proper resolution? I am running Windows XP SP2c and have NVIDIA Geforce 9600M GT drivers.

    Every LCD display has a 'native' resolution (it's maximum resolution). For most 30" widescreen displays, that's 2560x1600.
    The $29 adapter (single-link DVI) that you're using cannot carry enough data for 2560x1600 - you need the dual-link DVI ($99) adapter to support a display of that resolution.
    Dual-link DVI adapter: http://store.apple.com/us/product/MB571Z/A

  • Trying to set up iCloud on my MacBook Pro, and I get to the point where it tells me to view my email for further instructions to verify acct, but I have no email in my inbox, even after resending multiple times.

    Trying to set up iCloud on my MacBook Pro, and I get to the point where it tells me to view my email for further instructions on verification of my account, but there is no such email in my inbox, even after submitting multiple requests to resend the email. Any idea what I can do? Mark

    Well, running on a 2006 model.  I did not have a startup disc.  Initially, it booted up on original software in 2006.  Since then, I've upgraded to 10.6 via a box set.  And, since then I think I popped it up to lion. 
    All I have on a disc is snow leopard.  And, I can't get farther than the setup screen due to hard drive.  I'm taking to a apple authorized repair store right now.  We'll see what they tell me .  I'm just going to weigh the cost of repair vs. buying new.
    Another bad, stupid thing is I had no means of backing up my stuff.  So, I might have lost things like music, vids, etc.  we'll see if they can recover.  If the cost is too much for repair I might just forget it and start over with a new system.  Just not sure at this point.

  • Dual Boot Ubuntu Macbook Pro 8,1

    I have learned through trial and error (mostly error) that the newest Macbook Pro (early 2011 8,1) has a problem with ubuntu liveCDs and will not boot from them. I want to get Ubuntu running primarily so I can root my android phone. As of now I have Ubuntu 11.10 running on a virtual machine with VirtualBox but virtual machines don't work for rooting purposes. Is there still a way to dual boot a Macbook Pro 8,1 with Ubuntu?

    Ubuntu Live CD's are designed for generic PC machines, not Mac's with a GUID Partition Table and EFI.
    Booting and installing Ubuntu on a Mac can brick the machine, as the header on the GPT has a partial MBR like Windows full MBR, so it's mistaken for one and attmepts to install.
    Also Linux requires two partitions, one a swap partition which it mistakes the hidden EFI partiton for that.
    Getting a Lion based Mac to dual boot Linux is much harder than Snow Leopard, as there is a new hidden Lion Recovery Partiiton to deal with, also on the newer 2011 Mac's with recent firmware updates has caused all sorts of headaches for the required rEFIt needed (hasn't been updated) and creating two more partitions that Linux requires.
    If you had a pre 2011 Mac and no Lion, just Snow Leopard, I would say no problem.
    A much better option for you is to get a inexpensive machine and install Linux on it, or buy one already installed, until this Lion buisness settles down and urber geeks tweek Linux on Mac's again, but right now it's appearing Apple has charted a course for a closed operating system like a iPhone/iPad and that doesn't generate a whole lot of interest in running Linux on Mac's.
    http://www.system76.com/index.php/

  • How do I set up airport on my macbook pro (wired with ethernet to cable modem) and my ipad2 to use ipad wifi?

    How do I set up airport on my macbook pro (wired with ethernet to a cable modem) and the wifi settings on my ipad2 to enable the use of wifi on my ipad?

    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8156.html

  • Trying to set up my brand new MacBook Pro and it does not connect with the wifi network I have selected for this purpose. Nothing wrong with the wifi as both my iPad and iPhone are happily connected. Suggestions for connecting to the wifi network accepted

    Setting up my brand new MacBook Pro and it will not connect to the wifi network. Nothing wrong with the network which is happily working for my iPhone and iPad! Suggestions accepted for making this connection.

    Fixing this is a two step process:
    1) System preferences > WiFi/Airport ...
    ... check [√] Ask to join new networks
    "Known networks will be joined automatically.
    If no known networks are available, you will
    be asked before joining a new network."
    2) Remove unwanted networks from the list of "known" networks under
    System preferences > WiFi/Airport > (Advanced) > | Airport/WiFi pane ...
    Close the window and save changes. If no joy, do a restart to ensure you are playing under the new rules.

  • How do i set up iMessage on my Macbook Pro

    How do i set up iMessage on my macbook pro, all it shows is my apple id email address and i've tried 'Adding Email' as my number and it says an email has been sent although i do not recieve a text.
    I have no i dea how to set it up!
    Please help!
    <Personal Information Edited by Host>

    HI,
    Quote.
    HI Ralph,
    I'm having a hard time finding solution for iMessage.
    I can't send to one specific contact - we both use 4s iOS 6.1.3 and so is he.
    We cant send to each other. We tried to on/off sign in And sign out Apple ID on both phone and still doesn't work
    We even reset and erase content on his iPhone.
    We use different Apple ID.
    Looking forward to your reply, thanks in advance!
    I have added some punctuation and spread out the text to see if I have understood what you were saying.
    The Original Post  was about iMessages from the Mac Messages app.
    Now we are talking about  two people with  an iPhone each.
    You seem to be centered on something being amiss with his set up as you have Reset and Erased his iPhone  (no info on any restore from any backup).
    Can he/could he contact with anyone else before you reset his iPhone ?
    Can he contact anyone else now ?
    If this person cannot contacts anyone from his iPhone it would seem he has not set up the iPhone correctly.
    This may be a simple thing such as not having a Data Contract and therefore having Data Off and not be connected to a Wifi Network either.
    It may be more involved such as there being an issue with his Apple ID.
    If he removes the Apple ID  can he Send from the iPhone Number ?
    8:07 PM      Tuesday; March 26, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I can not boot my MacBook Pro. How do I get and save the data that is not backed up??

    I can not boot my MacBook Pro running on Lion 10.7.4. I pressed control, comment P and R keys and O got to the disk utility, then I tried to repair disk and it can not be repaired. I get a message that tells me to back up as much data as possible ?. But if I can not open the computer how can I save my data??
    I have a back up until 2 weeks ago on time machine. but the work of the last 2 weeks is extremely important how can I get it??
    If I use m time machine backup do I loose the additional data of the last two weeks!,
    Please help.. It's a huge amount of work that I have done and can not loose it

    If it were me, I'd get a new hard drive or SSD and put it in an external enclosure. Boot into the recovery partition, format the new drive (not the old one) and install the OS to it. Shut down the Mac, open it up, and swap the drives. You may be able to read your data from the old one externally if you're lucky. If you're very lucky you may be able to use Migration Assistant to move all your stuff to the new drive.
    Look at ifixit.com for the exact procedure to get to the drive on your model. If it's a unibody it's pretty simple.
    http://www.amazon.com/Sabrent-2-5-Inch-Aluminum-Enclosure-EC-TB4P/dp/B005EIGUD4/ ref=sr_1_3?ie=UTF8&qid=1392154588&sr=8-3&keywords=2.5+enclosure

  • Cannot boot my MacBook Pro. Tryed CMD+R, reinstall OS, error message :damaged HD. When trying to repait it says it's OK. Yesterday HD wasn't even half full when I turned it off, now it says it's full.

    Cannot boot my MacBook Pro. Tryed CMD+R, reinstall OS, error message :damaged HD. When trying to repait it says it's OK. Yesterday HD wasn't even half full when I turned it off, now it says it's full.

    What may have happened is an error and a kernel panic, filling up the logfiles.
    What I recommend is first to find a way to backup your data without booting the hard drive directly if it isn't already backed up, and then get Alsoft Disk Warrior to repair the hard drive.    You'll probably want an external drive from http://www.macsales.com/
    And you'll want to go into Hard drive -> Library -> Logs, System -> Library -> Logs, and Users -> yourname -> Library -> Logs to remove whatever you find there.   
    If after booting it fills up again, start by removing all startup items in your System Preferences for your user, and rebooting in safe mode with the shift key held down. If the hard drive is over 85% full after removing the logfiles, you may want to look at what were the last applications you installed.
    Peer2peer software if installed can be as bad as a virus, because it enables others to access your computer. Insecure wireless networks are just as bad, if they are WEP or no encryption and someone is within 1500 feet of your computer.
    If no such software is installed, your RAM probably has failed.    Run the hardware test that came with your computer, by booting with the 'D' key.
    If nothing shows up there, it can still be the RAM.   Especially if you've seen any 4 language screens telling you to restart.
    Here's more on kernel panics:
    http://www.macmaps.com/kernelpanic.html*

  • How can i Flash and restore the firmware ( EFI ) from a Macbook pro ( late 2008 , 5.1 ) ??

    How can i Flash and restore the firmware ( EFI ) from a Macbook pro ( late 2008 , 5.1 ) ??
    Please help me !!

    The Seagate backup drive I bought doesn't support 10.5.8
    The only reason I can see for that is it's formatted NTFS, which would likely be Read Only in 10.5.x, if you can reformat it MacOS extended, which would erase everything on it now, then that should work for your purposes.

  • HT201262 I have the gray start up screen that just keeps spinning. I have 'dubious permissions on file' I cant boot my MacBook Pro 15"

    I cannot start up / boot my MacBook Pro (15"). When I power it up, all I get is a 'persistant gray screen' with that gear icon spinning under the apple.
    I did run a 'safe boot', and saw that I had 2 possible errors that might be causing it:
    1) 'lanchctl: dubious permissions on file.  /Library/LaunchDaemons
    2) 'lanchctl: dubious permissions on file.  /etc./mach_init.d
    Also, there was a line that said that my 'IPv6' was disabled ??
    If anyone knows what I can do to fix this, I would be very grateful. All my songs and videos and pics are on my mac,and I have had it since 2007.
    Thank you kindly,
    Gino
    [email protected]

    Try a SMC reset:
    http://support.apple.com/kb/ht3964
    Ciao.

  • How do I set a tracker on my MacBook Pro (OS Lion) so that if it is lost/stolen, it can be tracked/located

    How do I set a tracker on my MacBook Pro (OS Lion) so that if it is lost/stolen, it can be tracked/located? There have been a spate of burglaries in my local area and laptops have been stolen. i dont want to lose my laptop !

    Here's the free method:
    http://www.apple.com/support/icloud/find-my-device/

  • I am asked to Sign in with my Apple ID each time I boot my Macbook pro running the current and updated version of Yosemite

    Each time I boot my Macbook Pro running a currently patched version of Yosemite I am asked to "Sign in with my Apple ID."  After that I have to approve the use of Find My Mac, and then I have to agree to the Terms and conditions of Use.   This is very annoying since I use Bootcamp a lot and it adds a fair effort to the reboot process.   Any thoughts?
    Some additional clues that may or may not have bearing on this.
    Once I am booted into Yosemite completely, if I open Safari (also current version)  I am told my Safari Extensions have been migrated and I have to re-enable each one individually.   They have all been disabled.   This will occur each time I completely close Safari and reopen it.
    I appreciate your thoughts and suggestions everyone!   Thanks in advance.
    Dave

    Hi chc517,
    I'm sorry to hear you are having issues with your MacBook Pro. I also apologize, I'm a bit unclear on a couple things about your specific configuration. The message you mentioned about the disk being encrypted would seem to indicate that you may have File Vault enabled. If that is the case and you are having a login issue, you would need to use the File Vault recovery key to reset your login password instead of your Apple ID, as noted in the following article:
    OS X Yosemite: FileVault recovery key
    Regards,
    - Brenden

  • Set up time machine for macbook pro on WD passport

    how do I set up time machine for macbook pro on WD passport? I keep getting a message that the Passport needs to be erased but when I try to ease it it tells me it can't be . 

    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.

Maybe you are looking for

  • How to find out who create a data record

    Hello expert, is it possible to find out who created a special data record on the cube, even if this is not cosidered by the data model? We do not save sy-uname on cube. Thanks Johannes

  • Anyone created a new skin/style?

    Hello, has anybody tried to create its own skin or style and apply it on a Dashboard? I've followed instructions on presentation server documentation: copy s_oracle10 and sk_oracle10 folders from source folder (C:\ORACLE\BI\web\app\res) to "data" fol

  • Spanish advanced payments HR Portal

    Hello everybody! I'm looking for information about advanced payments (for Spain) for a HR Portal. I'm quite new in Portal and I don't have idea of HR... very good e anyway I have been checking some standard portal application to find this option whic

  • Removing white spaces

    Hie Guys, One of the columns in my report - "Status Description" contains few lines of white spaces before the contents of the cells are displayed. Example is given below. Can anyone tell me how I can remove those white spaces (function/formula)?  Th

  • Profiling Servlets at runtime

    Does anyone knows how to use the profiling tool hprof with servlets? We are trying to do some performance analysis and currently don't know how to do it with servlets. Thanks