Last active
October 24, 2018 15:17
-
-
Save roguesherlock/65987cde5eef33b1acccb30ed7d8421c to your computer and use it in GitHub Desktop.
Dump sdcard in macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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