Jump to content
InsanelyMac Forum
tseug

[GUIDE] A fast and easy way to install Lion

Recommended Posts

Advertisement
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 further

IF you include the /S/L/E from BaseSystem in ESD then you can also make BOOTABLE DVD!!

 

Now to try THAT out.

 

Hi STLVNUB,

Im trying this right now

what I dont know is what format I should use to burn it.

The Image I made is Guid and im not sure if that will work that way.

Im not sure if Chameleon needs to see Guid or if we have to use mkboot instead.

Toast gave me the message: cant access .file.

Im here since the early days of this forum,

but things have changed a lot and Im not up to date at all as well as out of practice =)

 

Thanks

LeMoN

Share this post


Link to post
Share on other sites

I've managed to install lion, but can't really finish the process... when i try to do /finalize script terminal gives me back this error:

 

GetMasterBlock: Error 13 opening /dev/rdisk2s2

mount_hfs: Operation not permitted

 

any clues? ty

 

Edit:I'm sooooo ashamed that i fall to a newbie mistake! you can add sudo command before "./finalize" in part for beginers ;)

all worked well after using sudo ;)

ty for awsome work Tseug

Share this post


Link to post
Share on other sites
I always get this error:

 

Attaching OS X Lion...

hdiutil: attach failed - no such file or directory

 

for everyone getting this error, you likely dont have InstallESD.dmg in your Lion image. comment out that line from the script and in your install folder, create a symlink called lioninst to whereever BaseSystem.dmg is

Share this post


Link to post
Share on other sites

Hi everyone,

 

i managed to install Lion on my notebook easily with this script, THANKS to the developer. I will try and fiddle a little bit with my own kexts and stuff added to the installer ;) Thanks again,

 

Cheers

Share this post


Link to post
Share on other sites

Worked like a charm on my Hack. Great job! Only had to remove the -v boot option from the com.apple.boot.plist because it really slowed down the boot process.

Share this post


Link to post
Share on other sites
As Lion is coming out comparatively soon I thought it was about time to make an install method that was easy to use and fairly fast.

 

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 :) ).

 

Note: only compatible with GM edition

 

The recipe:

 

Ingredients

 

OS X Lion install app

 

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

 

....

 

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

 

Hm, I ran your script to put the GM Lion Installation Disk on a spare partition (shoul be as good as a USB stick). When I boot from this partition by chosing it in Chameleon, It loads the kexts, i think it discovers some hardware and w/o any "comment" it reboots. /var/log/kernel.log is empty.

Any ideas? it is too fast to make a photo...

Hardware see Sig (the gigabyte of course...)

 

EDIT: stupid, it booted the old Chameleon. After replacing with r1007 what I now get is the message that my ATI somewhat is not found, and it starts reading the VBIOS. Well, after a few seconds the screen looks funny, and that's it. Looks as if my grapfics card is not liked. What can I do here?

 

Thanks

Joey

Share this post


Link to post
Share on other sites

tseug, your tutorial successfully worked for me (you can find my hardware specs into the sig line) :censored2: thank you :P

I have some power management problems: _CST, etc., power related logs into my kernel.log..., e. g. CPU power management is off -- will post later the log for investigation.

Share this post


Link to post
Share on other sites
As Lion is coming out comparatively soon I thought it was about time to make an install method that was easy to use and fairly fast.

 

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 :) ).

 

Note: only compatible with GM edition

 

The recipe:

 

Ingredients

 

OS X Lion install app

 

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 Lion. Let's call it Lion

 

A DSDT.aml (optional)

 

v0.7:

 

Directions

 

  1. 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..."
  2. 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.
  3. In Terminal:
    sudo install/mkboot Install\ Mac\ OS\ X\ Lion.app /Volumes/USB\ Boot/


    This should take ~15 minutes.

  4. Boot your USB device and install Lion on /Volumes/Lion as you normally would.
  5. Wait for the installation to finish. When your machine reboots in the end, boot onto the USB device again.
  6. Open up a terminal via the Utilities menu:
    ./finalize /Volumes/Lion
    reboot


  7. 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 DMG, 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:

 

  1. 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.
  2. Open a terminal. Write sudo and drag and drop the mkboot file into the terminal. Make sure there is a space between sudo and the mkboot path. Then do the same with the Lion install app and finish off the line with /Volumes/USB\ Boot Again, make sure that the different command line elements are delimited by spaces.

 

Troubleshoting

 

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

 

Is your Graphics card mentioned in http://www.insanelymac.com/forum/index.php?showtopic=256103 ?

 

Error reporting

 

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

 

Report your hardware including motherboard and graphics card. Report whether the graphics card is reported as working in the thread mentioned above.

 

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?

 

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 :)

 

 

Thank You soooooo much :) i was almost goin to give up with this....phewww THANK YOU AGAIN... its so simple neat and PERFECT :) you the best!

Share this post


Link to post
Share on other sites

Thanks a lot, Works perfect on Gigabyte GA-EP45-UD3R motherboard with NVidia 8800GT 512MB card.

