Imaging From Linux - Raspberry Pi User Manual

Hide thumbs Also See for Raspberry Pi:
Table of Contents

Advertisement

82
The first 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 file 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 difficult than flashing the card was
in Chapter 1 . Before starting, make sure you have enough disk space on your computer to
hold a file the size of the SD card . Then follow these steps:
Figure 5-9:
Creating an
image of an
existing SD card
dd
using
R A S P B E R R Y P I
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
device address (
/dev/sdX
computers with in-built SD card readers, this may appear as
a letter corresponding to the device . If so, use that address in the following instructions .) .
Type sudo dd of=temporaryimage .img if=/dev/sdX bs=2M to read the contents of the
SD card and write it to a file called
U S E R G U I D E 
to see a list of disks . Find the SD card by its size, and note the
, where
is a letter corresponding to the device . For some
X
temporaryimage.img
where
/dev/mmcblkX
X
(see Figure 5-9) .
is

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents