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

(singke) #1
Watch Out!: Wiping the Wrong Disk
If you select the wrong letter in Win32DiskImager window’s Device section, you
might wipe out the wrong disk, such as your computer’s primary hard drive. That
would be bad.

In the Image File section of the window, click the file folder icon. Navigate to the location of
your Raspbian image file. Click the file name to select it (see Figure A.4).
Now click the Write button in the Win32DiskImager window to write the image file to your SD
card. This may take a little while, so be patient.

FIGURE A.4 Win32DiskImager program with Raspbian selected.
When Win32DiskImager is done writing the image, click the Exit button to close the program.
Now you can eject the SD card from your SD card reader. The Raspbian operating system is
now loaded on your SD card.

Linux: Loading Raspbian onto an SD Card


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



  1. Load your SD card into your SD card reader. Open a command-line terminal. Determine the
    device file of the SD card by typing in df -h at the command line and pressing the Enter key.
    You may see your SD card as device file /dev/sdb1, as shown in Listing A.1.


LISTING A.1 Device File Listing


Click here to view code image


$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 292G 29G 248G 11% /
udev 989M 4.0K 989M 1% /dev
tmpfs 400M 960K 399M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 998M 592K 997M 1% /run/shm
none 100M 24K 100M 1% /run/user
/dev/sdb1 3.7G 4.0K 3.7G 1% /media/christine/1427-8FBE
$
Free download pdf