从Mac App Store下载Install OS X Mavericks.app(5.33 GB)

  • 登录App Store,go to the Updates tab

  • Hold down the Option key,
    click Free Upgrade to start the OS X Mavericks download

  • 会被下载到如下位置

    /Applications/Install\ OS\ X\ Mavericks.app
    
  • 主要文件是InstallESD.dmg这个文件

    Install OS X Mavericks.app/contents/SharedSupport/InstallESD.dmg
    Size: 5304508254 bytes
    SHA-1: 3f30d55b05a407af963d242fc4e94cf641ecd68e (2014-04-13)
    

OS X Mavericks ISO镜像制作过程

  • Mount the installer image

    hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
    
  • Convert the boot image to a sparse bundle

    hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Mavericks
    
  • Increase the sparse bundle capacity to accommodate the packages

    hdiutil resize -size 8g /tmp/Mavericks.sparseimage
    
  • Mount the sparse bundle for package addition

    hdiutil attach /tmp/Mavericks.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
    
  • Remove Package link and replace with actual files

    rm /Volumes/install_build/System/Installation/Packages
    cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
    
  • Unmount the installer image

    hdiutil detach /Volumes/install_app
    
  • Unmount the sparse bundle

    hdiutil detach /Volumes/install_build
    
  • Resize the partition in the sparse bundle to remove any free space

    hdiutil resize -size `hdiutil resize -limits /tmp/Mavericks.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Mavericks.sparseimage
    
  • Convert the sparse bundle to ISO/CD master

    hdiutil convert /tmp/Mavericks.sparseimage -format UDTO -o /tmp/Mavericks
    
  • Remove the sparse bundle

    rm /tmp/Mavericks.sparseimage
    
  • Rename the ISO and move it to the desktop

    mv /tmp/Mavericks.cdr ~/Desktop/Mavericks.iso
    
  • Mavericks.iso文件的MD5值和SHA-1值

    Filename          : Mavericks.iso
    MD5               : 71142ee3dafda2684410677323ef72f8
    SHA1              : 3c344bf41adb3a26f6eb8e39b5e8de4daee548f1
    CRC32             : a08f02a7
    Created Time      : 4/13/2014 10:15:49 PM
    File Size         : 6,065,164,288
    

OS X Mavericks 安装优盘制作过程

  • plug in your USB flash drive

  • Open Disk Utility

  • Look for your flash drive’s name on the left panel and select it

  • Go to the Erase tab

  • Select “Mac OS Extended (Journaled)” for Format

  • Keep the default name of “Untitled”

  • Hit Erase button

  • From Terminal, run the following command and wait about 20 minutes
    (replace Untitled with the name you used):

    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
    

    You should see something like this:

    Erasing Disk: 0%... 10%... 20%... 100%...
    Copying installer files to disk...
    Copy complete.
    Making disk bootable...
    Copying boot files...
    Copy complete.
    Done.
    
  • You can then boot up from the USB by holding down the option key

Reference