Loading Raspberry Pi OS on the microSD card
How to follow this tutorial (optional read)
For those who are unfamiliar with tutorials, in the text of the tutorial, when you see something in quotations, it refers to something that you should see on your screen, whether it is a name of a menu, drop-down menu, option or button. If I tell you to type something, you will enter that something without quotes, unless specified.
I will be typing codes that you should see on the terminal, or for you to input into the terminal in a formatted code-block (see below). In such block, if the line starts with a pound/hash symbol, “#”, it means that it is just a comment to explain what the code directly below means or does, and the line itself does nothing. If the line starts with dollar-sign symbol “$”, it means that you enter the code after the dollar-sign as one command. You copy and paste the text after the “$”, paste it into the terminal, and press “Enter” on your keyboard. Without any prefixes, the text is the output you should see on your screen. The quotes inside a formatted block is not to be neglected, unlike those in the text of this tutorial. Type them in as you see them. Where I need you to change the text within the code, I will mark it off between “<” and “>”. You will replace the text without the “<” and “>”.
# This is just a comment. # The next line of code is what you will enter into the terminal. It will print "hello world" on your screen. $ echo "hello world" # The next line will be the output on your screen. hello world # Replace the text from "<" to ">", inclusive. $ echo "My name is <your name here>."
If you get confused as to what to type, what to ignore, and what to edit, come back and re-read this section. After a few examples, it should make sense to you.
To be safe, assume everything is case-sensitive.
First, download the Raspberry Pi Imager for your operating sysem. This will allow you to select and download the operating system for your Pi.
Insert your microSD card into your computer.
Once installed, you will open the Raspberry Pi Imager that you just downloaded and click on “Choose OS” -> “Raspberry Pi OS (other)” -> “Raspberry Pi OS Lite (32-bit)”.
A quick bit on “images” (optional read)
An image captures the state of a partition on your disk (hard drive or storage). In this case, the developers have developed an image of the operating system so that all of its features and attributes, such as file system and partition table will be retained. If you flash an image to your drive, you essentially cloning the drive that the image came from.
The difference from copying all of the files from one drive to another is that for new operating systems, there are a lot of configurations that are set on the first boot up, so most of the time, when you copy a drive, you are copying over a configuration that is meant to work with another device’s hardware, and/or you are opt out of a lot of configuration options.
Next, you will click on “Choose SD Card” -> select the drive of your mounted microSD card.
Now, click “Write”.
The Raspberry Pi Imager may have ejected your microSD card but before we use it, we need to put at least one more file on the microSD card. To remount your microSD card, take it out and put it back in.
Open your file manager and you will see that there are two partitions (looks like a disk or a drive) named “boot” and “rootfs”.