[GUIDE] Creating a **good** Mountain Lion USB

Discussion in 'OS X Mountain Lion (10.8)' started by ScottishDuck, Jul 9, 2012.

  1. ScottishDuck, Jul 9, 2012
    Last edited: Jul 10, 2012

    macrumors 6502a

    ScottishDuck

    Joined:
    Feb 17, 2010
    Location:
    Argyll, Scotland
    #1
    This method allows you to create a USB that allows for quick installation and clean installs.

    This method will provide you with the "classic" OSX installer, with disk utility and whatnot available before starting the install. The installation will be a LOT faster.

    *Download the installer from the app store.

    *Right-click installer -> "Show Package Contents"

    [​IMG]

    *Contents -> Shared Support -> InstallESD.dmg (open it/mount it)

    [​IMG]

    *Open the terminal and copy this command:

    [​IMG]

    *Now open Diskutility and "restore" BaseSystem.dmg to your USB drive.

    ***PLEASE NOTE THIS REQUIRES YOUR USB HAS A GUID PARTITION TABLE***

    [Changing partition table to GUID]
    [​IMG]

    [​IMG]

    [Restoring the DMG]
    [​IMG]

    *Now open your newly restored USB drive

    [​IMG]

    *System -> Installation

    [​IMG]

    *Delete the link called "Packages" and then create a new folder with the same name

    [​IMG]

    [​IMG]

    *Open the terminal again and copy this to it:

    [​IMG]

    *Copy everything in this folder to the "Packages" folder you created on your USB.

    [​IMG]

    [​IMG]

    **Note this stage might take a while**

    [​IMG]

    Hurray you now have a working installer!

    [I'd appreciate a sticky if possible ;)]
     
  2. macrumors 6502a

    Joined:
    Jan 31, 2003
    #2
  3. macrumors 68000

    Joined:
    Jun 2, 2006
    #3
    i found this guide is too many works while the casual guide is just simply restore the installESD to a flash disk.

    care to explain?
     
  4. macrumors 6502a

    Joined:
    Jan 31, 2003
    #4
    The guide I posted worked fine for me, and less steps. Not sure why there's so many steps in the OP's post.
     
  5. macrumors newbie

    Joined:
    Jul 9, 2012
    Location:
    Australia
    #5
    I think the emphasis might be on the **good**.

    I found that if I were to only restore the InstallESD.dmg to a USB, it would actually seem to download most of the OS during install after the initial part - a few other people said the same.

    I am hoping that this method actually ensures the packages are copied from the USB drive - which of course would make for a faster install.

    Am trying it out now to confirm this - will post back if I don't notice a difference.
     
  6. macrumors newbie

    Joined:
    Jul 9, 2012
    Location:
    Australia
    #6
    Well, its a little un-scientific as this method is the only one I tried on the GM - but it installed much quicker than the half dozen other installs I have done with DP's and the USB drive did not stop flashing the whole time.

    Total time to install would have been 20 minutes (on an MBP 8,1 with non-apple SSD).

    Previously installs would take anywhere up to an hour for me. Though I did repartition/align my SSD this time too..
     
  7. thread starter macrumors 6502a

    ScottishDuck

    Joined:
    Feb 17, 2010
    Location:
    Argyll, Scotland
    #7
    I'll try and explain how InstallESD.dmg does its thing:

    *It will boot and ask for a drive to install on
    *It will copy BaseSystem.dmg (what I use) to your drive and have your mac boot into that after the restart.
    *It will then launch the installer my USB uses and install to your drive with that
    *Finally it removes the BaseSystem.dmg from your drive and reboots

    Also, as you state, if you look at the installer log it needlessly accesses the network (which I assume may allow it to patch in security updates?) and wastes time looking for packages which either don't exist or are already on the USB.

    By doing things my way it removes a chunk of time from the install (copying Basesystem.dmg to your HDD and rebooting).

    This is a much cleaner way of doing things.
     
  8. macrumors member

    Joined:
    Oct 25, 2010
    #8
    I'm waiting on my first Mac to ship, and if it ships with Lion (likely), I will want to perform a clean install to ML. I haven't used OSX since 2001, so it will take me some playing around to get the hang of terminal and the os as a whole.
    So, this guide, while I'm sure I can do it with a bit of patience, looks a bit advanced for me.

    Will there be a utility released when ML reaches the app store that will do all of this for me? (with it as 'clean' as this guide would make it)
     
  9. macrumors 68000

    Joined:
    Dec 8, 2009
    Location:
    Sydney, Australia
    #9
    Exactly, this is how i made my Bootable usb stick for Lion aswell, much faster when it come to actually installing off it as ALL the data is on the USB not just a chunk of it.
     
  10. macrumors member

    Joined:
    Jun 30, 2012
    #10
    Can someone explain how to make a bootable DVD? Would be great! Because I have just 4GB sticks :(
     
  11. thread starter macrumors 6502a

    ScottishDuck

    Joined:
    Feb 17, 2010
    Location:
    Argyll, Scotland
    #11
    Basically you need to do this process but inside a disk image and then burn that disk image to DVD.

    I'll make a guide later.
     
  12. macrumors regular

    Joined:
    Sep 24, 2010
    #12
    can't find...?

    I downloaded GM, opened the dmg file, go to app>"view package contents", see some folders and files but can't find "Shared suport" folder or installESD.dmg file.
     
  13. Guest

    Joined:
    Aug 28, 2009
    #13
    hey, i tried using lion diskmaker, but it failed w/ "can't get real path for source"

    this guide here does it the same way, only via the terminal, but copies some additional files:
    https://sites.google.com/site/nozyczek/home/hackintosh/how-to-create-lion-usb-stick-installer

    what's your take on that?
    and you might wanna re-host those images on ompldr.org :)
     
  14. macrumors member

    Joined:
    Jun 18, 2011
    #14

    its not a dmg file from the dev site its an app, so I am not surprised you are having trouble :eek:
     
  15. macrumors 68000

    Joined:
    Dec 8, 2009
    Location:
    Sydney, Australia
    #15
    The dmg file you "downloaded off the app store" is the installESD.dmg file lol.
     
  16. macrumors member

    Joined:
    Sep 16, 2007
    Location:
    New York, NY
    #16
    Is it the same process for an SD card?
     
  17. macrumors newbie

    Joined:
    Jul 29, 2011
    #17
    Or just use the restore feature in disk utility. Two steps and done.
     
  18. macrumors 65816

    Simplicated

    Joined:
    Sep 20, 2008
    Location:
    Waterloo, ON
    #18
    Did you even bother to read...? Here, I'll quote it for you.


     
  19. Guest

    Joined:
    Aug 28, 2009
    #19
    hmm, just did everything you mentioned, deleted and recreated my 1 (visible) partition on my ssd.
    the installer didn't create a recovery partition :( i restored my data w/ the migration assistant, but i don't think that could've triggered it, since that happens at the very end of the installation.
     
  20. macrumors 68040

    xgman

    Joined:
    Aug 6, 2007
    #20
    So how do you make the bootable usb drive with the "app"?
     
  21. macrumors newbie

    Joined:
    Jul 29, 2011
    #21
    I did indeed. Using restore took one minute of actual work time. The rest was just time copying. *yawn*

    The actual install process took about two minute of actual work time. Walked away, made some breakfast, and it was done when I got back in my office.

    To each his own. Restore process is painfully simple and works fine.
     
  22. macrumors member

    Joined:
    Jun 20, 2012
    Location:
    Chicago
    #22
    Forgive me for asking, but can either of you break down your "faster" method step by step even further for a mac noob like me? Would really appreciate it. :)
     
  23. macrumors 6502

    jnl1211

    Joined:
    Jan 29, 2011
    Location:
    NWIndiana
    #23
    Wow. Way more complicated and useless than just mounting InstallESD.dmg


    It's just as **good**

    ----------

    haha, that's because he didn't get it from there. He's running a dmg that was a torrent someone uploaded
     
  24. macrumors 6502a

    ppnkg

    Joined:
    Jul 29, 2005
    Location:
    UK
    #24
    May I actually thank the OP for taking the time to post a detailed guide here for those looking for such a guide?

    So: thank you ScottishDuck, and I hope you'll be able to post a guide for creating a DVD too
     
  25. macrumors 68000

    Joined:
    Dec 8, 2009
    Location:
    Sydney, Australia
    #25
    That is correct this process does not create that useless recovery partition. You don't need it with your new 10.8 usb bootdisk :)
     

Share This Page