Restoring a Bootloader (EFI) When OSX86 Won’t Boot
On numerous occassions in the last three days I’ve restored my OS but not been able to get it to boot. Here’s an easy solution. Just download this zip file (bootef.zip) and (from the readme in the zip file):
Copy the folder “bootefi” and all included files/folders to the root directory of either a USB Thumb drive, a USB hard drive, or a second internal drive. Be sure that either the Thumb drive, the USB hard drive, or the second internal drive have a volume name.
Insert the OSX Boot DVD and allow the DVD to boot up. Install OSX from the DVD. Allow the DVD to reboot. This time don’t install the OS, but click on the Utilities menu and select “Terminal”.
Then enter the following commands
sudo -s (then enter your root password)
cd /Volumes/usbvolname/bootefi
where usbvolname is the volume name of the USB Thumb drive, USB hard drive, or second internal drive where the “bootefi” folder was copied to.
./bootefi.sh installvolumename
where installvolumename is the volume name of the drive that OSX was installed to. The installvolumename should be surrounded by double quotes. Example: ./bootefi.sh “MacHD” or ./bootefi.sh “Macintosh HD”
Now simply follow the prompts and choices based on the type of bootloader install. The choices are EFI or Darwin X86 bootloader and for an EFI bootloader, mbr or guid type partition on the OSX hard drive.
At the end, the script will ask to either reboot or stay in Terminal and reboot later.
Before OSX boots up, make sure to remove the OSX install DVD, so that it won’t interfere.
September 5th, 2009 at 5:53 am
Hi,
i downloaded the zip file and copied it onto a USB drive
then I booted to my os x disk and installed it To my hard drive sucsessfuly
(the problem is when I restart, my computer I can’t boot into os x because
the bootloader that comes with the disk doent work)
so I boot into the os x disk again and then open terminal,
when I type in sudo -s
it says sudo: command not found
and I don’t know my root password
any help?