- Unmount the device file you discovered in step 1. Type the command umount
media_card_device_file_name (where media_card_device_file_name is the device file name
assigned to your SD card) and press the Enter key. (Watch the command used here. The
command is umount not unmount.) Listing A.2 shows an example, where /dev/sdb1 is
the device file name of the SD card.
LISTING A.2 Unmounting the Device File
$ umount /dev/sdb1
$
- Assuming that you have downloaded the Raspbian operating system zip file already, you need
to extract the Raspbian image from the zip file. At the command line, using the cd command, go
to where the image file is currently located on the Linux system. For example, you may have it
in your Downloads directory.
When you are in the correct directory, use the unzip command to extract the Raspbian image
file. Listing A.3 shows an example of the commands you might need to use.
LISTING A.3 Going to the Directory Containing the Image File
Click here to view code image
$ cd /home/christine/Downloads
$ pwd
/home/christine/Downloads
$ ls
2013-02-09-wheezy-raspbian.zip
$ unzip 2013-02-09-wheezy-raspbian.zip
Archive: 2013-02-09-wheezy-raspbian.zip
inflating: 2013-02-09-wheezy-raspbian.img
$ ls
2013-02-09-wheezy-raspbian.img 2013-02-09-wheezy-raspbian.zip
$
- Type the following command:
Click here to view code image
sudo dd bs=4M if=image file name of=/device_file_of_SD_card
(replacing image file name with the actual name of your image file and
device_file_of_SD_card with the actual SD card device file) and press the Enter key. Listing
A.4 shows a command that is similar to what you need to enter.
LISTING A.4 Moving the Image File to the SD Card
Click here to view code image
$ sudo dd bs=4M if=2013-02-09-wheezy-raspbian.img of=/dev/sdb1