Swap SD card between pi's

Hello! First, let me say thanks for such an awesome project! I really like dietpi!

I have many pi’s running and many complicated setups. To complete some CPU intensive tasks, compile and install some packages it takes a lot of time on pi 4 but on the pi zero it could take up to several days.

To solve this problem I want to complete setup on pi 4 and swap the sd card to pi zero.

With raspbian swapping sd card between pi zero and pi 3 was very easy.

What should I do to reset pi-related settings? What about reinitialization via dietpi-firstboot.bash?
Any suggestions?
Thanks.

Hi,

whatever was working on raspbian, will work on DietPi same way because DietPi for RPi is nothing else than a raspbian lite with cool scripting and a reduced amount of not needed packages. so it’s like a raspbian extra lite :sunglasses:

However it depends in which directions you are swapping the SD cards. From a RPi4 to RPi3 it will work. Similar I did 2 weeks back. But not the other way around. So an Initial created SD card on a RPi3 will not work on a RPi4 :wink:

It won’t hurt to try if you would have a spare SD card. Finish your setup on RPi4 and swap the SD card to your zero, to see how it’s working.

Swapping between RPi4 to RPi3 works fine but RPi4 to RPi Zero W not. I’m using otg and usb ethernet adapter to connect to Pi Zero via ssh. Is there a way to debug this?

do you have a screen attached? It will be quite hard to debug without screen or access to the system. Might be some driver or kernel settings missing that are not needed on RPi4 but on the Zero.

If you would have time, you could try with standard raspbian lite. How it behave if you set it up on RPi4 and swap it over to the Zero.

EDIT
Regarding RPi Zero, I found this one. looks some manuell steps needed to get the network adapter working.

https://github.com/MichaIng/DietPi/issues/3253

Many thanks! I’m always doing headless setup so it seems the problem with usb0 interface. I will try.