3

On Windows there is this method exists: you create a backup image of the whole system (for example install all updates, tweak system parameters, harden the os, install some basic software and utilities).

This image comes with .vhd format, then you can easily convert it to .wim format and inject (in fact simply copy & paste with replace install.wim file) into Windows Install usb or disk. As the result next time you can quickly install already tweaked ready for work system.

Sorry for the long preamble. So is there a such thing for macOS? I found that installESD.dmg has the big compressed 5.hfs file. I guess the whole system contains there. But I couldn't open it.

My intention is to clone my macOS into bootable 16GB flash drive, so the clone should be compressed.

Is there a way to make a compressed bootable clone of macOS?

3
  • BTW: the "hfs+ file" you are detecting is one of nine "partitions" of the Install.dmg: 1xPMBR, 2xGPT Header, 2xGPT Partition Data, 1xEFI, 2x free space and finally one HFS+ partition which is mounted as volume and contains the install data (*.pkg files).
    – klanomath
    Feb 9 '20 at 20:35
  • So I guess then it Is not possible to replace the inner of 5.hfs with your simply copying all your files? For example windows's wim contains the exact files as on working system, it just copies them. But if 5.hfs has pkg installers, I guess it will be a problem. Feb 9 '20 at 21:01
  • As bmike mentioned you can create a dmg of your internal disk with e.g. asr and then clone the dmg to other disks.
    – klanomath
    Feb 9 '20 at 21:11
3

The concept of a registry or binding to AD means that all Macs are in the sysprep state always. There’s really no analog to needing to prepare a clone since any backup will work to drop a restored image. You can use asr or Carbon Copy Cloner or Super Duper or Time machine or APFS snapshots to make clonable images of macos including the apps, accounts, settings.

The installESD is more like the windows ISO than something that contains user date or settings.

Apple has tons of documents now on the automated install scripts to reinstall the OS - and in the past NetBoot could be used to clone and image, but macOS is now designed to do a clean install and then restore user files / apps / settings rather than slip streaming a new OS. Both get you to the same end point, automated, but the tools needed are different since you just install macOS and then run a migration script to get the data in and upgraded to the new OS if the migration is also an upgrade.

3
  • Nice. Thanks for an answer. But are any of those clonning apps could create a compressed 5-10 gb from my clean macOS? I just updated my macos, changed a few settings with default terminal commands, and installed an antivirus.My whole system weights about 22gb. There's not many differences from original os(highsierra), butit(the original os) weights about 6 gb and mine 22gb... My purpose to save it to 16 gb flash. If you know please tell, what of those tools could save me a compressed system that I could install on a clean hard/solid drive? Thank you :) Feb 9 '20 at 20:29
  • In short, can I do with them bootable clone of macos? Feb 9 '20 at 20:54
  • @BeardedRabbit I would set up time machine, exclude system files and back up to the 16 go flash if saving your state was the goal. Bring the os installer on a second drive if you can’t just get a larger storage.
    – bmike
    Feb 9 '20 at 21:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .