How do I clone an installation of Windows 10 from macOS?

Solution 1:

You can use the dd command to clone the disk as follows:

  1. If the source SDD is larger than the destination SSD, start up your Mac in Windows 10 and shrink the partition on the source disk, as explained in this Microsoft document: Shrink a basic volume, so that its size is smaller than the destination SSD. Then restart your Mac in macOS.

  2. Connect both SSD disks to your Mac

    If you get a message similar to this when connecting the destination disk:

    enter image description here

    select "Ignore".

  3. Launch Disk Utility (located in the Applications > Utilities folder).

  4. Select the source disk and write down the device name.

    In the screenshot below, the device name is disk2: enter image description here

  5. Select the destination disk and write down the device name:

    In the screenshot below, the device name is disk3: enter image description here

  6. Select the source volume and unmount it. enter image description here

  7. Select the destination volume and unmount it. (This step will not be necessary if were prompted to select "Ignore" in step 1.) enter image description here

  8. Launch Terminal (located in the Applications > Utilities folder).

  9. Run:

    sudo dd if=/dev/diskX of=/dev/diskY bs=1m

    where:

    diskX is the device name of the source disk (in the example above, disk2)

    diskY is the device name of the destination disk (in the example above, disk3)

    sudo is a command that let's you run the dd with administrative privileges.

    Type your password if requested.

    It is extremely important that you don't mix up the device names of the disks! Otherwise you will overwrite your Windows 10 disk.

    This may take a while, so be patient. You can check the progress of dd as explained in this answer: How can I track progress of dd

  10. Test the destination SSD. You may want to extend the volume as explained in this Microsoft document: Extend a basic volume

More information

For more information on dd, see: https://en.wikipedia.org/wiki/Dd_(Unix)

For more information on sudo, see: https://en.wikipedia.org/wiki/Sudo

For a very similar but command line-only method to clone disks in macOS using dd, see: https://pbxbook.com/other/dd_clone.html