[Tutorial] Transfer a complete Gladys installation to a USB drive

I just migrated Gladys to a PNY CS900 SSD on a Raspberry Pi 3B+
The differences with the Raspberry Pi 4:
The part « 2. Configure the boot sequence on the pi » is replaced by the following:

Update Raspbian:
We do not do a sudo apt-get update but the command below because the repository has changed its ‹ Suite › value

sudo apt-get update --allow-releaseinfo-change
sudo apt upgrade -y

Change the boot disk:
On the Pi 3, in the raspi-config, there is no Advanced Options menu
So we edit the config.txt file to add the line « program_usb_boot_mode=1 » at the end:

echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt
We have the confirmation on the next line…
image

We can also use the command:

sudo nano /boot/config.txt

It is permanent, but it is possible to still boot the Raspberry Pi from an SD card by removing this line and ensuring there is no blank line at the end of the file.

To check that everything is fine, we can look at register 17 of the OTP (One-Time programmable which designates the read-only memory that can only be programmed once). For this, we use the following command:

vcgencmd otp_dump | grep 17:
It should return the value 17:3020000a which indicates that everything went well

Then we go back to part 3.