Cactuar.net

New Method for Creating a Lion/Mountain Lion USB stick

by on Jun.25, 2012, under Uncategorized

Recently I have tried to do a fresh install of Lion on my Macbook Pro,
When trying to restore InstallESD.dmg to the USB drive as I did the first time, I got an error in Disk Util which stated “Invalid Argument” at the end of the restore process.

After doing some searching I found that something has changed in a recent version of the InstallESD provided with the latest Mac OSX Installer, which prevents you from successfully restoring it to a usb drive. but I’ve found a way to do it anyway

To do this, simply format your disk with Disk Util with a single Mac Formatted partition, with the GUID Partition map type. name it something like “Lion USB Install”

Double-click your InstallESD.dmg file so it mounts, then open up a terminal and type

# sudo rsync -avlrHt “/Volumes/Mac OS X Install ESD/” “/Volumes/Lion USB Install”

This will copy all of the files required for the OSX installer to your USB drive, once that’s done run

# sudo bless --folder “/Volumes/Lion USB Install/System/Library/CoreServices” --bootefi

You should now be able to use the USB key to run the Lion installer

Thanks to Morten, who has confirmed that this same method works with Mountain Lion too.

 


2 Comments for this entry

  • Morten

    Hi, thanks for the advice!

    I can confirm that this method works with the retail version of Mountain Lion. One small difference though. The method you described copied everything to a “Mac OS X Install ESD” folder on the USB drive (not to the root). I copied the contents from the folder to the root and ran the bless command and now it works.

  • LIV2

    Hey Morten,

    Thanks for letting me know, it looks like the issue was caused by me missing the / at the end of the “/Volumes/Mac OS X Install ESD”
    I’ve updated the post to reflect that, thanks for letting me know that it works with mountain lion too!

    Cheers.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!