如何安装linux下android的IMG文件? [英] How to mount the android img file under linux?

查看:394
本文介绍了如何安装linux下android的IMG文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我在android ROM的兴趣,我想改变和重建它们。
所以,我做我的XOOM一些测试,它很容易闪的东西到机器。
我从摩托罗拉部分ROM( http://developer.motorola.com/products/software/), 他们是一些IMG文件,我想知道里面有什么,我希望能解开他们。

Recently, I'm interest in the android rom, I want to change and rebuild them.
So, I did some test on my XOOM, it's very easy to flash something into the machine.
I got some ROM from MOTOROLA (http://developer.motorola.com/products/software/), they are some img file, and I want to know what's inside, I hope to unpack them.

我试着在 unyaffs ,它说破IMG文件
我试着安装它们,它的伟大工程的system.img,我可以得到里面的文件了。

I tried the unyaffs, it said broken img file.
I try to mount them, it works great on the system.img, and I can get the file inside.

当我想通过来挂载userdata.img安装邻环userdata.img到/ mnt /用户数据(同​​ system.img ),它告诉我安装:你必须指定文件系统类型让我试试安装-t ext2的-o循环用户数据.IMG到/ mnt /用户数据,它说挂载:错误的财政司司长类型,坏的选择,坏的超级上...

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

那么,如何从 userdata.img

推荐答案

一看便知在:<一href="http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files">http://omappedia.org/wiki/Android_eMMC_Booting#Modifying_.IMG_Files

首先,你需要uncom preSSuserdata.img与simg2img,那么你可以通过回路设备安装它。

First you need to "uncompress" userdata.img with simg2img, then you can mount it via the loop device.

这篇关于如何安装linux下android的IMG文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