SD Imaging

Quick notes for oneself relating to imaging an SD Card for a Raspberry PI.  These commands will probably work many flavours of Linux although diskutil is Mac-specific.

TOTAL CARE SHOULD BE TAKEN HERE AS YOU DON”T WANT TO KILL YOUR MAC.

Download link – http://www.raspberrypi.org/downloads

Check what disks are attached to your computer.

diskutil list

Plugin the SD Card and repeat the command about noting the new addition.  Now unmount the disk using

sudo diskutil umount /dev/disk1

If this fails because of partitions then use:

diskutil unmountDisk /dev/disk1

Now you can write the new image to the SD Card with

sudo dd bs=1m if=2014-01-07-wheezy-raspbian.img of=/dev/disk1

To backup your SD Card once its all configured etc you can use:

sudo dd bs=1m if=/dev/disk1 | gzip > myPiImage.img.gz

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.