Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 11-11-2012, 09:09 AM   #1
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:

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
Senior Member
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,059
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
Is this from a nandroid backup? If so, download the 3 files from here >

./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
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:

root@gpl-vm:/GPL/userdata# /GPL/googleunyaffs/unyaffs userdata.img 
broken image file
Did you see the code in the original post? I have tried to use unyaffs to extract this userdata.img, it is downloaded from
What't the difference between those two unyaffs.


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 > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:40 PM.

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