Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours

(singke) #1
[sudo] password for christine:
$

This command moves the image file to the SD card. Be patient at this point. It will take a long
time for the image file to be written to your SD card. You will know when it is done because
you will get your command prompt back.

Watch Out!: Wrong Device File
If you type in the wrong device file name, you might wipe out an important partition,
such as your computer’s root partition. That would be bad.


  1. It is important to make sure your SD card does not get corrupted when you remove it.
    Therefore, before you remove it from the SD card reader, enter the command sudo sync and
    press the Enter key, as shown in Listing A.5.


LISTING A.5 Avoiding Corrupting the SD Card


Click here to view code image


$ sudo sync
[sudo] password for christine:
$

Now you can remove your card from the reader. The Raspbian operating system is loaded on your SD
card.


Mac: Loading Raspbian onto an SD Card


If you downloaded Raspbian to a Mac, follow these steps to load Raspbian onto an SD card:



  1. If you do not already have one, download and install a disk image writer utility. The RPi-sd
    card builder utility is the recommended tool. You can find it by opening your favorite web
    search engine and typing in the name RPi-sd card builder. Doing this ensures that you
    obtain the latest utility copy.

  2. After you download the RPi-sd card builder utility, extract it by double-clicking the
    downloaded zip file. Figure A.5 shows that the RPi-sd card builder utility has been extracted
    and is represented by a Raspberry icon.

Free download pdf