Clone NanosG20

I've 2 NanosG20, one of them has the O.S. customized and my own applications. The second one is with factory settings. I was wondering if it is possible to get an USB image from the first one and copy it (Clone it) to the second one. If this is possible, what is the procedure of getting the USB image from te customized NanosG20

Re: Clone NanosG20

You can clone your media by creating a tar archive that can be extracted to another, freshly formatted (ext3) media.
Some things should be taken care of (e.g. your net rules and ssh keys should be deleted first, you should use ext3 on USB sticks and SD cards).
Here are some commands that should do the job:

1.) Prepare your master card (the media you want to clone, you should not use this one for booting - otherwise repeat this step)

rm /etc/udev/rules.d/70-persistent-net.rules

2.) Create an archive

tar -cvzf PATH_TO_SAVE_YOUR_ARCHIVE/rootfs.tar.gz .

3.) Format your new media


4.) Extract your archive (first mount the new media, change to the corresponding directory)

tar -xvzf PATH_TO_YOUR_ARCHIVE/rootfs.tar.gz .

5.) Boot the new system and re-generate SSH keys

rm /etc/ssh/*key*
dpkg-reconfigure openssh-server
Syndicate content