Hardware Reference
In-Depth Information
he irst step to moving to a larger SD card is to create an image of the existing card. If you
have access to two SD card readers, you can skip this step and, in the later instructions,
replace the name of the image ile with the device address of the SD card reader with the Pi's
original card inserted.
Imaging from Linux
Creating an image of the SD card under Linux is no more diicult than lashing the card was
in Chapter 1. Before starting, make sure you have enough disk space on your computer to
hold a ile the size of the SD card. hen follow these steps:
Open a terminal from your distribution's applications menu.
Plug your Pi's smaller SD card into a card reader connected to the PC.
Type sudo fdisk -l to see a list of disks. Find the SD card by its size, and note the
device address ( /dev/sd X , where X is a letter corresponding to the device. For some
computers with in-built SD card readers, this may appear as /dev/mmcblk X where X is
a letter corresponding to the device. If so, use that address in the following instructions.).
Type sudo dd of=temporaryimage.img if=/dev/sd X bs=2M to read the contents of the
SD card and write it to a ile called temporaryimage.img (see Figure 5-9).
Figure 5-9:
Creating an
image of an
existing SD card
using dd
Search WWH ::




Custom Search