Setup| Introduction| Preparing an SD Card| Booting and Updating|

Preparing an SD Card

Every computer needs to load an operating system when you switch it on. Therefore it will usually have a default place where it will look for an operating system in the first place. The process of loading the operating system is called booting. In general, if someone tells you to reboot your computer it means to switch is off and switch it back on again so that the operating system can be loaded from scratch. In the case of your desktop or laptop computers you will have a hard drive built into the computer or alternatively you might be able to boot from a USB device.

In the case of the Raspberry Pi its default booting device is an SD card. Pre-RPi3 used a mini-SD card but RPi3 and RPi4 use micro-SD cards. SD cards are available in various capacities, ie. the amount of information that can be stored on it. A basic operating system for the Pi will probably take about 2GB but then you will also need space for all the Carpentries lesson files and other software that you want to make available to the learners.

Usually when you buy a RPi you can also buy an SD card with the operating system pre-loaded. Alternatively you can buy an empty SD card and prepare it yourself. Preparing the SD card involves downloading an image of the operating system (and there are various versions available), downloading the software, Raspberry Pi Imager, required for writing the image to the SD card and then using the software to write the image to the SD card.

Internet connectivity might prove to be a problem during this workshop so your instructor might bring an image along that can be copied or perhaps they will provide pre-prepared microSD cards.

The Raspberry Pi can run several operating systems including several flavours of Linux. The official Raspberry Pi OS is based on Debian Linux.

If you have not already done so you have to download and install the Raspberry Pi Imager. Using your browser, navigate to the Raspberry Pi download page. You should now be able to select the download for your operating system. Click on the appropriate link and save the installation file to your computer. The web page will provide further information for installing the software on your computer. Once the installation is complete you should be able to run the Imager which will open with the following screen:

The Raspberry Pi Imager
The Raspberry Pi Imager

You can now click on the Choose OS button which will open a window for selecting the image you want to write to the SD card. Scroll down to the bottom where you should find an option Raspberry Pi OS (other). Click on that option:

Selecting an image to write to the SD card
n image of the RPi Imager software screen for selecting an image to be written to the SD card

Select Raspberry Pi OS Lite (64 bit). Make sure you have inserted the SD card into your computer. Now click on the Choose Storage button and select the device you want to write the image to:

Select a device to write the image to
An image of the RPi Imager software screen for selecting the device to be written to

Once you have selected the Storage device, click the WRITE button. You will be prompted to overwrite the information on the SD card, click on YES to accept.

Prompt to overwrite the SD card
An image of the RPi Imager software screen for confirming to overwrite the SD card

The image will now be written to the SD card.

Overwriting the SD card
An image of the RPi Imager software screen while writing the image to the SD card

Once the image has been written to the SD card a Write Successful message will be displayed.

Write Successful
An image of the RPi Imager software screen after the image has been written succesfully.d

You can now remove the SD card from your computer and insert it into the Raspberry Pi.