Burn Mountain Lion Dmg To Dvd

  1. Burn Mountain Lion Dmg To Dvd Converter
  2. Mountain Lion Dmg Torrent

I wanted to create a recovery DVD for my Mac OS X install and all I had was an old DMG of Mac OS X version 10.6.

hdiutil Image Information

Burn Mountain Lion Dmg To Dvd Converter

Here is the information regarding the DMG file:

You can see that the total size is 6737006592 bytes (about 6.3Gib). That is not going to fit on a Single Layer DVD. Here is the size information of an empty SL-DVD:

How to create OS X Mountain Lion installer on DVD or USB. Locate the installation of Mountain Lion image. Burn the bootable DVD of the Lion X Mountain Lion installer. Copy the installer Lion X Mountain Lion to the USB can boot. Delete and format USB. Copy the InstallESD.dmg file to the flash drive. Run PowerISO, and insert a blank or rewritable optical disc in the drive. Click 'Burn' button on toolbar or select the 'Tools Burn' Menu. PowerISO shows ' DMG Burner ' dialog. Click 'Browse' button to select the DMG file you want to burn.

We can see that we can fit about 4.3GiB onto a SL-DVD. When I mount the DMG, I see the following size:

Here is the df output:

Since the data is compressed the actual file is 5.2GiB:

Create a Sparse Image

Let’s create a sparse image and copy the contents of the DMG to that. To create the sparse image we can run the following:

I noticed that the DMG didn’t have a partition schema so I did the same thing for the Sparse Image.

Restore DMG to a Sparse Image

Now we can mount the sparse file. First let’s unmount the DMG:

Now let’s mount the Sparse Image:

Now we can use asr (Apple Software Restore) to basically do a block level copy of the DMG onto the Sparse Image. First let’s scan our DMG:

Now for the copy/restore:

Checking the size of the Sparse Image:

After the copy the Sparse was mounted and checking the maximum size:

Notice the maximum size is 7.0GiB, which is what we created the Sparse File to be. Notice that since we did a block level copy the Volume Name was also copied.

Clean Up Un-necessary Files in the New Sparse Image

The Sparse Image is already mounted so let’s clean it up. The Mac OS X install CD contains a lot of printer Drivers, Language Packages, and X11 tools. For recovery purposes we don’t need those. To clean up the Sparse Image, I ran the following:

After you are done cleaning up superflous files, the used size should be about 4.2GiB:

Compact Sparse Image

Now we can reclaim the unused space in the Sparse image and resize it:

Notice we didn’t get all of the possible space. Looking over the size information of the image, we see the following:

we can also check the limits set on the Sparse file:

the values are in 512 sized sectors. So our minimum possible size is (13158272 * 512) 6737035264 bytes. So I can resize the image to that by running the following:

Notice the size has changed, but it didn’t go as low as 4.3GiB (as shown by Total Non-Empty Bytes). The reason for this is because the sparse image is not defragmented. This is discussed in How to reclaim all/most free space from a sparsebundle on OS X.

From here we have two options. If you have access to iDefrag then you can use that to defragment the Sparse Image to reclaim more space, or we can create a smaller Sparse Image and copy the contents manually.

Use iDefrag to Defragment the Sparse Image

Luckily, I had iDefrag :). Mount your Sparse image:

then start up iDefrag and you will see you drive there. Click “Go” and it will start defragmenting:

after it’s done you will the following message:

at this point you can quit iDefrag and unmount the Sparse Image:

Then we can try to compact again and we will see the following:

Checking the new size limits:

Burn Mountain Lion Dmg To Dvd

we can go to (8862888 * 512) 4537798656 bytes (less than 4.3 GiB). Now for the actual resize:

and here is the new size:

that looks much better.

Copy Contents of Sparse Image into a Smaller Sparse Image

If you don’t have access to iDefrag, you can create a smaller sparse image:

Now we can mount both our images:

Now we can just copy from the first sparse image to the second (smaller) sparse file. First check to make sure the source is smaller than the destination:

asr used to be able to do file-level copies, but now only block level copies/restores are allowed. From the man page:

I prefer rsync over ditto (ditto vs. rsync), so here is what I ran to copy the contents onto the smaller sparse image:

From here we can either convert the Sparse Image back to a DMG or an ISO/CDR. Let’s unmount both:

Convert Sparse Image to DMG

Dmg

We can use this command to convert our sparse image to a DMG:

Just for reference here are the available formats:

taken from the man page. With bzip2 compression the end file will be even smaller:

Now we can burn the file, by just running:

Convert Sparse Image to ISO

This can be accomplished with hdiutil in multiple ways. The first one is with the following command:

the second way is like this:

both can be burned by using the ‘hdiutil burn’ command or with any burning software.

Mac OS X 10.8 Recovery Options

Since I was on Mac OS 10.8 there are a couple of other options for recovery media.

1. Resize OS X Mountain Lion installer to fit on a 4.7 GB DVD

The 10.8 Installer is downloadable via App Store and even though it’s doesn’t fit on a regular DVD you just have to copy the contents into a smaller image. No deletion of any files is necessary. The instructions on how to accomplish that are here:

From the bottom link (Mac OS X hints), here is a snippet of the code that can accomplishes our goal:

2. Mac OS X 10.8 Has a Built-in Recovery Partition

