Jump to content

[GUIDE] A fast and easy way to install Mountain Lion


  • Please log in to reply
200 replies to this topic

#1
tseug

tseug

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 407 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.

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

Clean install


Prerequisites

A USB drive (8 GB) or a spare partition. We'll assume you'll use a USB device here

An install partition for OS X Mountain Lion. Let's call it MountainLion

A DSDT.aml (optional)

v2.1: install.zip

Directions
  • Buy and download Mac OS X Mountain Lion from the App Store.


  • In Disk Utility, format the USB as Mac OS X Extended (Journaled) and give it some name: We'll use 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/. 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. The method used by default is for ALC889A sound and requires a specific ID (layout ID 12) in your DSDT to work. There are more details in 'ALC885HDA_Lion_MLion_V1.00/Readme First.txt' included in install.zip and also available here


  • In Terminal:
    sudo install/mkboot /Volumes/Boot/


  • Boot your USB device and install Mountain Lion on /Volumes/MountainLion 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/MountainLion
    reboot


  • The USB device can now be ejected and OS X can be booted from the hard drive.


  • Once you've gone through creating or migrating accounts, open System Preferences -> Energy Saver and check the box by "Start up automatically after a power failure"


  • All done.
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 Mountain 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 links to the sources of the included software.

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.zip 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.

Known Issues

A shutdown can in some situations cause OS X to warn that it has recovered from an error on the next boot. Apart from the warning this doesn't seem to causing any problems.

Troubleshooting

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

Error reporting

If you have problems please follow these guidelines when posting in this thread:

Report your hardware including motherboard and graphics card. Check whether the graphics card is reported as working in Mountain Lion by others.

Report whether you have made any modifications to the install package.

Report exactly when the error happens. On running the script? If so, which one? On booting the USB device? On booting the hard drive?

Report what you've already tried that didn't work.

Screenshots of the error are always helpful.

Following this helps me to pin down the error. It also helps you because you will most likely not get an answer otherwise ;)

Edited by tseug, 01 August 2012 - 09:55 AM.


#2
dolan

dolan

    InsanelyMac Protégé

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Location:London
I have Snow Leopard installed, does this method remove everything I have and start a new? Or can it upgrade Snow Leopard?

#3
tokra128

tokra128

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 291 posts
  • Gender:Male
THANKS !!!1

#4
tseug

tseug

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 407 posts
  • Gender:Male

I have Snow Leopard installed, does this method remove everything I have and start a new? Or can it upgrade Snow Leopard?


This is a clean install, but normally it's better to use migration assistent to copy your users and start from there. I haven't tested it from Snow Leopard, so I don't know if it will work. You'd also need to tweak your script and probably your DSDT to get audio to work.

#5
FavleX

FavleX

    FavleX

  • Members
  • PipPipPipPipPipPipPip
  • 727 posts
@Tseug - Thanks for your work -

Just tried few times.
The installation process's gone as expected; later I modified my org.Boot.list acordingly with the same one working in LIon 10.7.4
If I leave the arch=i386 and pmVersion=21 kernel flags inserted the system doesn't load at all; if I delete those lines the system load and remains stuck at the IOHCIControlle of bluetooth something....
Any suggestion?

#6
rockinron_1

rockinron_1

    InsanelyMac Sage

  • FAQ Team
  • 394 posts
  • Gender:Male
  • Location:UK
Note that the "arch=i386" flag tells the kernel to boot in legacy 32-bit mode and mountain lion is 64-bit only.

Remove the pmVersion flag and ensure you don't have sleepenabler installed (delete it if you do).


Now whatever problem you are getting on boot will be related to the 64-bit boot and you'll have to research how to fix it / post a screenshot to the forum for someone to help you.


arch=i386 was a nice bodge for those with only 32-bit support for some hardware but that fix won't work for you anymore.

Also judging by your post turning off bluetooth in BIOS could be a good place to start.



#7
nathandw

nathandw

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Location:Munich / Germany
I'm getting this screen when I boot after installation. When I boot in safe modes (-x) it's starting, but without it just won't.
What am I doing wrong?

GA-P35-DS4, Q6600, NVidia GT 520, 8GB RAM

Thanx!

http://up.picr.de/11339376tn.jpg

#8
Mendiaco

Mendiaco

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts
Try to remove appleHDA.kext.
I think you have problems with your sound card.

#9
gnomme

gnomme

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
I had downloaded Install OS X Mountain Lion.dmg file and now were do I put the files of this image in my disk so that the install/mkboot script could grab it?

Thanks in advance

#10
FavleX

FavleX

    FavleX

  • Members
  • PipPipPipPipPipPipPip
  • 727 posts

I had downloaded Install OS X Mountain Lion.dmg file and now were do I put the files of this image in my disk so that the install/mkboot script could grab it?

Thanks in advance

The steps are the same on the previous Tseug Guide for Mountain, you can follow them here
Be sure to have copied the Install Mountain Lion.app in your /applications folder.Later, launch the install/mkboot script from inside the install folder previously created.
That's it.

:smoke:

#11
herbalb

