I have a RasPi4 w/ Dietpi 9.17.2, Nextcloud 31.0.9, and some other apps. All up to date, AFAIK. It’s working (very) well, running off an external 500 GB SSD via USB3 (32 GB root partition, the rest on BTRFS, i.e. dietpi-userdata). No SD card.
I’d like to migrate this to a Pi5 + NVMe base to prepare for many more happy years of DietPi
My first attempt was to run Jeff Geerling’s rpi-cloneto copy everything to the NVMe stick, connected via a USB adapter, and then boot off that on the Pi5. I made sure that both kernels are present, and that /etc/network/interfacessets both LAN and WiFi to DHCP to avoid conflicts (to keep the existing server running until the migration is successful). I also made sure that the NVMe-via-USB stick is earlier in the boot order than the target’s NVMe base.
Partial success: the NVMe stick boots (LED activity) in the Pi5, ping works, but SSH hangs (this is OpenSSH, not DropBear). This clone is still running bookworm, BTW. I did verify that a fresh trixie install on the Pi5 works on LAN and WiFi, off its internal NVMe, so the target h/w is ok.
Unfortunately, I don’t have easy access to the Pi5’s serial port to debug console msgs.
To follow up: progress, /etc/fstabwas not mounting the 3rd partition properly, that’s the btrfs area where dietpi_userdata lives. This extra UUID was not adjusted by rpi-clone… doh.
Now the Pi5 boots with the NMVe clone via USB and properly gives SSH access \o/
First, ensure that the RPi5 boots directly from the NVMe. A pure DietPi is sufficient for testing.
Ensure that the boot order prioritizes USB. Connect your external drive to the RPI 5 and start the system as usual from the connected USB drive. You can then follow these instructions and move the system to the NVMe of the RPi5. Normally, the RPi5 should then boot from the NVMe when the USB drive is no longer connected.