
UPDATE (July 25, 2012): This guide has been superseded by our guide for installing OS X Mountain Lion with Unibeast. The myHack tool still works (Unibeast and myHack are very similar), but nevertheless, we will no longer be updating this guide.
Requirements:
- myHack (Free): myHack is a Mac app that modifies the official Mac OS X Mountain Lion installer, and writes the installer onto a USB drive.
- A compatible Hackintosh with Snow Leopard/Lion already installed: myHack is a Mac app, which means that you have to install Mac OS X Lion (or Snow Leopard) on your PC first. I know it's annoying.
- Mac OS X Mountain Lion: The method used by this guide requires that you have a copy of the Mountain Lion installation app. It's available from Apple's Developer Program, which has a membership fee of $99 a year. Of course, you could always download it from bittorrent, too. For the purposes of this guide, I'm going to assume that you have the Mountain Lion DMG file that is named "Mac OS X Install ESD".
- An empty USB drive (8 GB or larger): The USB drive used for the Mountain Lion installer must be at least 8 GB in size. myHack will erase all the files on your USB drive, so make sure to back up its contents first. You can reuse this USB drive for normal stuff after you finish installing Mountain Lion.
Before you can use myHack to write the Mac OS X Mountain Lion installer onto your USB drive, you have to format your USB drive with Apple's HFS+ format. Otherwise, myHack won't detect the USB drive. (This step is unnecessary if your USB drive is already in the HFS+ format.)
If you haven't already, plug in your USB drive to your Hackintosh. Open Disk Utility (located under Applications->Utility), select your USB drive from the left sidebar of Disk Utility, and open the "Erase" tab.
Select "Mac OS Extended (Journaled)" as the format, and type whatever you want into the "Name" section. Then click the "Erase" button to erase and reformat your USB drive.
2. Run myHack
Start the myHack app. It will ask you for your system password; enter your password. Next, it will ask you to choose your install type. Choose "Create OS X 10.8 Install Disk".
myHack will then ask you to select the target volume to run myHack on. Choose your USB drive from the myHack window (plug your USB drive into your computer if you haven't already). In the below screenshot, my USB drive is named "Cheese".
myHack will ask you for "the location of the installation source". Here, you need to give myHack your Mountain Lion DMG file. You can let myHack scan your system for the DMG file, but it will probably be a lot faster to find the file yourself, with the "Browse Manually" button.
Once it gets your DMG file, myHack will ask for permission to erase the contents of your USB drive. Click "Ok".
3. You're done. Install!
From here, the installation process is pretty much the same as the process for Mac OS X Lion. For this, refer to MacBreaker's Lion installation guide.

Obviously, you won't have to follow Steps 1-2 of the Lion guide, which are about running Unibeast. You've already made your own installer USB drive, with myHack! However, you'll still have to make sure that your computer and BIOS are set up (Step 3-4), and go through the normal installation and post-installation procedures (Steps 5-7).
You may also need to use the boot flag npci=0x3000 to boot the Mountain Lion USB drive (Step 6).
And that's all there is to it! Now you can check out the cool new features in Mountain Lion.
NOTE: Using Mac OS X Mountain Lion as your computer's main operating system is a bad idea. There are a lot of bugs and issues that haven't been fixed yet. Instead of installing Mountain Lion on top of your current Mac OS X installation, you should install Mountain Lion on a separate hard disk or hard disk partition. You can create hard disk partitions with Disk Utility (which is located in Applications->Utilities in your main hard drive).




Can I use an Mac with Lion Installed instead of an Hackintosh to use the Myhack program to make the bootable USB or do I have to install Lion on my computer before making it?
ReplyDeleteYes, you can use a real Mac. On Step 2, install the generic Extra folder with myHack. After myHack finishes running, open your USB drive and go to the Extra->Extensions. Inside the Extensions folder, delete the kexts that are in there and add the kexts from the "Mountain Lion kexts" zip file that I uploaded.
Deletei'm stuck after booting to USB at the Apple logo. what can I do?
ReplyDeleteYou'll want to update this guide, or link to the myHack guide, now that myHack 3 is out this is outdated and will confuse people. MBR modification is done on the fly by myHack now, and there is no need to create your own extension for creating the USB installer.
ReplyDeleteAnd why do you feel annoyed that it's a mac app? You can only get Lion or Mountain Lion from the app store anyway, kinda makes having a mac or hackintosh a pre requisite in general.
Additionally myHack now performs post installation procedures during OS X installation, it's extremely simple now.
Noted. I've updated the guide to reflect the updates in myHack 3.
DeleteWhen I try this with 10.7 I get stuck on PCI Configuration begin. I tried NCPI=0x2000 and 3000 and it doesn't work. I tried 10.6 and it just reboots. Help? I have an MSI GX740 235-US
ReplyDeleteinstallation not detecting my sata hard disk...
ReplyDeletein disk utility also not showing my hard disk....
So not able to install....
Please mail me solution....
jeyadreams@gmail.com
It did the same to me when I had the USB drive plugged into a USB 3.0 port... don't know how new your rig is, but try that.
DeleteI get to the screen where the installer should pop it but it never does. just stays a blank grey screen where i can move my mouse around.
ReplyDeletepop up*
DeleteSame here! Help please =]
DeleteI have the same problem!
DeleteThis way is excellent! No troubles! Lion running like a charm!
ReplyDeletehey my hack 3.1 isnt loading after copying installation packages to target volume. It finished installing but its still working for something. Shall i cancel
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteWorking perfect with W510 thinkpad, very good, only need to install now is bootloader to the hdd, I already had for Snow leaopard, but then I erased the partition for a clean ML install and now a cant boot from my grub menu, only USB boot is working for now.
ReplyDeletei had creat myhack installer disc using mac os x lion 10.7 dmg file. I boot my computer with install usb disc using npci=0x2000 after when i click on install it show ' the mac os x installation could'nt be completed' and opens installation log. My configuration is as follows
ReplyDeleteGa h61m ds2 f3
500 gb hdd
Nvidia 1gb
4gb ram
Intel i5
I have absolutely the same problem. Tried it on several different architectures
Deletecan myhack write image to an 'iso' like file. so that i can install it to VirtualBox rather than with real USB?
ReplyDeleteI have installed ML 10.8 on my HP Z400 with the help of myHack. Installation was successful but when I tried to boot from Hard Drive USB Keybaord/Mouse stop working. Z400 uses AHCI controller for USB. Any suggestion.
ReplyDeleteThis code worked for me:
ReplyDeletePCIRootUID=1 GraphicsEnabler=No ncpi=0x3000 -f -F -s -v
10.8
USB install using myHack
Once single user mode prompts for a command type exit then hit enter. You will be taken to the install screen.
Please Help me
ReplyDeleteI am trying to install mac os x mountain lion 10.8 in my HP Pavilion g6-2004tu.....
but when I boot menu comes up i select the usb drive to boot but then a grey screen occurs telling me to
"You need to restart your computer. Hold down Power button until it turns off, then press the power button again"
I don't know if anyone is seeing this tutorial, but I will try some help anyway... I've mounted myHack in my windows 8 through VirtualBox. I've used a Mac OS X Install ESD dmg file from version 10.8. Everything worked fine in the installation, except for the boot that doesn't happen =P. I've removed all devices and let just the removable device option, on bios. Even so nothing happens, just the message "reboot and select proper boot device". The usb device is detected by bios, but the content is not recognized as bootable.
ReplyDeleteWhat am I doing wrong?
Oh, my bad... It was my bios stupid problem. I have a asus g1s and I had to first set my usb in the sequence and then set my usb in the sequence of hd priorities... That is the tip for ASUS g1s hackintosh users.
Deletebye
BOOT sequence and HD priorities ...
Delete