LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 11-11-2012, 09:09 AM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
Unhappy 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.
 
Old 11-11-2012, 02:12 PM   #2
replica9000
Member
 
Registered: Jul 2006
Location: Quahog, Rhode Island
Distribution: Debian 'Sid', FreeBSD, Android
Posts: 698
Blog Entries: 2

Rep: Reputation: 125Reputation: 125
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.

Last edited by replica9000; 11-11-2012 at 02:58 PM.
 
Old 11-11-2012, 10:16 PM   #3
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount/extract a .img ? linus72 Linux - General 11 08-06-2009 12:49 PM
extract files from img file mbvo Linux - Software 4 10-16-2008 05:35 AM
extract .img file cccc Linux - General 3 06-02-2008 04:04 AM
how to extract a .img? SlipAway172 Linux - Newbie 6 07-04-2005 04:45 PM
Extract *.img file? teodavinci Linux - Newbie 1 08-24-2004 04:47 PM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration