-
Notifications
You must be signed in to change notification settings - Fork 2
C. Booting from USB
Because we are using a microSD card to store the OS we do not take advantage of the full benefits of using a Linux distro, being lightweight i'm naturally referring to speed.
Depending on the card we're using we can have speeds from 25 MBps to 50 MBps (theoretically, but the best cards usually go up to 38 MBps).
Again depending on whether we're using a flash drive, or HDD or SDD we can go up to I/O 140MBps / 200 MBps
Keep in mind that we already have Ubuntu installed on the memory card. I think we can also directly on an USB Storage Drive but for that we would need to start the process from scratch going back to the imager (more details here ).
PREREQUISITES Raspbian OS - the only stable way to boot from USB is to have an micro SD card with the original operating system installed and an USB device with Ubuntu installed.
[Side story] Install rpi-eeprom
rpi-eeprom - is a library that we will use to clone our card onto the USB drive
-
Boot from your standard microSD card
-
Update your OS and firmware (if done recently, you can skip this step)
$sudo apt update
$sudo apt full-upgrade
$sudo rpi-update
- Reboot the Raspberry Pi
$sudo reboot
- Install the latest bootloader
$sudo rpi-eeprom-update -d -a
-
Reboot the raspberry again
-
Launch raspi-config
$sudo rpi-eeprom-update -d -a
-
Select Boot Options (3) (then press Enter)
-
Select Boot ROM Version (then Enter)
-
Select Latest and then OK
-
Select No to use latest boot ROM, then press OK
-
Select Boot Order and press Enter
-
Select USB Boot, then choose OK
-
Select Finish, but do not reboot (select No)
-
If you do not have Ubuntu already installed on the USB drive -> Launch SD Card Copier (the usb device should be connected to the raspberry using USB 3 port)
-
Select the Copy from Device (micro SD card) and the Copy to Device (flash drive, HDD or SDD). Click Start, the process should take about 10m.
-
Shut down the Raspberry
$sudo shutdown -h
-
Remove the microSD card
-
Power up and it will boot from USB