
C H A P T E R 2
G E T T I N G S T A R T E D W I T H T H E R A S P B E R R Y P I
37
Flashing from Linux
If your current PC is running a variant of Linux already, you can use the
dd
command to write the
contents of the image file out to the SD card. This is a text-interface program operated from the
command prompt, known as a
terminal
in Linux parlance. Follow these steps to flash the SD card:
1.
Open a terminal from your distribution’s applications menu.
2.
Plug your blank SD card into a card reader connected to the PC.
3.
Type
sudo fdisk -l
to see a list of disks. Find the SD card by its size, and note the
device address:
/dev/sdX
, where
X
is a letter identifying the storage device. Some
systems with integrated SD card readers may use the alternative format
/dev/
mmcblkX
—if this is the case, remember to change the target in the following instruc-
tions accordingly.
4.
Use cd to change to the directory with the .img file you extracted from the Zip archive.
5.
Type
sudo dd if=imagefilename.img of=/dev/sdX 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! During flashing, nothing will be shown
on the screen until the process is fully complete (see Figure 2-10).
Figure 2-10:
Flashing the SD
card using the
dd
command
in Linux
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...