Last active
January 12, 2017 20:13
-
-
Save Link-/71efa371dc8f7cc44b919434f66e21dd to your computer and use it in GitHub Desktop.
Raspberry Pi - Useful Disk Operations
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
# OSX | |
# Covert .iso to .img | |
hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso | |
# Backup microSD | |
sudo dd if=/dev/disk[n] of=/Users/username/SDCardBackup.dmg | |
# Copy image to microSD | |
diskutil unmountDisk /dev/disk[n] | |
dd bs=1m if=/Directory/of/image.img of=/dev/rdisk[n] | |
diskutil eject /dev/rdisk[n] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment