A salad of blogs, tutorials and thoughts of game engines, games, c++ and all sorts of related stuff

Sunday 27 July 2014

How to convert Yosemite.app to iso or dmg

02:50 Posted by LoudParrottLab 6 comments
Just a quick note!

If your Redemption Code for Yosemite download is used or invalid you can go to this website
https://appleseed.apple.com/sp/betaprogram/guide

And on the bottom request a new one. Then from your developer account you can download the OS X which will open you App Store App. If the code is invalid use the code that you have just requested from the above link.

After your download stop the install, close the window and the package will be in your /Applictations folder that you have to copy to somewhere else as after installation the package will be deleted and will use it to convert it to an ISO image so that we can install it using Parallels


So today I was trying to install into my Parallels the new Yosemite OS x 10.10

I have found a nice script and the original is here
http://forums.appleinsider.com/t/159955/howto-create-bootable-mavericks-iso
I have reedited this for Yosemite

# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ Yosemite.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/Yosemite

# Increase the sparse bundle capacity to accommodate the packages
hdiutil resize -size 8g /tmp/Yosemite.sparseimage

# Mount the sparse bundle for package addition
hdiutil attach /tmp/Yosemite.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/Yosemite.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/Yosemite.sparseimage

# Convert the sparse bundle to ISO/CD master
hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite

# Remove the sparse bundle
rm /tmp/Yosemite.sparseimage

# Rename the ISO and move it to the desktop
mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.iso

6 comments:

Unknown said...

Thanks a lot! :)

Unknown said...

It just works beautifully. Thanks!

Unknown said...

Thank-you for your service to the Computer World... You have indeed left your mark ;)

Unknown said...

Havent tried the iso yet, but this created an iso for me. :) Thanks for the guidelines

Unknown said...

Just tried today using Hyper-V and it says that the ISO file is corrupted or unreadable. I tried using windows ISO installer image to make sure whether it's security permission or ISO file or not, and it can boot to windows ISO installer.
FYI, I converted ElCapitan installer. Does it has different approach?

Meine 3. Dimension said...

dont work from the first line it is shit!!!