Full backup/restore for Samsung Galaxy with nandroid
After a long work i have created a new recovery image. This containts a new gui and a full working nandroid backup and restore. The backup and restore is tested and it works great. The only issue is, that the date of the files from /data is from the backup day. But this does not happens.
The new gui
I have created a new gui for the recovery image. It based on the sources from Jesus Freke 1.43 (thank you very much for putting the sources on the web).
The new menu has three option:
- reboot (press back button)
- backup (press menu button)
- restore latest (press call/green button)
(image quality is very bad, because the lack for a good camera)
New nandroid backup
The hardware of the Samsung is not same as htc. So i have update nandroid to work proper with the Galaxy. The Galaxy has an ext3 partition for /data not in the mtd memory on the phone. This partition is much bigger as on G1/Magic. So you must have 885mb free for backup. The backup did not need it full, but it is possible.(my backup is only 120mb big)
Install the new image
- download image and unzip
- boot in fastboot mode
- flash the new image
- fastboot flash recovery recovery_gal_msdk.img
- reboot (with short put off batterie)
Boot in recovery mode with pressing volume_down+call+power. If you see the gui, press menu button for backup. Or the call/green button to restore the latest backup.
The backups are stored in the internal sdcard of the mobile phone. Only the lastest backup will be restored. For restore an older backup, rename the diectory which contains the backup to being the last date.(see /sdcard/nandroid/mem=109M/). /userdata and /cache are not restored by default, because they contains not usefull data. Backup to the microsd-card, located under /sdcard/sd, will work in the next release.
Changelog recovery image
- update nandroid script
- recompiled the recovery binary
- new working gui
- added /etc/fstab for the common android mount points
- removed the Samsung stuff
- custom background image
Please test it and write a comment with the result. Final, don’t forget to look at my sponsors.