Installing Leopard 9A581 GM on a Hackintosh

INTEL ONLY!

Complete Guide on How to Patch your 9A581 (GM) DVD to Work on a HackinTosh.

FILES FOR THIS GUIDE: Leopard 9a581 Patch

Thanks to a lot of people in the forums and IRC that made this happen! This is a guide to help you all in getting your Leopard Unpatched DVD to run on your hack.

First, I just want to let you know that depending on your configuration, you may need some files that are not included here (meaning, kexts). But I will try to help the best I can to get you going. Don’t give up!

After compiling your Patched DVD, you may want to burn it to a DVD-RW or Just setup a partition to load the install from. I will guide you in both situations. Pick the method that suits you best.

First, the things you will need:

1 – The 9a581 GM DVD image
2 – the zip file containing all the files needed for this guide
3 – Blank DVD-RW or a spare partition

Ok, first of all, make sure that your original DVD images is alright. Make sure after you download, you check to see if it is not corrupt.

Also, whenever you see a command between quotes in this guide, type them on terminal without the quotes!

· Place the image on your desktop. It should be named osx-leopard105.dmg
· Unzip the zip file on your desktop; PLACE ALL THE CONTENTS ON YOUR DESKTOP (2 PATCH FILES AND 3 FOLDERS)
· Now lets open the patch file. Double click the patch-it.sh file in your desktop. This should open it in text edit. If not, just right click it and select open with->textedit
· Now, look for the line where it says: DMG=”/Users/XXX/Desktop/osx-leopard105.dmg”. Make sure you change XXX with your username. This path points to the GM image located on your desktop! Save and close the file.
· Now, open up a terminal window; just type terminal in spotlight and load terminal from there;
· On your terminal window, do a sudo –s command and enter your password.
· Now Type “cd desktop” in the terminal window and hit enter.
· Now type ./9a581-patch.sh THE PATCH WILL NOW EXECUTE! Be patient, go grab some coffee or kiss your wife. It will take a bit of time.
· When the patch is done, you will see a Leo_Patched_DVD.iso image file inside the 9a581-patch folder. The size should be 4,698,669,056 bytes. If it is a bit more, dont worry. This is the image we will either burn to a DVD-RW or restore it to a partition. More ahead…

INSTALLATION METHOD 1 – Burn the Image

Now that we have our patched image, Leo_Patched_DVD.iso, lets burn it to a DVD-RW (I chose a DVD-RW since if you screw up, you can just erase it)

· Open up disk utility;
· Make sure that your DVD-RW is on the drive; Click the drive on the left column in disk utility; now on your right side of the window, select erase. This will blank out the media (make sure you select the DVD drive, not another partition on your system!!)
· After that, Click Burn on the top left corner; browse to the 9a581-patch folder and select the Leo_Patched_DVD.iso. This will now burn it to the DVD. Wait a bit, kiss your wife again or get some more Brazilian coffee…
· After it is done (make sure you let disk utility verify your image), you will now have a fresh 9a581 patched DVD (it includes the new patched kernel as well,I didn’t tell you that huh?)

INSTALLATION METHOD 2 - RESTORE Leo_Patched_DVD.iso TO A PARTITION

Some people prefer using a spare partition to do the install instead of a DVD. That is quick install option if you want to test out the process without the long waits of burning a dvd, loading, etc… Just remember, the process below is to setup a partition for the installation files, not the actual leopard installation!! Well here it is:

· First, you need a partition somewhere. I recommend having a second hard disk since you can just reformat after you are done installing. Use Disk utility to partition the drive. It should be MAC OSX Journaled format. Also, it needs to be MBR. Partition and format (Make sure the Volume is named “Leopard”)
· Lets flag the partition and make it bootable.

Somehow, The Leopard Installation process does no make the partition bootable. You need to do this yourself (working on a fix). Before you run the steps below, make sure you copy the files located in files/i386 (from the pack) to /usr/standalone/i386/ on your tiger disk.

· Open up terminal. This is what you do (red text is what terminal will show after the commands you enter):

sudo fdisk -e /dev/rdiskX ( replace X and x with the disk/partition you restored the image to)
fdisk: 1> update
Machine code updated.
fdisk:*1> f 1
Partition 1 marked active.
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q

· Ok, now lets put the file “boot1h” in the beginning of the partition: In terminal, browse to the i386 folder inside the 9a581-patch folder. Then type this:
sudo dd if=boot1h of=/dev/rdiskXsx bs=512 count=1
· Now, lets run the startup tool to embed the boot code: (Place startuptool in your usr/sbin folder, on your Tiger Disk)
sudo startupfiletool -v /dev/rdiskXsx boot
· And last, lets give the pope’s blessing to the partition:
sudo bless -device /dev/diskXsx -setBoot –verbose

