Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Created June 30, 2014 15:41
Show Gist options
  • Save arturo-c/a32a3a5eb2cd5fd0e45a to your computer and use it in GitHub Desktop.
Save arturo-c/a32a3a5eb2cd5fd0e45a to your computer and use it in GitHub Desktop.
Clone HD Terminal
1. Connect old drive to mac
diskutil list
2. Choose the disk
sudo dd if=/dev/disk{#} of=/Users/{your_user}/new_image.img bs=1024k
3. Eject old drive
4. Connect new drive
5. Unmount disk
sudo unmountDisk /dev/disk{#}
6. Restore from image
sudo dd if=/Users/{your_user}/new_image.img of=/dev/disk{#} bs=1024k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment