[How-To] Extracting/Accessing Recovery/Nandroid backup (.img) files

Search This thread

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,

* If the MODS feel this thread is redundant please delete it *

Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).

linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
and compile using:
Code:
gcc -o unyaffs unyaffs.c

for windows users:
you can download the attached rar file and extract it...


usage:
1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
3) go to terminal/command prompt, change directory to where those files are and execute:
e.g. for system.img
Code:
unyaffs system.img
the contents of the .img file will be extracted in that directory


there is also an app in the market YaffsExpert with which you can extract the .img files using phone


Inspired from:
guide at EVO 4G forums http://xdaforums.com/showthread.php?t=890508
Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
 

Attachments

  • unyaffs-x86-win.rar
    576.3 KB · Views: 16,757
Last edited:

MrHassell

Senior Member
Dec 10, 2010
393
249
Melbourne
innertech.com.au
xlnt

+1 nice post! very useful info for any Android owner, anyone ever backed up with nandroid or xRecovery and felt like they forgot something from one of their earlier backups...? This is what you need :)
 
  • Like
Reactions: gadkari

javagreen

Senior Member
Aug 10, 2010
965
203
Dombivli
Pretty nice and useful. I actually was tinkering around with these files the other day as I contemplated running either Z's Froyo Beta 4 OR J's GB ;)
 

mohdameer

Senior Member
Aug 23, 2010
84
6
this will just extract the contents of nandroid/recovery backups...

u can use md5summer or similar progs to check md5 sums..

thanks. the reason i asked was that, everytime i try any rom from z, i get md5 error while restoring old backup. after extensive search in this forum and loosing my sms messages, i found a way. using adb shell, then using "busybox md5sum" i was able to generate the correct md5 hashes or whatever its called then restore the xrecovery backups. if i use the md5sum directly from the adb shell then xrecovery gives me mismatch.

may be z can look into this. i beleive the md5 mismatches are caused due to different md5sum command in adb shell and in busybox.
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
thanks. the reason i asked was that, everytime i try any rom from z, i get md5 error while restoring old backup. after extensive search in this forum and loosing my sms messages, i found a way. using adb shell, then using "busybox md5sum" i was able to generate the correct md5 hashes or whatever its called then restore the xrecovery backups. if i use the md5sum directly from the adb shell then xrecovery gives me mismatch.

may be z can look into this. i beleive the md5 mismatches are caused due to different md5sum command in adb shell and in busybox.

no need... the problem is with blanks /spaces " " in ur file name/ folder name... check that... if u have renamed the backups (folder name) and have space in it u will get md5 error... spaces in folder names are not supported...
 
  • Like
Reactions: frost866

easyyu

Senior Member
Mar 11, 2011
367
29
Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,

* If the MODS feel this thread is redundant please delete it *

Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).

linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
and compile using:
Code:
gcc -o unyaffs unyaffs.c

for windows users:
you can download the attached rar file and extract it...


usage:
1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
3) go to terminal/command prompt, change directory to where those files are and execute:
e.g. for system.img
Code:
unyaffs system.img
the contents of the .img file will be extracted in that directory


there is also an app in the market YaffsExpert with which you can extract the .img files using phone


Inspired from:
guide at EVO 4G forums http://xdaforums.com/showthread.php?t=890508
Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
Thank you very much!
 
  • Like
Reactions: spradling

Top Liked Posts

  • There are no posts matching your filters.
  • 58
    Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,

    * If the MODS feel this thread is redundant please delete it *

    Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).

    linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
    and compile using:
    Code:
    gcc -o unyaffs unyaffs.c

    for windows users:
    you can download the attached rar file and extract it...


    usage:
    1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
    2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
    3) go to terminal/command prompt, change directory to where those files are and execute:
    e.g. for system.img
    Code:
    unyaffs system.img
    the contents of the .img file will be extracted in that directory


    there is also an app in the market YaffsExpert with which you can extract the .img files using phone


    Inspired from:
    guide at EVO 4G forums http://xdaforums.com/showthread.php?t=890508
    Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
    How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
    1
    xlnt

    +1 nice post! very useful info for any Android owner, anyone ever backed up with nandroid or xRecovery and felt like they forgot something from one of their earlier backups...? This is what you need :)
    1
    Will this check for the md5?

    this will just extract the contents of nandroid/recovery backups...

    u can use md5summer or similar progs to check md5 sums..
    1
    thanks. the reason i asked was that, everytime i try any rom from z, i get md5 error while restoring old backup. after extensive search in this forum and loosing my sms messages, i found a way. using adb shell, then using "busybox md5sum" i was able to generate the correct md5 hashes or whatever its called then restore the xrecovery backups. if i use the md5sum directly from the adb shell then xrecovery gives me mismatch.

    may be z can look into this. i beleive the md5 mismatches are caused due to different md5sum command in adb shell and in busybox.

    no need... the problem is with blanks /spaces " " in ur file name/ folder name... check that... if u have renamed the backups (folder name) and have space in it u will get md5 error... spaces in folder names are not supported...
    1
    Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,

    * If the MODS feel this thread is redundant please delete it *

    Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).

    linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
    and compile using:
    Code:
    gcc -o unyaffs unyaffs.c

    for windows users:
    you can download the attached rar file and extract it...


    usage:
    1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
    2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
    3) go to terminal/command prompt, change directory to where those files are and execute:
    e.g. for system.img
    Code:
    unyaffs system.img
    the contents of the .img file will be extracted in that directory


    there is also an app in the market YaffsExpert with which you can extract the .img files using phone


    Inspired from:
    guide at EVO 4G forums http://xdaforums.com/showthread.php?t=890508
    Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
    How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
    Thank you very much!