Supported OS: Mac OS X 10.13, 10.12, 10.11, 10.10, and Windows. This free DVD creator for Mac users is a cross-platform application that allows users to create professional DVDs with ease. This is an open-source DVD burning software for Mac that is distributed under the GNU General Public License. kirkmc adds: I haven't tested this. Given the cost of USB sticks, and the fact that, if you do want an installer, it's better to have the most recent one, I've gone that route using Lion DiskMaker.Some people may prefer DVDs, but another factor is whether or not your Mac has an internal DVD drive; my Macs - a Mac mini and a MacBook Pro - do not, so USB is easier than using an external drive. I compiled cdrdao for Mac OS X. This can burn bin/cue files very easily. The only cue/bin pair which haven't worked for me thus far had spaces and hyphens in the filename.
Click here to return to the 'Burn OS X Mountain Lion installer to single-layer DVD ' hint |
Hint author here. I'll agree that in most cases you would be better off using a USB flash drive (8 gig drives cost practically nothing these days.) In my case, my employer asked that I create some bootable DVDs, and I didn't want to have to order a bunch of dual-layers. I'm sure there are others in similar circumstances.
I haven't tried the script, but it probably won't work in bash without properly escaping and/or quoting the paths with spaces on them.
You're absolutely right - good catch. The paths were fully escaped when I submitted the hint, but it looks like the backslashes got stripped out after submission.
I'll see about getting it fixed. In the meantime, you can download the escaped version here:
https://dl.dropbox.com/u/10577704/create-mountain-lion-dvd.zip
I've fixed it.
Typhoon14 said:
'but it looks like the backslashes got stripped out after submission.'
Were they back slashes, or forward slashes?
deleted
I had the install app in a Downloads folder. You will need to change that reference to where your copy of the app is located. This ran in Terminal, after I saved the text as 'MLresize.sh', using nano, and ran on the file.
(I've got a lot of blank DVDs. And they won't get zapped by lightning like my Base Station did.)
The script ran in a few minutes, much less time than actually burning the DVD.
I just dropped the created .dmg file into Disk Utility, selected it, and clicked on burn.
After burning, the disc shows in System Preferences->Startup Disk as bootable.
Although I haven't tried it out yet.
How exactly does this work? How can you reduce the uncompressed size of an image without losing any data?
The image itself has a fixed size of 4.75 GB, but contains only 4.35 GB of data. All we're doing is trimming the free space.
So you can't just use Image/Resize in Disk Utility? (I'd try it, but I don't have Mountain Lion.)
Resize only works for read/write disk images, so, no.
I just copy/pasted the stuff for terminal, not bothering with the bash and everything worked as advertised. Verifying burnt disc now. Thanks!!
@kirkmc Why do you need Lion DiskMaker? Can't you just restore the InstallESD image in Install X Mountain Lion/Contents/SharedSupport using Disk Utility?
I have an installer on a USB and an SDHC Card using the restore method.
@derekJAB,
you can in fact restore InstallESD.dmg. Just remember to mount the dmg for Mountain Lion.
If you don't, disk utility will throw you an error.
for somehow I need to add 'sleep' before detach to avoid resource busy
#! /bin/bash
# 2012-08-07 01 prw from Mac OS X Hints web site...
# added backslash before spaces in image names...
# Should be run on /Volumes/yourhddvolumename not on the SSD
# 2012-08-07 02 prw References are all relative, not absolute. So SSD it is.
# 2012-09-13 03 JFOC adding some sleep to avoid resource busy on detach
# Remove any old copies of the DVD image before we begin.
rm -f /private/tmp/Mountain Lion DVD Image read-write.dmg
echo 'Creating DVD Image...'
hdiutil create -size 4.2g -volname 'Mac OS X Install ESD' /private/tmp/Mountain Lion DVD Image read-write.dmg -fs HFS+ -layout SPUD
hdiutil attach -nobrowse /Volumes/Macintosh HD/Users/admin/Downloads/Mountain Lion 10.8/InstallESD.dmg
hdiutil attach -nobrowse /private/tmp/Mountain Lion DVD Image read-write.dmg
echo 'Copying Mountain Lion to new image...'
cp -pRv /Volumes/Mac OS X Install ESD/* /Volumes/Mac OS X Install ESD 1/
sleep 10
hdiutil detach /Volumes/Mac OS X Install ESD 1
sleep 10
hdiutil detach /Volumes/Mac OS X Install ESD
sleep 10
echo 'Converting to read-only...'
hdiutil convert /private/tmp/Mountain Lion DVD Image read-write.dmg -format UDZO -o ~/Mountain Lion DVD ImageLion.dmg
sleep 10
rm -f /private/tmp/Mountain Lion DVD Image read-write.dmg
echo 'Image Creation Complete. Please burn '~/Mountain Lion DVD ImageLion.dmg' to a DVD using Disk Utility.'
open ~/
#-----------------------------------------------------------------------------------------------------------
hdutil attach -nobrowse /Applications/Install...
line should be uncommented, and the line following should be commented out: Otherwise the script issues some errors and burns a blank DVD.If you do want to get the Mountain Lion installer InstallESD.dmg to fit on a single layer DVD, you can use the overburn feature of hdiutil in Mac OS X.
AFTER inserting a blank DVD, bring up terminal, navigate to the dmg folder and type:
hdiutil burn InstallESD.dmg
Depending on your brand of DVD your mileage may vary.
You can infact burn the installer to a single layer DVD, using a feature called overburn. This is much simpler than it sounds..
AFTER inserting a blank DVD, bring up terminal, navigate to the dmg folder and type:
hdiutil burn InstallESD.dmg
Depending on your brand of DVD your mileage may vary. It's not unusual to get errors after finishing the burn but as long as the Finishing Burn message is shown, the disc will function as expected.
I think using any of these methods will cause the image to have a different checksum than the original. If that's not important to you, don't fret.
$ man hdiutil
-[no]optimizeimage do [not] optimize filesystem for burning.
Optimization can reduce the size of an HFS or
HFS+ volume to the size of the data contained
on the volume. This option will change what
is burned such that the disc will have a dif-
ferent checksum than the image it came from.
The default is to burn all blocks of the disk
image (minus any trailing Apple_Free).