I’ve recently aquired a Raspberry Pi 5 along with an NVME drive. The idea is to ditch the SD card, and fully rely on the NVME drive for some extra performance. Since it will be headless, and since the DietPi installation guide doesn’t cover this use case, I’d like to ask a few questions.
In order to install DietPi on an NVME drive attached to a Raspberry Pi 5, I will likely first have to install DietPi on the SD card (a standard, normal installation) and then boot off the SD card. If that’s the case - is it possible to install DietPi from within DietPi itself on an attached NVME drive using ssh, while the Raspberry Pi is in headless mode?
If it is not possible to install DietPi on the NVME drive using a ssh session to the headless Raspberry Pi, then what other options do I have to install DietPi on the NVME drive without having to install a keyboard and a monitor to it?
Again, what I’m looking for is to install DietPi on the NVME drive without having to connect any kinds of keyboards, displays or mice to the Raspberry Pi. I can’t find any documentation on how to do this (or even if it’s possible), so any help is appreciated. Thank you in advance!
I just did it last night on my headless RPI5.
Install DietPi to SD, and used DD command to the nvme drive. Pulled the SD card and ran gparted to use all of the nvme. Took about 15 minutes total.
Thanks for this really clear and concise write-up, I was having doubts on whether DietPi would be the right option for this, seeing as the Raspi 5 is showing as “testing” on the main page. It looks like DietPi is gonna be the way to go.
You’re welcome. DietPI works flawlessly on the 5, I’m using it as a main server for lots of databases/stats (Grafana, Prometheus, Loki, ecc). I also saw that in the last months appears some rpi-eeprom updates, so now maybe it can boot straight from an NVMe drive.