Created
September 2, 2014 14:58
-
-
Save nooitaf/ac63c3419095566562fa to your computer and use it in GitHub Desktop.
Pi-Tricks - Using DD
This file contains 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
# list disks | |
diskutil list | |
#unmount disk | |
diskutil unmountDisk /dev/disk3 | |
#get data | |
dd if=/dev/disk3 of=/path/to/file bs=32m | |
dd if=/dev/disk3 bs=32m | pv -v -s 3000m | dd of=/path/to/file bs=32m | |
# write data | |
dd if=/path/to/image bs=32m | pv -v -s 3000m | dd of=/dev/disk3 bs=32m | |
# zipped read | |
dd if=/dev/disk3 bs=32m | gzip -c diskimage.img.gz | |
dd if=/dev/disk3 bs=32m | pv -v -s 3000m | gzip -c diskimage.img.gz | |
# zipped write | |
gunzip -c diskimage.img.gz bs=32m | dd of=/dev/disk3 bs=32m | |
gunzip -c diskimage.img.gz bs=32m | pv -v -s 3000m | dd of=/dev/disk3 bs=32m | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment