Ubuntu

Building and Restoring a MIAB (Mail in a Box) Server

Last Updated: 31-December-2021 (editorial, added Resources)

Why write this up?

Surely this is documented elsewhere. Sure, it is, but as I worked through this on my own, I discovered that the official MIAB guide is missing a key point on achieving a successful restore/move of an MIAB instance.

MIAB’s “Moving to a New Box/Testing Backups” is where you start, so that’s where I started this journey. For completeness, I’ll repeat the steps given in the MIAB maintenance guide, but make some notes along the way.

The Triple Threat - Raspberry Pi 4b, Ubuntu 20.04.1 64-bit, and SSD Boot

Over the course of 2020, there was much enthusiasum in the Raspberry Pi community over the evolving ability of the Raspberry Pi 4b model’s to boot its operating system ‘directly’ from an external storage device. The ride has been a bit bumpy along the way, but very manageable for the hobbyist to play along.

However, I wanted to bring together four specific components to the equation:

  • Ubuntu Server 20.04 LTS 64-bit
  • an external SSD as the primary/OS storage device
  • and of course, a Raspberry Pi 4b (with non-beta firmware)
  • And most importantly, I didn’t want to have to do a lot of ‘afterwork’ to maintain the setup.

Specifically, I didn’t want to have to manually copy a bunch of RPi-specific boot files around to support booting a 64-bit kernel, nor with decompressing the compressed kernel that is generated by default when the Ubuntu kernel is updated in the normal course of maintenance. I believe that I may have waited just long enough for the Raspberry Pi firmware to have sufficiently matured to solve the former concern, while the scripting shown below will solve the latter concern.