Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP DooMLoRD

20th February 2011, 12:06 AM   |  #1  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,127
 
13,127 posts
Join Date:Joined: Jul 2010
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://forum.xda-developers.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
Attached Files
File Type: rar unyaffs-x86-win.rar - [Click for QR Code] (576.3 KB, 13523 views)
Last edited by DooMLoRD; 19th April 2011 at 12:12 AM.
The Following 58 Users Say Thank You to DooMLoRD For This Useful Post: [ View ]
20th February 2011, 04:42 AM   |  #2  
Senior Member
Flag Melbourne
Thanks Meter: 245
 
391 posts
Join Date:Joined: Dec 2010
Donate to Me
More
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
The Following User Says Thank You to MrHassell For This Useful Post: [ View ]
20th February 2011, 04:42 AM   |  #3  
javagreen's Avatar
Senior Member
Flag Dombivli
Thanks Meter: 188
 
886 posts
Join Date:Joined: Aug 2010
More
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
20th February 2011, 07:19 AM   |  #4  
cobrato's Avatar
Senior Member
Thanks Meter: 1,958
 
827 posts
Join Date:Joined: Jul 2010
Donate to Me
Thank you. It is very useful.
21st February 2011, 08:28 AM   |  #6  
Z3US911's Avatar
Senior Member
Flag Delhi
Thanks Meter: 147
 
1,031 posts
Join Date:Joined: Jan 2011
Donate to Me
More
now i don't have to google for this thanx...
3rd April 2011, 01:24 PM   |  #7  
velnens123's Avatar
Senior Member
Flag Lincoln
Thanks Meter: 249
 
728 posts
Join Date:Joined: Dec 2010
More
How To Repack Files?
3rd April 2011, 05:31 PM   |  #8  
Member
Thanks Meter: 6
 
84 posts
Join Date:Joined: Aug 2010
Will this check for the md5?
3rd April 2011, 05:50 PM   |  #9  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 39,127
 
13,127 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by velnens123

How To Repack Files?

i didnt follow...

do u want to place/add/remove files to make ur own yaffs img?
3rd April 2011, 05:51 PM   |  #10  
Senior Member
Thanks Meter: 14
 
228 posts
Join Date:Joined: Aug 2007
More
i searched a tool like this... thank for this HOW TO!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes