1.3 Install Raspbian onto a Raspberry Pi 3B

The version that we are using when writing Raspberry Pi Full Stack is Raspbian Stretch, which is release on September 7th, 2017.

Details about how to install Raspbian onto a Raspberry Pi can be found on its official website:https://www.raspberrypi.org/documentation/installation/installing-images/linux.md.

In short, ONLY one command will do the installation on a SD/TF card:

sudo dd bs=4M if=2017-09-07-raspbian-stretch.img of=/dev/mmcblk0 status=progress conv=fsync

To make FULL use of the SD/TF card's storage, traditionally, you need to manually resize/enlarge /dev/mmcblk0p2 to cover the 2nd unallocated storage 24.91G. Ever since Raspbian Stretch, you can plug out the SD/TF card directly and try to reboot your Raspberry Pi 3B without manually changing anything. Raspbian's FIRST booting will automatically resize/enlarge /dev/mmcblk0p2 to cover the entire 2nd unallocated storage 24.91G.

Now, we can plug the SD/TF card out from the PC and plug it into the Raspberry Pi 3B as follows:

and then, reboot it.

Before starting playing with Raspbian on Raspberry Pi, there are still two more steps to go:

  • raspi-config

  • Enable the Internet

Last updated