Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

If you want to clone a SD image which was created on a Raspberry Pi and use the cloned SD on another Raspberry you have to execute one important additional step. Otherwise the Raspberry starting with the cloned SD card will not get a network connection.


As usual configure the system with all the stuff you need on the cloned image. Finally delete /etc/udev/rules.d/70-persistent-net.rules and shutdown the system. Don't boot the image any more. Now you have a master image which can be cloned. Clone the SD card and other Raspberries will startup a network connection successfully with this cloned image.

What's the root cause for the networking issue?

/etc/udev/rules.d/70-persistent-net.rules is used by Linux to map an interface MAC address to a network interface eth0 or wlan0. If now the SD card is used on another Raspberry with another MAC address the new MAC address will be registered with the next free network interface - which is eth1 or wlan1 - and in /etc/network/interfaces there is no network definition for eth1 or wlan1 because there was only eth0 or wlan0 defined.

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.