Everything works, network, Audio, QE+CI.

 

EDIT: Requires OpehHaltRestart.kext, otherwise machine does not power down.

Share this post


Link to post
Share on other sites
for everyone getting this error, you likely dont have InstallESD.dmg in your Lion image. comment out that line from the script and in your install folder, create a symlink called lioninst to whereever BaseSystem.dmg is

 

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory"

 

I don't really understand what I am doing wrong, and apologies TK but I don't know how to make a symlink.

 

I copied my GM files to the desktop, and have tried a bunch of attempts but I always get the same error. I do not have the DP4 installer files, just the GM ( copied all the files from the GM . dmg to my desktop)

 

Any advice?

Share this post


Link to post
Share on other sites

Installed Lion GM using your guide. Thanks.

 

Had to replace AppleACPIPlatform.kext and IOPCIFamily.kext from Snow Leopard for the USB installer to boot. Also, had to replace IO80211Family.kext from Snow Leopard for the Dell Wireless 1505 to work. VoodooHDA works for Audio.

post-490232-1309887201_thumb.png

Share this post


Link to post
Share on other sites

I got the same problem as seanmcgpa.

 

Help please!

 

------

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory

------

Share this post


Link to post
Share on other sites
I got the same problem as seanmcgpa.

 

Help please!

 

------

I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory

------

guys, your answers has been answered previously in this post ;)

Share this post


Link to post
Share on other sites
I too am always getting the error "Attaching OS X Lion...

hdiutil: attach failed - no such file or directory"

 

I don't really understand what I am doing wrong, and apologies TK but I don't know how to make a symlink.

 

I copied my GM files to the desktop, and have tried a bunch of attempts but I always get the same error. I do not have the DP4 installer files, just the GM ( copied all the files from the GM . dmg to my desktop)

 

Any advice?

 

I had the exact problem. I think you have a bootable DMG version rather than the LION install APP with the embedded DMG. If it is so you need to just copy the install app out of the dmg and put both app and dmg in the desktop and also edit the install script to mount the external dmg. By default the script looks for the dmg inside the app. If you have no success let me know, I will dig out the modified install script that I use

Share this post


Link to post
Share on other sites
guys, your answers has been answered previously in this post :)

 

No it has not been.

 

-There has been an explaination on how to drag files to terminal to get the correct path.

-There have been vague hints on where the files should be stored

-Then there was someone who posted:

"for everyone getting this error, you likely dont have InstallESD.dmg in your Lion image. comment out that line from the script and in your install folder, create a symlink called lioninst to whereever BaseSystem.dmg is "

 

which doesn´t make any sense cause installESD.dmg IS the lion image which contains BaseSystem.dmg as hidden file.

 

There hasn´t been a description how to edit the script "mkboot" to make things work. (BaseTarget or InAPPDMG).

 

So i have installESD.dmg on my desktop. Next to it i have the install folder with the script files.

I have a USBStick formated as "USB Boot".

 

i open up terminal and drag the mkboot the lion install ap (which i copied out of the InstallESD.dmg before umounting the DMG) and then the usb into terminal.

 

And get the exact same error message.So which part of mkboot do i have to edit HOW to make it work? I guess inAppDMG but entering the correct path to installESD.dmg results in the same error.

Share this post


Link to post
Share on other sites

@tseug

 

Thx for Your work & help with installing Lion.

 

I have GA-P35-DS4 mobo with Q6600@3.2, 8G RAM, GS8400, 1xDVD-RW, 1x Bluray RO, BIOS F14

 

I was able to install GM via Your method (but with chameleon r1096 + NullCPUPowerManagement).

System boots OK without dsdt.aml (no QE/CI,snd,sleep obviously)

I auto-generate dsdt.aml with latest dsdt-auto-patcher.

Unfortunately with auto-generated dsdt.aml I'm getting KP (early stage, no references to any kext).

Strange as this mobo is well supported....

I also tried with my 10.6.8 fully working dsdt.aml. Also KP.

 

FYI I'm attaching auto-generated dsdt.aml - maybe You have clue what is wrong here ?

 

Thx in advance !

 

dsdt.aml.zip

Share this post


Link to post
Share on other sites
@tseug

 

Thx for Your work & help with installing Lion.

 

I have GA-P35-DS4 mobo with Q6600@3.2, 8G RAM, GS8400, 1xDVD-RW, 1x Bluray RO, BIOS F14

 

I was able to install GM via Your method (but with chameleon r1096 + NullCPUPowerManagement).

System boots OK without dsdt.aml (no QE/CI,snd,sleep obviously)

I auto-generate dsdt.aml with latest dsdt-auto-patcher.

Unfortunately with auto-generated dsdt.aml I'm getting KP (early stage, no references to any kext).

Strange as this mobo is well supported....

I also tried with my 10.6.8 fully working dsdt.aml. Also KP.

 

FYI I'm attaching auto-generated dsdt.aml - maybe You have clue what is wrong here ?

 

