Hardware Reference
In-Depth Information
Imaging from OS X
Imaging the Pi's SD card on OS X is almost exactly the same as lashing the SD card was back
in Chapter 1. Again, make sure you have enough hard disk space to hold a ile the size of the
SD card. hen follow these steps:
Select Utilities from the Application menu, and then click on the Terminal application.
Plug your Pi's smaller SD card into a card reader connected to the PC.
Type diskutil list to see a list of storage devices. Find the SD card by its size, and
note the device address ( /dev/disk X , where X is a letter corresponding to the device).
If the SD card has been automatically mounted and appears on the desktop, type
diskutil unmountdisk /dev/disk X to unmount it before proceeding.
Type dd of=temporaryimage.img if=/dev/disk X bs=2M to read the contents
of the SD card and write it to a ile called temporaryimage.img .
Imaging from Windows
he Windows Image Writer tool that you used to lash the SD card in Chapter 1, “Meet the
Raspberry Pi”, doesn't support the creation of images. Instead, you'll need to use the Parted
Magic disc to gain access to the Linux dd utility, as follows:
Insert the Parted Magic CD into your PC, reboot and choose Standard Settings.
Open a terminal window using the third icon from the left on the bottom tool bar,
which looks like a computer monitor (see Figure 5-10).
Type fdisk -l to get a list of drives on your PC, and ind your main hard drive by
size. Note the device name: /dev/sd XN , where X is the drive letter and N the partition
number. 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.
Create a mount point for your PC's hard drive by typing mkdir /media/harddrive ,
and then mount the drive with mount /dev/sd XN /media/harddrive -o=rw to
gain access.
Insert your SD card reader with the Pi's smaller SD card into the PC, and then use
fdisk -l to ind its device node ( /dev/sd Y where Y is the drive letter).
Type dd of=/media/harddrive/temporaryimage.img if=/dev/sd Y bs=2M
to read the contents of the SD card and write it to a ile called temporaryimage.img
on your hard drive.
Search WWH ::




Custom Search