We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
请参阅答案:http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files
首先你需要用
simg2img
“解压”userdata.img
,然后你可以通过挂载它循环设备。See the answer at: http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files
First you need to "uncompress"
userdata.img
withsimg2img
, then you can mount it via the loop device.我找到了一个简单的解决方案: http://andwise .net/?p=403
引用
(稍作调整以获得更好的可读性)
I have found a simple solution: http://andwise.net/?p=403
Quote
(with slight adjustments for better readability)
在Android文件系统中,“system.img”和“userdata.img”是VMS Alpha可执行文件。 “system.img”和“userdata.img”包含根文件系统上/system和/data目录的内容。它们被映射到具有 yaffs2 文件系统的 NAND 设备上。现在,yaffs2镜像文件无法在linux PC上挂载。如果可以的话,也许你有一些未打包在 yaffs2 文件系统中的 rom。您可以通过执行以下命令来检查这些 rom 文件:
如果它显示“VMS Alpha 可执行文件”,那么您可以使用“unyaffs”来提取它。
In Android file system, "system.img" and "userdata.img" are VMS Alpha executable. "system.img" and "userdata.img" have the contents of /system and /data directory on root file system. They are mapped on NAND devices with yaffs2 file system. Now, yaffs2 image file can not be mounted on linux PC. If you can, maybe you got some rom that not packed in yaffs2 file system. You can check those rom file by execute the command:
If it show "VMS Alpha executable" then you can use "unyaffs" to extract it.
另一种选择是使用 DDMS(Eclipse SDK)中的文件资源管理器,您可以在那里看到整个文件系统并将文件下载/上传到所需的位置。这样您就不必安装和处理图像。只需记住将您的设备设置为 USB 可调试(通过开发人员工具)
Another option would be to use the File Explorer in DDMS (Eclipse SDK), you can see the whole file system there and download/upload files to the desired place. That way you don't have to mount and deal with images. Just remember to set your device as USB debuggable (from Developer Tools)
我发现 Furius ISO 安装座最适合我。我正在使用基于 Debian 的发行版 Knoppix。我一直用它来打开
system.img
文件。Furius ISO挂载:
https://packages.debian.org/sid/otherosfs/furiusisomount
“当我想通过mount -o循环userdata.img /mnt/userdata挂载userdata.img时(相同如 system.img),它告诉我 mount:你必须指定文件系统类型,所以我尝试 mount -t ext2 -o 循环 userdata.img /mnt/userdata,它说 mount:错误的 fs 类型,坏选项,坏超级块...
那么,如何从 userdata.img 内部获取该文件?”
要加载
.img
文件,您必须选择循环并加载.img
选择循环接下来选择挂载
选择安装
Furius ISO 安装处理加载
.img
的所有其他选项文件到您的/home/dir。I have found that Furius ISO mount works best for me. I am using a Debian based distro Knoppix. I use this to Open
system.img
files all the time.Furius ISO mount:
https://packages.debian.org/sid/otherosfs/furiusisomount
"When I want to mount userdata.img by mount -o loop userdata.img /mnt/userdata (the same as system.img), it tells me mount: you must specify the filesystem type so I try the mount -t ext2 -o loop userdata.img /mnt/userdata, it said mount: wrong fs type, bad option, bad superblock on...
So, how to get the file from the inside of userdata.img?"
To load
.img
files you have to select loop and load the.img
Select loopNext you select mount
Select mount
Furius ISO mount handles all the other options loading the
.img
file to your /home/dir.