The question has been answered but it's unclear. Why can't I just dd an entire APFS disk?
The original question posts the dd command that was used to perform a byte-for-byte copy of a block device. As pointed out, that command resulted in a incorrect clone. The accepted answer explains why it failed but doesn't provide the correct dd command.
If I understand the explanation correctly, I should use the following dd command:
dd if=/dev/rdisk0 of=/dev/rdiskX bs=4096 obs=512
Or should I first re-initialize the target block device with a GPT partition scheme, create an APFS partition, and then perform a dd?
The goal is to take /dev/rdisk0 (source block device) and perform a byte-for-byte copy to a brand new external SSD (target block device).
Related Questions:
I haven't been able to find a clear answer as to whether or not using
ddis possible if the source block device has encrypted APFS partitions.Should I be using
rdiskXor justdiskX?