A shell script for configuring an external USB drive as root filesystem on a SBC running DietPi.
On a SBC running DietPi, with a USB-connected storage device you wish to use for your root filesystem:
wget https://raw.githubusercontent.com/sysdump/DietPi-ExternalRoot-Helper/refs/heads/master/adafruit-pi-externalroot-helper
chmod +x adafruit-pi-externalroot-helper
sudo ./adafruit-pi-externalroot-helper -d /dev/sda
...where /dev/sda is the external USB you wish to use for a root filesystem.
- Modified from benjamin-nose/Adafruit-Pi-ExternalRoot-Helper
- Based on Adafruit-Pi-ExternalRoot-helper