Thx in advance !

 

dsdt.aml.zip

 

If you have a GA-P35-DS4 don't use DSDT Auto-Patcher. Don't add a DSDT to the USB boot. It will autogenerate it for you, install a Chameleon version that works etc.

 

In other words, follow the guide: "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. "

Share this post


Link to post
Share on other sites
If you have a GA-P35-DS4 don't use DSDT Auto-Patcher. Don't add a DSDT to the USB boot. It will autogenerate it for you, install a Chameleon version that works etc.

 

Thx for quick replay !

I do install in exact such way (without adding custom dsdt.aml in boot USB).

It was successful install (but after install process there wasn't dsdt autogenerated by install process).

My issue is related to boot installed Lion - I can boot it only when there is no dsdt.aml.

As there is no dsdt - sys is without QE/CI, snd, sleep.

 

Any attempt to use any version of dsdt (from my working 10.6.8 SL or fresh autogenerated) causes KP.

 

I'm wonder where issue might be ?

 

I'm on BIOS F14 (latest & well known to users of GA-P35-DS4).

My BIOS settings are OK as I have 100% functional SL 10.6.8.

 

Only area where I see potential issue is dsdt file content.

I included autogenerated dsdt - maybe somebody better than me in dsdt specifics can find root cause of issue....

 

thx again for trying help !

Share this post


Link to post
Share on other sites
Thx for quick replay !

I do install in exact such way (without adding custom dsdt.aml in boot USB).

It was successful install (but after install process there wasn't dsdt autogenerated by install process).

My issue is related to boot installed Lion - I can boot it only when there is no dsdt.aml.

As there is no dsdt - sys is without QE/CI, snd, sleep.

 

Any attempt to use any version of dsdt (from my working 10.6.8 SL or fresh autogenerated) causes KP.

 

I'm wonder where issue might be ?

 

Could you paste (or take a screenshot of) the output of ./finalize please (step 6)?

Share this post


Link to post
Share on other sites
Could you paste (or take a screenshot of) the output of ./finalize please (step 6)?

 

Sorry for delay.

For purpose of this debugging I do clean install.

Only things changed in Your scripts are:

-changed paths in install script as as input I'm using InstallESD.dmg

-upgraded chameleon to 1096

-added NullCPUPowerManagement by "finalize" script to installed system (without it I have KP)

 

I formatted target partition with GUI scheme, boot USB stick, do Lion Install, fired ./finalize.

After rebooting to just installed Lion partition I'm receiving KP (jpg attached).

 

For Your convenience I'm attaching:

-packed Extra content

-output of ./finalize

-packet dsdt generation intermediate files

-JPG with KP

 

 

I'm really glad You want to help me and I'll be happy to help You with debugging this issue.

 

Extra.zip

dsdt_generation.zip

finalize.txt.zip

KP_jpg.zip

Share this post


Link to post
Share on other sites

Thanks for the files.

 

-upgraded chameleon to 1096

 

Why? What happens if you use the bundled Chameleon version?

 

For Your convenience I'm attaching:

-packed Extra content

-output of ./finalize

-packet dsdt generation intermediate files

-JPG with KP

 

I have almost the same hardware as you. Same MB, same BIOS, same CPU. My Graphics card is an 8800 GT but thats about it when it comes to differences.

 

The DSDT generated here and the one your system are exactly the same.

 

Two differences: My CPU is not overclocked and I don't have any modules in /Extra. I'm assuming the modules are from your Chameleon install. Why did you install them?

 

Assuming you get the same behavior with the bundled Chameleon I would suggest that you try booting without overclocking. Other than that I'm out of ideas.

Share this post


Link to post
Share on other sites

Worked Great on my GA-EP45-UD3L. Had to add a few extra kexts for audio and also to get rid of orange icons and sis3132 raid adapter but very easy to do!

 

Thanks!

 

Kevin

Share this post


Link to post
Share on other sites
I've added a dmg version of the script to the guide at the bottom.

 

Thanks !

 

Worked flawless out-of-the-box

 

HW:

P35-DS4 Rev 1.0 (Bios F14)

E8400

GTX 285

4GB DDR2

 

SW:

Aperture

Paragon NTFS 9

iLife 11

Final Cut X

MS Office 2011

 

 

Not a single problem so far

Share this post


Link to post
Share on other sites

I'm really glad I found and used this guide. Worked (almost) perfectly.

 

Everything went well and Lion booted. Yayy. But no sound. I have an older GigaByte mobo (GA-G31M-ES2L rev. 1) which has worked with just about every Leopard & SL. Usually I would have to fix sound as a last step (HDA rollback). What I did here was to take my SL kext "LegacyALC883.kext" and put it in /Extra/Extensions/ on Lion. (The only other kext in there is "FakeSMC.kext")

 

That did it! A Restart and sound was working!!!!

 

Thanks a ton for showing us how easy this can be.

 

 

GA-G31M-ES2L rev. 1

E7400

GTS 250

4GB DDR2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.



×