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)
Using it
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
mSDK 0.3l:
- 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.
Tags: androidSDK, nandroid, recovery, Samsung Galaxy
Wednesday, August 5th, 2009 | multioptionSDK | Comments RSS | Respond | Trackback

The link to the new image is incorrect
wrong link!
Oh, sorry. Is fixed.
Thanks
Good job!
Thanks, works fine so far with one small problem.
The factory reset function by inputting the code *2767*3855# has stopped working.
Can you fix it?
any chance you will let download a source code of /sbin/recovery utility?
Thanks
I plan this for the next release.
Great, thanks a lot. When can we expect for the next release?
[...] wieder draufspielen; wenn man vorher einen Nandroid-Backup gemacht hat, ist dies umso einfacher. (Full backup/restore for Samsung Galaxy with nandroid | receptorBlog) Sonst kannst du mit ein bisschen Hilfe von Google und der Forum Suche bestimmt jemand finden der [...]
[...] und das zu dem Zweck das Gerät auf Wunsch mit Root Rechten bedienen und ein vernünftiges Backup mit Nandroid erstellen zu können. Dieser tolle Beitrag im Forum von android-hilfe.de hat enthält [...]
Keep up the good work and thanks!
Works like a charm, thanks!
Also, flashrec works on the phone, so it doesn’t have to be flashed from fastboot mode.
working so far. also I’m actively working on a custom rom for a newer android version. currently my biggest problem is that for some reason with new system, userdata, kernel, ramdisk, somehow my data partition is only 1.8 mb big, which is obviously not big enough to boot. not sure how that happened, don’t remember changing partition sizes. Feell free to contact me if you got an idea or want to assist somehow.
this is really important informations thx a lot
Does it work with samsung spica?
no, the models are different