herbalb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 93 posts
I have a small (I hope) problem with the installation. The USB stick boots fine but then suddenly the screen goes black and nothing happens.
I'm using a Nvidia GTX 260 - could there be a problem with this card and the installer?
Previous Installations using Tseug's guides always went fine.
Any idea?

#12
tseug

tseug

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 407 posts
  • Gender:Male

I have a small (I hope) problem with the installation. The USB stick boots fine but then suddenly the screen goes black and nothing happens.
I'm using a Nvidia GTX 260 - could there be a problem with this card and the installer?
Previous Installations using Tseug's guides always went fine.
Any idea?


Try setting GraphicsEnabler to Yes in /Volumes/Mac OS X Base System/Extra/org.chameleon.Boot.plist

Let me know if it works and I will change the installer (I probably will anyway. It was actually a mistake on my part)

#13
herbalb

herbalb

    InsanelyMac Protégé

  • Members
  • PipPip
  • 93 posts
Thanks for the reply.
Unfortunately it did not solve the problem. :(
Strange.

UPDATE:
I also added PciRoot = 1 and now I get the installer screen. Never had to do this before but it works. :)

#14
nathandw

nathandw

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Location:Munich / Germany
What I just realized, for me, there isn't any message from FakeSMC.kext showing up on boot, like it was in SnowLeopard. I'll try a different FakeSMC next...

#15
gnomme

gnomme

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
Finaly I had installed Mountain Lion!!! But now I have no iCloud!!

When I login to my icloud accout I get this message: "This Apple ID is valid but not an iCloud account"

Anyone knows how to fix this?

Thanks

#16
build

build

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 145 posts
How are you all purchasing Mountain Lion? I have gone through the app store and It's telling me its not compatible with this computer (the one in the sig) Are you using a genuine Mac?

#17
nathandw

nathandw

    InsanelyMac Protégé

  • Members
  • Pip
  • 45 posts
  • Location:Munich / Germany

"What I just realized, for me, there isn't any message from FakeSMC.kext showing up on boot, like it was in SnowLeopard. I'll try a different FakeSMC next..."


Some other version from another ML install package (dunno which) is giving me status report, but still no boot after install.


I started all over - it's working on tseug's DS4, so why shouldn't it on mine - and recognized, that the ruby framework isn't doing its job in finalize script. I compiled a DSDT.aml on my own and now the sound assertion errors are gone. Still no boot.


Something which gives me to think: the new install isn't caching the kexts, even if I boot with '-f'...


What else could I try?


GA35-DS4 BIOS F14, Q6600, 8GB RAM, NVIDIA GT520, Snow Leo working perfectly!

#18
tseug

tseug

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 407 posts
  • Gender:Male
v2.1 released 2012-07-31
* Removed special org.chameleon.Boot.plist for installer boot

Guide updated: edited error reporting section. Please read!

Some other version from another ML install package (dunno which) is giving me status report, but still no boot after install.

I started all over - it's working on tseug's DS4, so why shouldn't it on mine - and recognized, that the ruby framework isn't doing its job in finalize script. I compiled a DSDT.aml on my own and now the sound assertion errors are gone. Still no boot.

Something which gives me to think: the new install isn't caching the kexts, even if I boot with '-f'...

What else could I try?

GA35-DS4 BIOS F14, Q6600, 8GB RAM, NVIDIA GT520, Snow Leo working perfectly!


I haven't tested install from Snow Leopard - only Lion. Unfortunately, I don't have access to a SL install and VMWare Fusion won't play nice. As you say, one can use patcher.rb directly in Snow Leopard and put the resulting DSDT.aml in install/Extra. That should sidestep the need for Ruby on the install USB. Did you use the included patcher or did you create one on your own?

Try the new installer and check out herbalb's post.

How are you all purchasing Mountain Lion? I have gone through the app store and It's telling me its not compatible with this computer (the one in the sig) Are you using a genuine Mac?


Works here. Maybe your smbios is reporting a unsupported product. Try the smbios.plist included in the install package.



Finaly I had installed Mountain Lion!!! But now I have no iCloud!!

When I login to my icloud accout I get this message: "This Apple ID is valid but not an iCloud account"

Anyone knows how to fix this?

Thanks


I've heard two things that been reported as having a difference in iCloud. One was to set EthernetBuiltIn to Yes in org.chameleon.Boot.plist. The other was to create/generate a new serial and put it in the smbios.plist. The serial format and serial generators can be googled.

#19
FavleX

FavleX

    FavleX

  • Members
  • PipPipPipPipPipPipPip
  • 727 posts
Almost dead..

Tried with different org.Boot.plist, the one working under Lion and others, but I no succeded on going over this screenshot..no idea at all.
When used arch=i386 the boot process doesn't start at all, I return at the boot screen only.

Posted Image

#20
tseug

tseug

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 407 posts
  • Gender:Male

Almost dead..

Tried with different org.Boot.plist, the one working under Lion and others, but I no succeded on going over this screenshot..no idea at all.
When used arch=i386 the boot process doesn't start at all, I return at the boot screen only.

Posted Image


There is no 32-bit kernel in Mountain Lion. Since you relied on this to install on Lion, you might be out of luck with your current graphics card.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy