Wednesday 28 September 2022

Clone disk in Mac with dd

 1. brew install coreutils (to update dd)


2. diskutil list

   diskutil unmountDisk /dev/disk12

   diskutil unmountDisk /dev/disk11

3time caffeinate sudo gdd if=/dev/rdisk2 of=/dev/rdisk5 bs=1M status=progress conv=noerror,sync


time caffeinate sudo gdd if=/dev/rdisk11 of=/dev/rdisk12 bs=1M status=progress conv=noerror,sync

refs:

https://egeek.me/2019/05/25/cloning-timemachine-backup-drive-to-another-disk/

https://osxdaily.com/2016/08/09/find-disk-id-device-node-identifier-mac/

https://tecadmin.net/copy-a-gpt-partition-table-to-new-disk/

https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd