Book Image

Raspberry Pi Networking Cookbook - Second Edition

By : Rick Golden
Book Image

Raspberry Pi Networking Cookbook - Second Edition

By: Rick Golden

Overview of this book

<p>With increasing interest in Maker Projects and the Internet of Things (IoT), students, scientists, and hobbyists are using the Raspberry Pi as a reliable, inexpensive platform to connect local devices to Internet services.</p> <p>This book begins with recipes that are essential to installing the Raspberry Pi and configuring it for network access. Then it continues with recipes on installing common networking services such as firewalls and file sharing.</p> <p>The final chapters include recipes for network monitoring, streaming data from the Raspberry Pi to IoT services, and using clusters of Raspberry Pis to store and analyze large volumes of data.</p>
Table of Contents (14 chapters)
Raspberry Pi Networking Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Image Writer for Windows – Win32DiskImager.exe


This recipe shows how to install a Raspberry Pi operating system image on an SD card using the open source Image Writer for Windows, Win32DiskImager.exe.

You should have already downloaded a Raspberry Pi disk image, and you should be ready to write the disk image onto an SD card using a Windows PC.

To complete this recipe, you will also need an Internet connection to download Image Writer for Windows.

Once you've completed this recipe, you will be able to write Raspberry Pi images to SD cards from a Windows computer.

Getting ready

Here are the ingredients:

  • A computer running Windows with an SD card writer

  • An SD card of 4 GB or greater (class 10 has the best performance)

  • A Raspberry Pi operating system image file

  • A precompiled Win32DiskImager binary

The precompiled binary of Win32DiskImager is distributed as a ZIP file and can be downloaded from https://launchpad.net/win32-image-writer.

How to do it...

The following steps are required to write a disk image to an SD card on a Windows computer:

  1. Download the Win32DiskImager ZIP file from https://launchpad.net/win32-image-writer.

  2. Expand the ZIP file to a folder on disk, such as C:\Win32DiskImager.

  3. Run Win32DiskImager.exe from the install folder.

  4. Select the downloaded Raspberry Pi disk image as the source image file and the location of your SD card writer as the target device.

  5. Click on the Write button to copy the image to the SD card.

Writing an image to disk takes about 5 minutes for a 2 GB image file. Once the image is written to the SD card, the SD card can be ejected and used to boot the Raspberry Pi.

How it works...

First, you will need to download and install Image Writer for Windows (Win32DiskImager). The Win32DiskImager is a single standalone executable and can be installed to a folder that is located anywhere on your PC.

Double-click on the expanded Win32DiskImager executable to start the application.

Once the application has started, select the downloaded Raspberry Pi disk image as the source Image File and then select the location of the SD card writer as the target device. When you click on the Write button, the Win32DiskImager writes the Raspberry Pi disk image to the SD card.

There's more...

The Win32DiskImager is also an excellent backup tool! After booting and configuring the Raspberry Pi, a backup can be made to preserve the image in case the SD card is damaged or lost.

To create a backup, perform the following steps:

  1. Run Win32DiskImager.exe.

  2. Select SD card as the source and a new image file as the target.

  3. Click on the Read button to read the SD card in a new image on the disk.

The steps needed to back up a Raspberry Pi disk image from an SD card are similar to those required to write the image. The only difference is that during a backup, the SD card is the source of the copy, and a new image on the disk is the target.

A new backup should be created after each update to the Raspberry Pi's operating system, application software, or configuration.

See also

  • Image Writer for Windows (https://launchpad.net/win32-image-writer): This utility was originally written to read and write disk images for a specific Linux distribution. However, it has now been generalized and is now a popular tool for many development projects, such as the Raspberry Pi. The Image Writer for Windows homepage has details about this disk image utility.