Showing posts with label EFI. Show all posts
Showing posts with label EFI. Show all posts

Create a Chameleon USB Rescue Drive Using MultiBeast

It's always a good idea to keep a copy of iBoot on hand in case things go wrong with your install. You can easily boot from it and then choose your system drive.  But what happens when you don't have access to an optical drive?  Things can get complicated. Here's a guide that will help you install Chameleon and other necessary files on any USB flash drive.

PLEASE NOTE: USB Rescue drives will NOT boot the Mac OS X Retail DVD.  You will need an optical drive to do an installation using iBoot + MultiBeast.

YOU WILL NEED
  • A blank USB drive of any size- even an old 512mb one will work!
  • A computer running Mac OS X
  • MultiBeast
  • Your motherboard-specific DSDT from the DSDT Database
STEP 1: FORMAT THE USB DRIVE
  1. Boot into your existing Mac OS X Installation.
  2. Insert your USB drive.
  3. Open Applications/Utilities/Disk Utility
  4. Highlight your USB drive in the left column.
  5. Click the Partition Tab.
  6. Click Volume Scheme- choose 1 Partition
  7. Click Options…
  8. Select GUID Partition Table. Click OK.
  9. In the Name: field type: USB Rescue
  10. In Format: field select Mac OS Extended (Case Sensitive, Journaled)
  11. Click Apply, then click Partition.
STEP 2: DOWNLOAD YOUR MOTHERBOARD'S DSDT
  1. Visit the DSDT Database
  2. Download your motherboard's DSDT, and place the .aml file on the Desktop
