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.
1 |
diskutil list |
Plugin the SD Card and repeat the command about noting the new addition. Now unmount the disk using
1 |
sudo diskutil umount /dev/disk1 |
If this fails because of partitions then use:
1 |
diskutil unmountDisk /dev/disk1 |
Now you can write the new image to the SD Card with
1 |
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:
1 |
sudo dd bs=1m if=/dev/disk1 | gzip > myPiImage.img.gz |