Disk Utility to clone and restore bootable drive (Mojave)

A response and potential solution to a previous post with a similar header.

https://discussions.apple.com/thread/250370398?login=true


This took me hours of trial and error to accomplish through use of a 2015 MBP...no idea why so problematic with Mojave's restore mode in order to save a fully configured OS installation as a disk image for future restores (for say, an SSD failure or capacity upgrade), who wants to do that all over again? For me a clone is more straight forward and trustworthy than using Time Machine, and faster then a file duplication approach.


Problem: persistent errors cloning and restoring APFS bootable partition for Mac Pro 5,1 (but could also be just as applicable to MBPs running Mojave 10.14.x?). Errors looking like this:


Restoring

Verifying

Inverting target volume...

APFS inverter failed to invert the volume - Invalid argument

The operation couldn’t be completed. (OSStatus error 22.)


or...inapropriate ioctl for device, blah blah (OSStatus error 206.)


No amount of trial and error in Mojave's restore mode worked reliably. The solution that worked for me was to use the newest version of Disk Utility (v21) within Restore mode of Monterey - so if Mojave is installed, establish a partition on a MBP with a fresh, legit install of Monterey. I could only do this on my 2015 MBP (presumably any other Monterey compatible MBP would suffice, I didn't try this on one patched to accomodate Monterey). I connected my 5,1 SSD using a USB3 external case. I only used Monterey for the purposes of cloning/eventual restoring a volume with Mojave installed, which unlike Monterey gets along fine with my 5,1).


It appears one can deliberately boot into Monterey's restore mode (as appose to Mojave's) by restarting while in Monterey, then instantly holding down cmd-r, and continue to do so well after the chime and until the darker UI appears. Perhaps there is a more elegant way to do this using terminal. Would love to know if someone has info.


The clone and restore process went like this:

  1. In Disk Utility (Monterey restore mode), make a blank APFS image with approx 20-30GB padding with respect to the size of your source volume, and save to your MBP. For settings: single partition, read/write
  2. Select that image at the bottom left column of Disk Utility and restore with your source volume (in my case was a test OS install from my externally connected SSD). This two step process replaces the previous and far simpler one step process to make an image of a volume.
  3. Now, using that image one can then restore to either a whole SSD, or a volume in a select APFS container on a your target SSD. Side note: I had success in the next step with using either as-is or a compressed final image. To compress use 'Convert' in Disk Utility to remove the excess bloat.


Keep in mind it may be a wise to do a trial run of these steps with a fresh install of Mojave (or later OS) to ensure these scheme works reliably for you while in Monterey restore mode.


BTW I tried performing all this using Disk Utility while booted into Monterey but saw similar errors. Go figure. I hope this helps folks who like to archive and precisely restore complete drive configurations the way I do, and much prefer Disk Utility over a file duplication scheme such as Carbon Copy Cloner. Good luck :)

Posted on Dec 25, 2021 1:05 AM

Reply

Similar questions

3 replies

Dec 27, 2021 4:38 PM in response to bibbli

In my own personal experience Carbon Copy Cloner has been the best way to create a bootable clone of a bootable macOS drive. I've always had problems using Disk Utility to do this and sometimes even just creating a large image file with Disk Utility will fail. The only problem with using Carbon Copy Cloner these days to make a bootable macOS clone for macOS 11.x+ is to make sure to right-click on the destination drive in CCC and select the "Legacy" option so that the destination is made bootable, otherwise CCC will just create a data drive. Plus CCC is able to clone the same drive that is booted as long as apps are closed during the process and no work is being done on the drive.


In my personal experience I have found the Disk Utility GUI app to be subpar in all ways. It is rare that I will recommend using a third party app, but there are a few third party apps that are indispensable. CCC is one of those apps (some users prefer SuperDuper instead). I personally limit the third party apps I use/install on my own devices.


Thanks for sharing instructions for how to get Disk Utility to clone a macOS boot drive as it may help other users who also do not want to use a third party app.


Jan 29, 2022 12:59 AM in response to HWTech

I'm aware some like to use CCC for this, but I don't see the advantage. I prefer this method since disk images copy by sectors as appose to thousands of indiv files, so it's faster. More importantly, from what I've read, an advantage of an image restore vs file restore is one can be certain the integrity of any type of link between files and their assets remain perfectly preserved. For me, there's true power in being able to pick one file, hit restore and just like that you're ready to go (apart from moving over recently made files). I do use CCC for some folder backups - dealing with the minutia of indiv files in general is certainly a different animal.


Two updates regarding the above guide:

  1. On a dual boot drive, you can reliably boot into Monterey's recovery by booting into Monterey and selecting it as the startup disk, then restart and cmd-r (no need for a long hold)
  2. Only ~5GB padding for the initial blank image has been fine for me since.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disk Utility to clone and restore bootable drive (Mojave)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.