Skip to content

Instantly share code, notes, and snippets.

@roguesherlock
Last active October 24, 2018 15:17
Show Gist options
  • Select an option

  • Save roguesherlock/65987cde5eef33b1acccb30ed7d8421c to your computer and use it in GitHub Desktop.

Select an option

Save roguesherlock/65987cde5eef33b1acccb30ed7d8421c to your computer and use it in GitHub Desktop.
Dump sdcard in macos
#insert sdcard
# locate sdcard
diskutil list
# unmount sdcard
diskutil unmount /dev/diskx
# dump sdcard and compress
dd if=/dev/diskx | gzip > /path/to/image.img.gz
# restore compressed image copy
gzip -dc /path/to/image.img.gz | dd of=/dev/diskx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment