Installing Raspberry Pi OS on an SD Card for a Raspberry Pi

Simple instructions on getting a Raspberry Pi setup with Raspberry Pi OS including how to expand the drive to take the whole SD card.

Installing Raspberry Pi OS on an SD Card for a Raspberry Pi
After writing this post, version 1.7 of the Raspberry Pi Imager released allowing you to setup additional options at the time of imaging such as enabling SSH, setting username and password, configuring WI-FI, and more!
  1. Download the Raspberry Pi Imager
  2. Pick the operating system: Raspberry Pi OS in the imaging software
  3. Pick your storage to be your SD card
  4. Click Write
Writing the Rasp Pi OS, sped up. Actual time was about 8 minutes.

This results in the SD card having a boot sector, some storage, and a whole bunch of unallocated space:

Windows disk management view of the SD Card.

With a keyboard and monitor plugged in or via SSH (which could be setup via the Raspberry Pi Imager v1.7+ or via my post around running the Pi headless), we can make use of the whole drive, with the following:

  1. Run sudo raspi-config
  2. Navigate to "6. Advanced Options"
  3. Hit enter on "A1 Expand Filesystem". This will expand drive on next reboot
  4. Reboot system (sudo reboot)
Using the Raspberry Pi config to expand the drive.

Following the reboot, the drive will be expanded to take the remaining unallocated space. Putting the SD card back into Windows after the reboot shows us the space has now been allocated:

Windows disk management view of the expanded drive.

And with that, you're good to go with your clean Raspberry Pi.