Skip to content

Instantly share code, notes, and snippets.

@Link-

Link-/Disk_operations

Last active Jan 12, 2017
Embed
What would you like to do?
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