Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar
- - - - -

How to set up a Raspberry Pi 4B to boot Ubuntu Mate ARM64 from USB


  • Please log in to reply
3 replies to this topic

#1 Naught McNoone

Naught McNoone

  •  Avatar image
  • Members
  • 804 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Great White North
  • Local time:12:02 AM

Posted 06 July 2021 - 08:10 AM

How to set up a Raspberry Pi 4B to boot Ubuntu Mate ARM64 from USB

 

 

Guide Overview

The Purpose of this Guide is to show you how to set up a Raspberry Pi 4B to boot from a USB SSD using Ubuntu Mate ARM64.

Raspberry Pi's have come a long way.  The latest model 4B is a nice little micro computer, that rivals some low end laptops, and possibly some mid range ones, as well.

The Pi-4B comes with 2, 4, or 8GB of RAM.  If you are looking at building a desktop Pi, then I recommend the 8GB board.  Remember, they are SoC systems, so you can't add extra memory to them afterwards.

Tools Needed
Any PC, Linux, Windows, or Mac, with the Raspi Imager  installed.
A functioning Raspberry Pi-4B with a recommended minimum 4GB RAM.
A minimum 8GB Micro SD card, 32GB Recommended.
Either a micro SD port on the PC, or a Micro SD card adapter.
An External USB Drive, SSD recommended.
A copy of the Ubuntu Mate ARM64 image, 20.10 or later.


NOTE: If the external USB drive draws more than 600mA, a separate power source is required for the drive!

For the purpose of this guide, I am using an 8GB Pi.  It is attached to the back of a 24" Philips monitor, using a Vesa mounted enclosure.  It has a 64GB Sandisk Ultra Micro SD Card, and a 512GB Kingston PCIe NVMe M2 SSD mounted in a Sabrent USB 3 enclosure.

 

Instructions

Step :step1: - Prepare the Micro SD card

If you have not already done so, install the Raspi Imager program on you PC or Mac

Insert the Micro SD card into your PC or Mac, and then start the Raspi Imager.


Under "Operating System" select the default Raspberry Pi OS (32 bit.)
Under "Storage" select your Micro SD card.
Write the image to your Micro SD card.

 

The Raspi Imager will download and install Pi OS (32 bit.)


Step :step2: - Boot the Pi 4B and run all updates.

When the Pi OS boots for the first time, it will expand and install it's self on the Micro SD card.
Go through the set up for the Pi OS.

Once the Pi OS is set up, reboot the Pi 4B to show that default settings are working properly.
Open a terminal (<ctl>+<alt>+<t>) and run the following:


sudo apt update
sudo apt upgrade
sudo rpi-eeprom-update
sudo apt install rpi-imager

 

This will ensure that all software and firmware are up to date.


Step :step3: - Connect and Install Ubuntu Mate on USB Drive.

Connect your USB drive to Pi 4B.  SSD drives should connect to the USB 3 ports, to take advantage of higher speeds.

Open the web browser and download the Ubuntu Mate ARM64 image.

NOTE:  Ubuntu MATE 20.10 and newer support USB booting, but Ubuntu MATE 20.04 does not.  Ensure that you download Mate 20.10 or later.

Start the rpi-imager from the terminal, or Imager from the desktop menu.

 

WARNING!  All existing files on the USB drive will be erased!  A new partition table and Ubuntu Mate will overwrite the drive!

 

Under "Operating System" select Custom, and navigate to the Ubuntu Mate ARM64 image.
Under "Storage" select your USB drive.
Write the image to your USB drive.


Step :step4: - Set Pi 4B to boot from USB

In the terminal, start the raspi-config utility.


sudo raspi-config


Select "Advanced Options" from the menu.
Select "Boot Order" from the Advanced Options Menu.
Select "USB Boot" and then tab to <Ok> and hit enter.

 

A note will pop up telling you that USB is the default boot device.  Hit enter to clear the pop up.
Tab to <Finish> on the menu and hit enter to exit the menu.

At this point you have the option to return to the Pi OS, or reboot the Pi.

 

When it boots it will bypass the Micro SD card, and go to the USB drive.
Run through the setup for Ubuntu Mate, after which it will become your default OS on the Pi.


POST INSTALL NOTES:

  • You have the option to remove the Micro SD card, if you wish.  Set it aside, and mark it for use on the Pi.  It will be your recovery method, if your system fails to boot from the USB drive.  You will also need it if you wish to change the settings in the Pi4 eeprom.
  • To boot back into Pi OS, ensure the Micro SD card is installed, and unplug the USB drive.  The Pi will fall back to the SD card if it fails to find a USB boot device.
  • After Ubuntu Mate 20.10 is installed, it will offer the option to ugrade to 21.04.  I suggest declining the option, and working with the system for a few days to ensure that it is functional and stable.  You can upgrade at a later date, by using the terminal command "do-release-upgrade".
  • Since upgrading to 21.04 I am getting a "System Error" on login.  After looking at the /var/crash log, I think it's related to CUPS, but I am not sure.  I will looking into it later.  For now, after clearing the error report, the system appears to function normally.
  • There are known issues with the Logitech Unifying Receiver not working properly with the Pi4.  It fails to detect the receiver, and you are left with no keyboard or mouse.  The Logitech MK270 KBM combo would not work.
  • Surprise!  The cheap $20 house brand from Staples does.  So does a few other non Logitech KBM's I tried.  I suspect the error is with the 2.4GHz band, used by the receiver.  Because it is also used by Bluetooth and WiFi, it may be interference.  I am investigating further.


Enjoy you piece of the Pi!

Cheers!

Naught     :busy:

 



BC AdBot (Login to Remove)

 


#2 Naught McNoone

Naught McNoone
  • Topic Starter

  •  Avatar image
  • Members
  • 804 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Great White North
  • Local time:12:02 AM

Posted 08 July 2021 - 10:04 AM

. . . Since upgrading to 21.04 I am getting a "System Error" on login . . .

 

Source of system error is two programs.

 

ayatana-indicator-printers and redshift-gtk

 

There are known issues with both these crashing, found on Github.

 

I have removed both for now, and the system boots with no errors.

 

Cheers!

 

Naught     :busy:



#3 Rocky Bennett

Rocky Bennett

  •  Avatar image
  • Members
  • 6,483 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Mexico, USA
  • Local time:10:02 PM

Posted 08 July 2021 - 10:31 AM

I have a couple of Raspberry Pi 4's that I like to play with. Thanks for taking the time to write this guide up.


Mr. Rocky Bennett

Linux User and Windows 10 Lover.


#4 Naught McNoone

Naught McNoone
  • Topic Starter

  •  Avatar image
  • Members
  • 804 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Great White North
  • Local time:12:02 AM

Posted 10 July 2021 - 07:57 AM

@ Rocky

 

Your welcome, mate!

 

 

 

@ All

 

Update on Pi-4B and Logitech Unifying Receiver

 

I have tested 4 other brands of KBM sets with two different Pi-4Bs.

 

One Pi-4B had been updated with the latest firmware, the other was an older version.

 

Both worked with all four.

 

They are:

 

Microsoft Wireless 2000 KBM set - $60 CA

Walmart House Brand "Blackweb" KBM set - $30 CA

Staples House Brand 59544-CA KBM set - $20 CA

Generic Wireless Mini Keyboard w/touch pad - $15 CA

 

 

The Logitech Unifying Receiver worked with neither of the Pi-4Bs.

They knew something was plugged in, but could not detect what the device was.

 

I am looking around for an older Logitech, with an older type of receiver, to see if it will work.

 

Cheers!

 

Naught     :busy:

 

 






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users