[GUIDE] A fast and easy way to install Lion

Posted 11 June 2011 - 03:00 PM

tseug

InsanelyMac Sage

Members

411 posts

Gender:Male

This method was created (and tested) for the Gigabyte GA-P35-DS4 motherboard but it should be relatively easy to modify for any other motherboard. It's a CLI at the moment for this reason but a GUI might exist at some point (Especially if someone else makes one ).

You will be creating a Boot USB that can be used to install OS X Lion on a hackintosh (or a genuine mac for that matter).

Note that the current version uses a Chameleon with the so called Facetime and iCloud fix which is reported to cause trouble for RAID installs

In Disk Utility, format the USB as Mac OS X Extended (Journaled) and give it some name: We'll use USB Boot here but it can be anything. Make sure that "GUID Partition Table" is selected under "Options..."

If you already have a custom DSDT.aml you wish to use, add it to install/Extra/. If you don't, you can generate one with DSDT Auto-Patcher. Note that if you add a custom DSDT, it must be named DSDT.aml. If you don't add a DSDT, one will be created for you when you run finalize (See below). Although the included patcher was made to support GA-P35-DS4 it has also been confirmed to work well with a number of other Gigabyte boards similar to GA-P35-DS4. Please let me know if it works out of the box with your motherboard.

In Terminal:

sudo install/mkboot /Volumes/USB\ Boot/

This should take ~15 minutes

Boot your USB device and install Lion on /Volumes/Lion as you normally would.

Wait for the installation to finish. When your machine reboots in the end, boot onto the USB device again

Open up a terminal via the Utilities menu:

./finalize /Volumes/Lion

reboot

All done. The USB device can be ejected and OS X can be booted from the hard drive.

Sleep, network, and sound works on GA-P35-DS4. For a substantially different motherboard you'll need to modify mkboot and finalize appropriately.

------

How does it work?

mkboot is a bash script that installs Chameleon, the things needed from the Lion install app, and other tidbits to the target volume.

finalize is a bash script as well. It is copied over to the boot USB by mkboot and installs Chameleon etc. on the target volume.

Both scripts are commented and include references to the description of the various phases.

I'm a Terminal newbie. What to do?

Welcome to the wonderful world of the Unix terminal Here are some extra instructions:

Once you've downloaded install.tar.gz it should reside in the Downloads folder. Safari either unpacked it for you or you can do it yourself by double clicking the file.

Open a terminal. Write cd Downloads and press enter.

Copy and paste the command from step 4 in Directions and press enter.

Troubleshooting

Make sure you are actually booting from the USB device. On Gigabyte, you can press F12 on POST to get a boot menu.

Posted 12 June 2011 - 12:32 PM

Good Job. Great Job!!Take it a step further and re-image the ESD with the generated BaseSystem from USB and it will FIT on DVD.

Take it even a step furtherIF you include the /S/L/E from BaseSystem in ESD then you can also make BOOTABLE DVD!!

Now to try THAT out.

Thank you. I'm kind of on the fence about bootable DVDs in this day and age. My retail Snow Leopard DVD actually stopped working after a while. I might have accidentally scratched it. Luckily I'd made an image of it on a backup hard drive.

8 GB USB pen drives are dirt cheap these days. Why not just buy one, put on Lion, and keep it somewhere for reinstallation? IMHO that is a much safer way to do it.

Posted 12 June 2011 - 12:47 PM

tseug

InsanelyMac Sage

Members

411 posts

Gender:Male

The bootloader doesn't work for me,

Chameleon RC5- r1002 in my GA=P55-UD3L BIOS just stuck there.

Could you be a bit more specific? It doesn't even boot into Chameleon on the USB? What happens if you install install/Chameleon-2.0-RC5-r1002.pkg on it directly and just try to boot it? Does r1000 behave any differently?

Posted 12 June 2011 - 01:42 PM

Blah101

InsanelyMac Geek

Members

203 posts

Gender:Male

See post #9. Erase the USB partition before you install Chameleon.

I booted and installed! I used this chameleon RC1000 on the USB and that allowed it boot. I rebooted and everything seems to be working fine. Just setup my account, and I have full resolution on my GTX 460. My card is recognized right after installation. This is fantastic! I wonder if I can play steam games again. Going to go try that out. You rock!

Posted 12 June 2011 - 01:45 PM

liliass

InsanelyMac Protégé

Members

22 posts

[quote name='tseug' date='Jun 12 2011, 12:47 PM' post='1696468']Could you be a bit more specific? It doesn't even boot into Chameleon on the USB? What happens if you install install/Chameleon-2.0-RC5-r1002.pkg on it directly and just try to boot it? Does r1000 behave any differently?

It does not boot into USB. My PC just hang in the bios when I use this R1002 from your .zip but it is fine if i use r1002 from kexts.com.

I have no problem with r1002 download from kexts.com but I got KP in PCI Configuration Begin.

Posted 12 June 2011 - 01:50 PM

sorry in advance for totally noob question but how do i get a DSDT.aml for my motherboard its a p8p67 i allready have installed snow leopard using the andy guide and thats working fine. Thanks

Been doing some research, am i correct in using dsdt edit to make my own dsdt.aml file. i already have snow leopard running on my pc, is just a case of generating my own file from dsdt edit and using that. Any help welcome