Thursday, May 30, 2013

Creating the SD image for Raspberry Pi using Mac OS X

1. Download the image: 2013-02-09-wheezy-raspbian.img from 2013-02-09-wheezy-raspbian.zip into /Users/alexm/Downloads and unzip it.


2. Insert the SD card into the slot on Mac

3. Verify the disk number assignment of the SD card

ALEXs-MacBook-Pro~$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            419.0 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                80.2 GB    disk0s4
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *16.0 GB    disk1
   1:             Windows_FAT_32                         58.7 MB    disk1s1
   2:                      Linux                         1.9 GB     disk1s2

4. Unmount the sd card
ALEXs-MacBook-Pro~$ umount /dev/disk1
umount: /dev/disk1: not currently mounted

5. Unmount again using the diskutil
ALEXs-MacBook-Pro:~$ diskutil unmountDisk /dev/disk1
Unmount of all volumes on disk1 was successful

6. Write the image into the sd card, note, it may take several minutes, take a coffee break.
ALEXs-MacBook-Pro:~$ sudo dd bs=1m if=/Users/alexm/Downloads/2013-02-09-wheezy-raspbian.img of=/dev/disk1

106+0 records in
105+0 records out
110100480 bytes transferred in 75.611085 secs (1456142 bytes/sec)

7. Once completed, eject the sd card.
ALEXs-MacBook-Pro:~$ diskutil eject /dev/disk1
Disk /dev/disk1 ejected

8. Remove sd card and insert into the raspberry pi.

9. Connect all accessories on the raspberry pi and power on.

10. After reboot, you may be able to modify the configuration by opening a terminal and using
the rasp-config:

pi@raspberry$ raspi-config



No comments:

Post a Comment