Skip to main content

What's up everybody!

Ever since High Sierras inception, we've been imaging using the following commands in Terminal. And its been working great for us! To create the image we would use:

hdiutil create -srcdevice disk2 -format UDZO /Volumes/ExternalDiskNameHere/ImageNameHere.dmg

and to restore the image if not scanned, we would use:

asr restore --source /Volumes/ExternalDiskNameHere/ImageNameHere.dmg --target /dev/disk2 --erase --noverify

And if the image was scanned:

asr restore --source /Volumes/ExternalDiskNameHere/ImageNameHere.dmg --target /dev/disk2 –erase

Now that 10.13.4 was released, the hdiutil command to create the .dmg still works, but the asr restore command does not. When we try to restore with ASR, we get:

Couldn't find container disk for Image "image .dmg path" on the external drive, and Couldn't attach source image "image path to .dmg". Could not validate source - Invalid Argument

We've searched high and low with no avail. Anyone familiar with ASR and can maybe help us out? What the heck changed that we can't image like this anymore?!?! Thanks a bunch!

@monaronyc So far the only solution I have come up with is using 10.13.3, its a PITA but we knew Apple didn't want us to image so no surprise. It still works fine even if the Master is 10.13.5 at least.


This is still a problem. Has anyone tested this on 10.13.6 yet ? It would be the last chance to see this fixed on High Sierra :(


I am guessing that is a no.


Not sure if it's just me, but it appears that it's broken with 2018 MBPs on 10.13.6 (build 17G2307)

$ sudo asr restore --s ~/SOE96_APFS.dmg --t /dev/disk3s2  --erase
Password:
    Validating target...done
    Validating source...done
    Erase contents of /dev/disk4 ()? [ny]: y
    Retrieving scan information...done
    Validating sizes...nx_kernel_mount:1359: : checkpoint search: largest xid 77, best xid 77 @ 153
done
    Restoring  ....10....20....30....40....50....60....70....80....90....100
    Verifying  ....10....20....30....40....50....60....70....80....90....100
    Inverting target volume...done
Personalization failed: Error Domain=OSPErrorDomain Code=103 "The given secure boot bundle is invalid." UserInfo={NSLocalizedDescription=The given secure boot bundle is invalid.}
asr: Couldn't personalize volume /Volumes/Macintosh HD 1

When I ran it off my 2016 MBP w/ 10.13.6 (17G65) the same command ran successfully.