In this tutorial you will learn:
- How to flash Ubuntu image to MicroSD card from command line
- How to flash Ubuntu image to MicroSD card from GUI
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa|
|Software||dd, disks, xz|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
Install Ubuntu 20.04 on Raspberry Pi step by step instructions
- Download the Ubuntu 20.04 Raspberry Pi image appropriate to your Raspberry Pi version. The image you need to download will have the
*.img.xzfile extension. For example:
$ ls ubuntu-20.04-preinstalled-server-arm64+raspi.img.xz
DID YOU KNOW?
arm64is a 64bit architecture image and the
armhfis a 32bit architecture image.
- Insert your MicroSD card into your computer but do not mount it.
Flash the image using command lineCheck in
/dev/to obtain its block device name. You can use a graphical tool like
gpartedor command line
fdisktools to look too. Once you know where your card is, you can use the
ddcommand to flash the Ubuntu 20.04 image to your MicroSD card.
To flash the Ubuntu 20.04 image to your MicroSD card first extract the image:
$ unxz ubuntu-20.04-preinstalled-server-arm64+raspi.img.xzNext, execute
ddcommand to flash the image. Make sure to enter the appropriate path to the Raspberry Pi image and MicroSD card block device name:
$ sudo dd if=/path/to/ubuntu.img of=/dev/sdX bs=8M
Flash the image using GUI
- Wait for the flashing process to complete. Once ready, remove the MicroSD card reader.
- Insert the MicroSD card into you Raspberry Pi board and start it up. The booting process may take some time, so be patient. The Raspberry Pi Ubuntu default user name and password is