
P A R T I
C O N N E C T I N G T H E B O A R D
38
Flashing from OS X
If your current computer is a Mac running Apple OS X, you’ll be pleased to hear that things are
just as simple as with Linux. Thanks to a similar ancestry, OS X and Linux both contain the
dd
utility, which you can use to flash the system image to your blank SD card as follows:
1.
Select Utilities from the Application menu, and then click on the Terminal application.
2.
Plug your blank SD card into a card reader connected to the Mac.
3.
Type
diskutil list
to see a list of disks. Find the SD card by its size, and note the
device address (
/dev/diskX
,
where
X
is a letter identifying the storage device).
4.
If the SD card has been automatically mounted and is displayed on the desktop, type
diskutil unmountdisk /dev/diskX
to unmount it before proceeding.
5.
Use
cd
to change to the directory with the
.img
file you extracted from the Zip archive.
6.
Type
dd if=imagefilename.img of=/dev/diskX bs=2m
to write the file
imagefilename.img
to the SD card connected to the device address from step 3.
Replace
imagefilename.img
with the actual name of the file extracted from the Zip
archive. This step takes a while, so be patient!
Flashing from Windows
If your current PC is running Windows, things are slightly trickier than with Linux or OS X.
Windows does not have a utility like
dd
, so some third-party software is required to get the image
file flashed onto the SD card. Although it’s possible to install a Windows-compatible version of
dd
, there is an easier way: the Image Writer for Windows. Designed specifically for creating USB
or SD card images of Linux distributions, this features a simple graphical user interface that
makes the creation of a Raspberry Pi SD card straightforward.
The latest version of Image Writer for Windows can be found at the official website:
https://sourceforge.net/projects/win32diskimager/
. Follow these steps to
download, install and use the Image Writer for Windows software to prepare the SD card for
the Pi:
1.
Click the green Download button to download the Image Writer for Windows Zip file,
and extract it to a folder on your computer.
2.
Plug your blank SD card into a card reader connected to the PC.
3.
Double-click the
Win32DiskImager.exe
file to open the program, and click the blue
folder icon to open a file browse dialogue box.
Summary of Contents for A
Page 1: ......
Page 2: ......
Page 3: ...Raspberry Pi User Guide 2nd Edition...
Page 4: ......
Page 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Page 10: ......
Page 26: ...R A S P B E R R Y P I U S E R G U I D E S E C O N D E D I T I O N 10...
Page 28: ......
Page 29: ...Chapter 1 Meet the Raspberry Pi...
Page 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Page 56: ......
Page 57: ...Chapter 3 Linux System Administration...
Page 79: ...Chapter 4 Troubleshooting...
Page 89: ...Chapter 5 Network Configuration...
Page 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Page 122: ......
Page 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Page 140: ......
Page 141: ...Chapter 8 The Pi as a Home Theatre PC...
Page 151: ...Chapter 9 The Pi as a Productivity Machine...
Page 160: ......
Page 161: ...Chapter 10 The Pi as a Web Server...
Page 172: ......
Page 173: ...Chapter 11 An Introduction to Scratch...
Page 189: ...Chapter 12 An Introduction to Python...
Page 216: ......
Page 218: ......
Page 219: ...Chapter 13 Learning to Hack Hardware...
Page 234: ......
Page 235: ...Chapter 14 The GPIO Port...
Page 249: ...Chapter 15 The Raspberry Pi Camera Module...
Page 265: ...Chapter 16 Add on Boards...
Page 280: ......
Page 281: ...Appendix A Python Recipes...
Page 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Page 293: ...Appendix C HDMI Display Modes...