From “OS X Recovery”:

The new Mac safety net.OS X Recovery lets you repair disks or reinstall OS X without the need for a physical install disc. Since OS X Recovery is built into your Mac, it’s always there when you need it. Even if you don’t need it, it’s good to know it’s there. And you don’t have to search through original packaging to find install DVDs to get your Mac back up and running.

Mountain Lion Dmg Torrent

Command-R to the rescue.Just hold down Command-R during startup and OS X Recovery springs into action. It lets you choose from common utilities: You can run Disk Utility to check or repair your hard drive, erase your hard drive and reinstall a fresh copy of OS X, or restore your Mac from a Time Machine backup. You can even use Safari to get help from Apple Support online. And if OS X Recovery encounters problems, it will automatically connect to Apple over the Internet.

Burn mountain lion dmg to dvd conversion

So I can just reboot the Mac and hold Command-R to get into recovery mode.

3. Use OS X Lion’s Recovery Disk Assistant to create a bootable USB recovery Disk

Starting with OS X Lion, you can create a recovery USB disk to help with recovery. Instructions on how to do that are here:

From “OS X Recovery Disk Assistant v1.0”:

The OS X Recovery Disk Assistant lets you create OS X Recovery on an external drive that has all of the same capabilities as the built-in OS X Recovery: reinstall Lion or Mountain Lion, repair the disk using Disk Utility, restore from a Time Machine backup, or browse the web with Safari.

Well at least I have a cheap bootable OS 10.6 DVD now :)

Happy Mountain Lion Day! Now that you have downloaded the 4.34GB installer, you may want to install Mountain Lion on more than one of your personal machines. Do you really need to wait 45 minutes or more for each one? Absolutely not! Just make your own bootable install disk using our handy tutorial.

We have instructions for those of us who just want to get it done—using the donation-ware Lion Diskmaker app—as well as those that don't mind a little extra clicking to do it yourself.

Important warning: the OS X installer will delete the necessary file needed to make your own install disk once it runs. Therefore, you need to either make a copy of the installer outside of the Applications folder or make your install disk before upgrading.

Got it? Good—let's get started.

Here's what you need:

  • An 8GB or larger USB flash drive, other external disk, or 4.7GB DVD-R
  • Mountain Lion installer app downloaded from the Mac App Store
  • Optional:Lion Diskmaker app

We recommend a USB flash drive for your backup installer; they're cheap and easy to store and transport. Other external drives will also work, but make sure the type works with all your Macs—USB is the most universal. You can also burn the installer to a DVD-R, but booting and running the installer from an optical disc is s-l-o-w.

There's an app for that

If you find digging in to bundles and using Disk Utility to be tedious or bothersome, you can thank developer Guillaume Gète for making Lion Diskmaker. His app automates the process of making a bootable install disk for both Lion and Mountain Lion—just run the app and let it do its thing.

Advertisement

(Why not rename the app to something more generic like 'OS X Diskmaker'? Gète says he just likes the existing name better, and besides, it's less likely to catch the ire of Apple's lawyers.)

Just download the Lion Diskmaker app, unzip it, and run it. You'll basically need to click four buttons: '10.8 Mountain Lion,' 'Use this copy,' 'Create a boot disk,' and, if you're using a USB flash drive as recommended, 'An 8 GB USB thumb drive.' It's really that simple; Lion Diskmaker takes care of the rest. The process will take about 30 minutes or so using USB 2.0 (it should be faster if you have a USB 3.0-compatible flash drive and newer Mac).

Still easy enough for the DIY-er

Lion

If you like doing things yourself, however, the process is still pretty straightforward for any user comfortable with right-clicking and drag-and-drop.

Start by right-clicking (or control-clicking) on the 'Install OS X Mountain Lion' app, which should be in your main 'Applications' folder after downloading. Navigate to Contents > Shared Support, and you should see a disk image called 'InstallESD.dmg.' We will restore this disk image to our flash drive (or other disk) using Disk Utlity.

Then launch Disk Utility. If you're using a USB flash drive or other external disk, you'll need to make sure it's formatted as 'Mac OS Extended (Journaled).' Under the partition options, also make sure the partition type is set to 'GUID Partition Table,' otherwise it won't be able to boot an Intel-based Mac.

Advertisement

Drag and drop the 'InstallESD.dmg' into the 'Source' box in Disk Utility. Then click the 'Restore' button on the toolbar. Drag your newly formatted drive into the 'Destination' box, and click the 'Restore' button. The process should take about 30 minutes or so, less if your drive is particularly speedy.

UPDATE: Some users have reported getting a 'Could not restore – Invalid argument' error at the end of the restore process. Our testing shows the error message can be safely be ignored; the drive can be mounted and will boot your system to install Mountain Lion. As noted in the comments, however, mounting the InstallESD.dmg file before performing the restore process avoids triggering the error message.

If you are making a DVD, click 'Burn' and select the image as a source. Once Disk Utility is done, you will have a bootable install disk.

As with Lion, the install disk includes the same options as the emergency recovery partition created when you install Lion or Mountain Lion. With it, you'll be able to use Safari to find troubleshooting information, run Disk Utility to fix filesystem errors, restore from a Time Machine backup, or install Mountain Lion from scratch on any compatible Mac.