Skip to content

Instantly share code, notes, and snippets.

Last active Jan 12, 2017
What would you like to do?
Raspberry Pi - Useful Disk Operations
# 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