Last active
September 1, 2018 21:41
-
-
Save RobertYim/07630ef4b1090b84cb805089b7dd3909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hdiutil create -srcdevice /dev/diskXsY -format ULFO /Volumes/ExternalDriveName/YourImageName.dmg | |
In the above, diskXsY is obtained from diskutil list when you find the APFS container disk or HFS disk identifier. | |
Then, use: | |
asr imagescan --source /Volumes/ExternalDriveName/YourImageName.dmg | |
After that runs, you can then connect the external drive to the new MBP, use its internet recovery and terminal and do: | |
asr restore --source /Volumes/ExternalDriveName/YourImageName.dmg --target /dev/diskAsB --erase | |
Again, in the above, diskAsB is the MBP's disk identifier for its APFS container. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment