Skip to content

Instantly share code, notes, and snippets.

@Link-
Last active January 12, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Link-/71efa371dc8f7cc44b919434f66e21dd to your computer and use it in GitHub Desktop.
Save Link-/71efa371dc8f7cc44b919434f66e21dd to your computer and use it in GitHub Desktop.
Raspberry Pi - Useful Disk Operations
# 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