The partition is now bootable.

Now, to restore the Leo_Patched_DVD.iso to the partition:
· Open up Disk utility; Select Restore;
· Drag the Leo_Patched_DVD.dmg to the Source textbox and then Drag the Destination partition (the one you partitioned above) to the destination text box (this is on the right hand side in disk utility). Hit Restore. Wait a bit and the restore process is done!

Well done…now you have either a patched DVD or a “patched” partition containing the install. This is what we called “Pre-installation process. Let’s go now for the “Post-Installation” process…

POST INSTALLATION INSTRUCTIONS

Again, thanks for all the help from other members of the community. This guide was compiled with info gathered from the community, not from me!!! I am just writing to help you all!!!!! And Thanks for all the help!

In the first part, I showed you how to patch your DVD/prepare an installation partition. Lets now move to the install process.

You will need a partition to install Leopard. The partition we just did earlier was just to hold the installation files. Make sure you have a partition on one of your disks to receive the install. And the partition where you will be installing needs to be MBR not GUID!!!

After inserting the DVD/booting the install partition, just go and install leopard as usual. Make sure you un-select printer drivers/languages/xcode, etc… Our DVD is a single layer one without all the garbage. If you picked the restored partition method, the restored partition should show on the bootloader. If not:

· When the Darwin Bootloader loads, used advanced options and type rd=diskXsX (where X is the disk where you restored to, and X the partition number). This should boot into it (if not, there is something wrong with your setup!)

After installing Leopard, reboot into Tiger again. DONT BOOT INTO LEOPARD YET!!!

Now we will run the Post Patch script to replace some kernels. This is due to the fact that When Leopard installs, it gets its kexts from their install package. We need to copy ours to the install partition so that it boots properly.

· After you boot into Tiger, Open up a terminal window and do a “sudo –s”; Enter your password;
· Type “cd” and a hit space. Now, drag the folder 9a581-patch on your desktop to the terminal window and hit enter. This should give you the path to the folder)
· Now type ./9a581-PostPatch.sh THE POST PATCH WILL NOW EXECUTE! Wait a tit bit…

The Script will ask you to reboot, Hit Y and let it reboot.

After this you are all done! You now should boot to your Leopard installation disk. If you get stuck after this, boot with a –v option and watch for errors/panic.

From here on, we can post your problems here and we will try to
sort it.

AGAIN: The kexts here are the common ones used on everyday installations, but this was tailored for an ASUS P5W-DH Deluxe. If you get any panics with –v switch, we can try to pinpoint to what kernel is doing it. Some people have reported that the BootCache.kext gives panics. It is a bit more to do, but we can all get it sorted here.

Hope this helps a lot of you!

Original URL: OSX86Scene


4 Comments

  1. jone
    Posted May 22, 2008 at 4:22 am | Permalink

    try to patch the osx-leopard105.dmg image and every time i get the Bad interpreter no such file or directory what I do wrong ?

    jone

  2. Andrew
    Posted September 3, 2008 at 5:05 pm | Permalink

    Hi my computer boots into the white mac loading logo but the comes up with a grey square sying that i need to reeboot my computer. This is all after i have applied the PostPatch.

    Hope you can help

    Thanks
    Andrew

  3. Jimmy
    Posted October 24, 2008 at 11:05 am | Permalink

    sorry sir i not understand this procedure,how can i open up a terminal windiws?? Im in a windiws mode, i don have a mac os in pc.
    I can’t patch the files in my leopard noot disk,hope u can help me.

    · Now, open up a terminal window; just type terminal in spotlight and load terminal from there;
    · On your terminal window, do a sudo –s command and enter your password.
    · Now Type “cd desktop” in the terminal window and hit enter.
    · Now type ./9a581-patch.sh THE PATCH WILL NOW EXECUTE! Be patient, go grab some coffee or kiss your wife. It will take a bit of time.

  4. Jon
    Posted October 25, 2008 at 4:17 am | Permalink

    I used the Kalway DVD which I got off a bit torrent site and after I do the and the post install of patches when I boot after installing the post patch script my laptop boots up and goes to a boot prompt. It sees the drive as their is a drive hd(0,1) Leopard that shhows up before goig to the boot: prompt. Please help! jhudock@gmail.com for replies.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word