Page 1 of 1

Swap SD card between pi's

Posted: Tue Mar 17, 2020 9:31 pm
by dec0dOS
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?

Re: Swap SD card between pi's

Posted: Tue Mar 17, 2020 10:20 pm
by Joulinar

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 8)

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 ;)

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.

Re: Swap SD card between pi's

Posted: Wed Mar 18, 2020 12:48 pm
by dec0dOS
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?

Re: Swap SD card between pi's

Posted: Wed Mar 18, 2020 2:04 pm
by Joulinar
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.

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

Re: Swap SD card between pi's

Posted: Thu Mar 19, 2020 2:13 pm
by dec0dOS
Many thanks! I'm always doing headless setup so it seems the problem with usb0 interface. I will try.