STEP 3: RUN MULTIBEAST ON THE USB DRIVE
  1. Open MultiBeast
  2. In Select a Destination screen, choose USB Rescue (If you don't get this option,  press Continue, then select Change Install Location...)
  3. Select UserDSDT
  4. Click Continue, then Install
There you have it!  A Chameleon USB Rescue drive!  If you ever need to boot from it, go to your computer's boot menu at startup (F12 on Gigabyte boards) and choose the USB drive. When you get to the Chameleon boot screen, choose your system drive. If you have any issues booting your hard drive, you can always use -s to enter single-user mode to modify and repair disk, -x to enter safe mode, or -v for verbose mode.

 -tonymacx86 & MacMan
For discussions on this and other topics, register today at tonymacx86.com!

tonymacx86 Public Service Announcement: DSDT



The first in a series of tonymacx86 Public Service Announcements. Music and animation by Adamsmasher. Enjoy!
For discussions on this and other topics, register today at tonymacx86.com!

tonymacx86 Table Of Contents


Ok, so you've installed Snow Leopard. What can you do next to further tweak your system? I tried to pull together some of my most relevant posts in a sort of Table Of Contents. This is not meant to be an order of operations, although you can use it like that.

The posts below represent how we got to where we are now step by step. A good read for anyone new to the world of OSx86. I'll try to keep this post updated. Thanks for reading!

Installation Guides
  1. iBoot + MultiBeast: Install Mac OS X on any Intel-based PC  (RECOMMENDED)
  2. Old Boot CD Method
  3. OSInstall.mpkg Method
  4. USB Method
  5. Dual Boot Windows 7 and OS X Snow Leopard

Post-Installation Guides
  1. MultiBeast: The Ultimate Post-Installation Utility
  2. Enable High Definition Audio on P55 Motherboards
  3. Enable Full Graphics Card Acceleration
  4. Tweaking Your System: Install Chameleon, DSDT, & Extras to EFI Partition
  5. Tweaking Your System: Get Rid of PlatformUUID.kext
  6. Tweaking Your System: Get Rid of Restart Kexts
  7. How To Install Chameleon Manually From Terminal
  8. Create a Chameleon Boot USB Drive
  9. Enable the Apple Boot Screen
  10. Fit Mac OS X Snow Leopard on a Single Layer DVD

DSDT Guides
  1. DSDT Database for P55 Motherboards
  2. Create and Modify Your DSDT.aml
  3. Advanced DSDT Fixes: Enable Sleep on P55 Motherboards
  4. Advanced DSDT Fixes: Enable Intel Native SpeedStep on P55 Motherboards
  5. Advanced DSDT Fixes: nVidia Graphics
For discussions on this and other topics, register today at tonymacx86.com!

Tweaking Your System: Install Chameleon, DSDT, & Extras to EFI Partition

You may or may not be aware of it, but you have a 200 megabyte partition on the root of your drive. It's the OS X EFI partition, which normally holds information specific to Apple Hardware such as bios, etc… For Hackintosh users, however, it has no use whatsoever. It can therefore be re-purposed to hold Chameleon, and any extra files such as DSDT, /Extra/Extensions folder, com.apple.boot.plist, and smbios.plist.

If you're one of those users who like an extremely 'vanilla' installation of OS X, you may want to rid your drive of all extra Hackintosh-related files. The following method will lead you through installing all of these files to your EFI partition.

NOTE: This is entirely optional, and will not give you any benefits beyond cleaning the root of your install. Also, each time you want to make changes, you'll have to mount your EFI partition through the Terminal. If you're uncomfortable using the Terminal, do not proceed.

STEP 1: BEFORE YOU BEGIN
Please be aware that you'll be deleting your bootloader, rendering your drive unbootable without the new EFI partition. Make sure to back up your data, and if possible create an emergency Boot CD or USB drive. If you used the Boot CD method, you can always boot using the tonymacx86-P55BootCD.iso. Alternately, you can create a custom bootable Chameleon USB Drive.

For the purposes of this guide, I recommend unplugging all drives except your Snow Leopard installation hard drive and rebooting. This will minimize any problems with disk number and partition number. I will use disk0 by default in this guide. To make sure your disk is identified as disk0:
  1. Open /Utilities/Terminal
  2. Type diskutil list
  3. Compare your results with the following picture. If yours looks similar, and your root is disk0, you're ready to begin.


STEP 2: REFORMAT AND MOUNT YOUR EFI PARTITION
  1. Open Applications/Utilities/Terminal
  2. Type: sudo -s
  3. Type: newfs_hfs -v EFI /dev/disk0s1
  4. Type: mkdir /Volumes/EFI
  5. Type: mount_hfs /dev/disk0s1 /Volumes/EFI
Your EFI partition should mount on the desktop and in Finder.



STEP 3: INSTALL CHAMELEON TO EFI PARTITION
Because Chameleon will not be on your Snow Leopard partition anymore, you must re-install it to the EFI partition.
  1. Download any Chameleon binary source (For this example: Chameleon-2.0-RC4-r684-bin).
  2. Unzip the folder and place it on the desktop as shown in the picture.
  3. Open Applications/Utilities/Terminal
  4. Type: diskutil list
  5. Locate your EFI partition. It will be under IDENTIFIER. Be sure to use the correct one. (For this example: disk0s1)
  6. Type: cd
  7. Click and drag the Chameleon folder to Terminal, creating a path to it. This is a cool trick that you can use instead of typing the whole path. The command will become: cd /Users/****/Desktop/Chameleon-2.0-RC4-r684-bin
  8. Type: cd /i386
  9. Type: sudo fdisk -f boot0 -u -y /dev/rdisk0
  10. Type: sudo dd if=boot1h of=/dev/rdisk0s1
  11. Type: sudo cp boot /Volumes/EFI/
STEP 4: COPY FILES TO EFI PARTITION AND EDIT COM.APPLE.BOOT.PLIST
In order for your DSDT to be recognized, you must add a line to your com.apple.boot.plist in order for Chameleon to locate it on the EFI partition.
  1. Open /Extra/com.apple.Boot.plist in TextEdit or Property List Editor.
  2. Add the DSDT=hd(0,1)/DSDT.aml flag to your as seen in the pictures below.
  3. Save com.apple.boot.plist
  4. Download and run ShowAllFiles.
  5. Click and drag your DSDT.aml and /Extra folder from Snow Leopard to EFI.
  6. Make sure EFI looks similar to the one in the pictures below.
  7. Delete DSDT.aml, boot, and /Extra folder from Snow Leopard .

STEP 5: SET THE EFI PARTITION AS ACTIVE
You now have to set the EFI partition so that your computer boots from it first.
  1. Open Applications/Utilities/Terminal
  2. Type sudo -s
  3. Enter your password.
  4. Type fdisk -e /dev/rdisk0
  5. Type p
  6. Type f 1
  7. Type w
  8. Type y
  9. Close and re-open Terminal
  10. Type: sudo -s
  11. Enter your password.
  12. Type: umount -f /Volumes/EFI
  13. Type: rm -rf /Volumes/EFI
  14. Type: fsck_hfs /dev/disk0s1
  15. Close Terminal and reboot.
You're done! Special thanks to Munky for the original EFI Partition guides, and the entire OSx86 community, without whom this guide wouldn't exist. Good luck, and let me know if it worked for you!

-tonymacx86

PS: The EFI partition will not automatically mount as other partitions do at boot time. If you ever need to change/update files in your new EFI...
  1. Open Applications/Utilities/Terminal
  2. Type mkdir /Volumes/EFI
  3. Type sudo mount_hfs /dev/disk0s1 /Volumes/EFI
Your EFI Partition will mount on the desktop and in Finder. Copy and paste these commands to a text file for easy access in the future.

EDIT: You can also use this script - EFI Mounter. Special thanks to SirReal for posting this- it's a nice little App you can stick in your Applications folder to mount/unmount your EFI partition.

For discussions on this and other topics, register today at tonymacx86.com!