Tuesday, December 27, 2016

Raspberry Pi SD Creation - Easy Peasy Raspberry Squeezy

Making a Raspberry Pi Bootable SD Card

On all my macs, /dev/disk2 is the built in SD card reader.

diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=./retropie.img of=/dev/disk2
diskutil unmountDisk /dev/disk2

Insert your SD card into the Pi and enjoy, depending on the OS version it may expand the image to utilize the full SD card on the initial boot, some OS's don't do this.

Backing Raspberry Pi SD Card to disk image

diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=/dev/disk2 of=~/RaspPiBackup.img
diskutil unmountDisk /dev/disk2

Things to consider, if you have a large SD card and the OS expanded to utilize all of the space on the card, your backup file will be the size of the card (I use a lot of 32GB cards, this can take a while). To check the status open up activity monitor -> Disk Tab, look to see if the DD process is still actively transferring data. 

No comments:

Post a Comment