LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to extract userdata.img (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-extract-userdata-img-4175436647/)

chinabenjamin66 11-11-2012 08:09 AM

How to extract userdata.img
 
Hello friends,

I would like to extract userdata.img which is one of the firmware files complied under Android platform.


You can see what I have tried below:

Code:

benjamin@benjamin-virtual-machine:/GPL/tmp/userdata$ file userdata.img
userdata.img: VMS Alpha executable
benjamin@benjamin-virtual-machine:/GPL/tmp/userdata$ /GPL/unyaffs-master/unyaffs userdata.img
Can't determine flash layout, perhaps not a yaffs2 image

as for this situation, how to deal with it? Are there any other methods?

Any reply will be appreciated.

replica9000 11-11-2012 01:12 PM

Is this from a nandroid backup? If so, download the 3 files from here > https://code.google.com/p/unyaffs/downloads/list

Code:

./unyaffs userdata.img
If it works, you should see "end of image" when it's done. Keep in mine it will extract the contents into the current directory.

chinabenjamin66 11-11-2012 09:16 PM

Hello replica9000,

Thank you for your advice, and I have tried it, unfortunately, it did't work:

Code:

root@gpl-vm:/GPL/userdata# /GPL/googleunyaffs/unyaffs userdata.img
broken image file
root@gpl-vm:/GPL/userdata#

Did you see the code in the original post? I have tried to use unyaffs to extract this userdata.img, it is downloaded from https://github.com/ehlers/unyaffs
What't the difference between those two unyaffs.


All times are GMT -5. The time now is 01:22 AM.