Benches macOS

6

How to restore a dmg containing multiple …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I have a .dmg file which was created from a disk consisting of two partitions. When I mount the dmg both partitions pop up, so I know the imaging worked properly.

So far, I've been unable to restore the dmg to a flash drive where both partitions are accounted for. I've tried using Disk Utility, hdiutil, dd, asr, and rain dancing, none of which will restore the image properly. Usually, these other methods will restore only one of the partitions.

I'm sure I'm misconfiguring something along the way, and I'm hoping some of you ninjas out there can direct me accordingly.

Thanks!

6 replies

Sign in or join Beachball Help to reply.

  1. 0

    Eric Root

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Try putting the disk image in a folder and then copy the folder to the USB drive.

  2. 0

    paulcristo123

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This method will format the USB drive properly according to the the two partitions on the dmg file and then restore the data to the partitions?

  3. 0

    Eric Root

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm not sure. How is the USB drive formatted now? Are the 2 partitions Mac partitions? Are the partitions formatted differently?

  4. 0

    paulcristo123

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The USB drive is formatted as Mac OS Extended. The two partitions are formatted Mac OS Extended and Fat32. Would the difference in formatting arrest a restore done by any of the command line utilities or Disk Utility?

    I figure there must be a way to do a byte-for-byte restore of an image to a disk, USB or otherwise, which would maintain the formatting and partitioning of the source.

  5. 0

    Eric Root

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Try using Disk Utility to create a new Disk Image on the USB drive, then copy the dmg to the Disk image.

  6. 0

    paulcristo123

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for your reply.

    I was able to partition the drive accordingly manually with Disk Utility and then restore both partitions from the dmg file to the resulting partitions. But this doesn't really solve my problem.

    I'd prefer there to be a way to use the command line to do a direct copy of the image to the drive and reduce the number of steps to 1. I figure there must be a way to do that since people make bulk drives all the time with a myriad of different configuration and partitions.