Post Last Edited by liab at 2014-10-10 06:39 |
Thank you dlanor for the good tip. For me it is very important too, to save a good system card. Your hint works for me fine. The only disadvantage is, it only works on sd-card with the same bigness. So I remember my very old way to save a complete OS with rar.
The following way I use with success with the Android 4.2 Stock Image. I love this Image because it has a good xbmc. My good sd-card with all my favourite apps and all setting. So it's time to save it:
1. Save the sd-card, a Linux PC is necessary, I use kubuntu
I find out, sd-card with the stock image has seven readable partitions, only 3 are important for restore, they are:
sdx1 with the data like movies, settings etc. (important)
sdx2 for boot
sdx7 with the android OS and apps (important)
sdx8 with installed apps, libs, data etc. (important)
sdx11 - sdx13
First job is to save all 3 partitions behind one another. I mount it to /mnt/sd and save it as root with tar -cvlpzf ...
2. Restore to same or other sd-card
2.1 Preparation, a windows PC is necessary
Write with PhoenixCard a new sd-card, for me it's the stock image.
Put this Card into the banana pi and start it. Do all normal and wait until the 7 standard apps are ready. This is necessary, because a fresh card has no sdx8 partition!
2.2 Write back, a Linux PC is necessary
We mount first sdx7 and write back the saved sdx7.tar.gz with the command (as root) and delete the complete content and write the content from the saved image.
tar -p --same-owner -xvzf sdx7.tar.gz
next same with sdx8 and last sdx1. Very, very important is the Parameter
The apps have unusual groups and users, such as 30001. The whole thing will not work when there something is wrong!
If all partitions on the sd-card are ok, it suffices to restore the 3 partitions.
I tried it with the stock image on several different cards (16 and 32 GB) and it works fine.
It would be wise, if the system expands with new apps, to make a new backup from the 3 partitions.
A tip: I could not install some apps like MeyPro HD and AndroidDreamer in Android 4.2. But in Android 4.4 they could be installed. The only thing to do, copy them from 4.4 and insert them in 4.2. It works!