Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a ~2006 Macbook (1,1) that I am trying to resurrect as a Linux machine. I no longer want nor need OS X, so I want to install Arch as the only OS on this machine. I have tried several times to get Arch Linux installed, but I get hung up every time when it comes to installing the bootloader. I have even gotten Grub2 to install, but I can't get it to install and then boot. I've attempted following the ArchLinux Macbook guide for EFI, along with the Beginner's Guide. I've read quite a bit about UEFI, but I still can't seem to figure out where to put my bootloader.

From the errors I get when I install, it would appear that the laptop is not booting in UEFI mode, so none of the UEFI bootloader directions work. I get hung up at the following command:

grub-install --target=i386-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck

It tells me to run modprobe efivars before chrooting, but I do that and nothing happens. My understanding is that my Macbook is EFI rather than BIOS, but without it booting into UEFI mode, I can't install a UEFI bootloader.

What do I need to do to make the bootloader (1) install and (2) work. As mentioned above, I don't need OS X, and would like Arch to be the only OS on this computer.

share|improve this question
1  
Have you tried the beginners guide? wiki.archlinux.org/index.php/Beginners%27_Guide –  Jeff Dec 13 '12 at 22:23
1  
Yep. I mentioned that in the description. I've tried the beginner's guide and also followed the installation guide. No luck either way. –  Ryan Dec 14 '12 at 0:36
    
I just want to point out that if modprobe efivars works and the module is correctly loaded, there will be no message shown. So, the fact that "nothing happens" is indicative of success and not failure. –  terdon Dec 14 '12 at 0:53
    
@terdon When I say "nothing happens," what I mean is that it doesn't fix the problem. When I run it before chrooting, then check /sys/firmware/efi/vars/, there is nothing there. the /sys/firmware/efi directory doesn't even exist. But there is no output from modprobe efivars. –  Ryan Dec 14 '12 at 17:02
    
Have you tried refit? –  Keith Dec 15 '12 at 3:51
show 2 more comments

1 Answer

up vote 0 down vote accepted

Booting a Macbook to Linux requires that you have Refit installed to an HFS partition in /efi (this would be partition two - typically the MAC OS partition). Refit in this case must be installed via MacOS. MacOS X is essentially required, at least at the onset, because the 'bless' command must be executed - this functionality does not exist in Linux.

Bottom line, sadly, you need to have at least a minimal installation of MacOS installed to have a self sufficient Linux installation. Make the MacOS partition as small as you like(or can). Once OSX is running, install refit and proceed with the Linux installation. Further, if you ever have problems later on, you may need to boot into MacOS and rebless the drive by running "sudo /efi/refit/enable-always.sh".

Alternatives include booting each time to a CD or USB stick and then directing it to boot from the hard drive. One odd method that sometimes works includes booting to a Windows CD - at the prompt were it says "Press any key to boot from CD", wait for a timeout. Sometimes at that point the system will boot from the first hard drive despite having no OSX installed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.