Android模拟器系统分区没有从开始的空间 [英] Android emulator system partition no space from start

查看:328
本文介绍了Android模拟器系统分区没有从开始的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题与Android模拟器。我创建了一个虚拟设备,通过Android的AVD管理(新建仿真器平台2.1和API 7级)。我曾尝试与标准设置和较大的(256 MB)设备的RAM大小,但什么都没有改变添加的硬件参数。

I have a weird problem with the Android emulator. I have created a virtual device through Android AVD manager (newly created emulator with platform 2.1 and API level 7). I have tried with standard settings and with added hardware parameter for larger (256 MB) device RAM size but nothing changed.

我需要来的文件到系统分区来测试一个项目(称为讨价还价),但由于某些原因,系统分区不具有从开始的空间。

I need to come files to the system partition to test a project (called haggle), but for some reason the system partition has no space from start.

aa a@aaa /home/haggle-0.2-android
$ adb -s emulator-5554 shell

 # df
df
/dev: 47084K total, 0K used, 47084K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 73600K total, 73600K used, 0K available (block size 4096)
/data: 65536K total, 18464K used, 47072K available (block size 4096)
/cache: 65536K total, 1156K used, 64380K available (block size 4096)

正如你可以看到系统分区有0K可用空间。当连接一个无根HTC的Nexus One,做同样的我得到这些值:

As you can see the system partition has 0K space available. When a connect a non-rooted HTC Nexus One and do the same I get these values:

/dev: 108896K total, 0K used, 108896K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 148480K total, 116364K used, 32116K available (block size 4096)
/data: 200960K total, 22296K used, 178664K available (block size 4096)
/cache: 97280K total, 1852K used, 95428K available (block size 4096)
/sdcard: 3864064K total, 118496K used, 3745568K available (block size 32768)

为什么模拟器上的系统分区已经从开始0K自由空间,我能做些什么来改变这种状况?即使我建立的分区可写的挂载/重新挂载我得到同样的0K值。

Why does the system partition on the emulator have 0K free space from beginning, and what can I do to change that? Even if I make the partition write-able with mount/remount I get the same 0K values.

任何提示?

推荐答案

找到了答案:)

在启动仿真器,你可以指定-partition大小x emulator_name分区大小。

When starting the emulator you can specify the partition size by -partition-size x emulator_name.

通过是终端完成。 例如:

done through the terminal that is. Example:

emulator -partition-size 125 @AVD1

emulator -partition-size 125 -avd AVD1

请注意,该尺寸必须大于当前系统分区大小。 对于Android4.0.3模拟器的默认大小为168已经如此设置新的分区大小,以更大的东西像256

Note that the size must be bigger than your current system partition size. For the Android4.0.3 emulator the default size is already 168 so set your new partition-size to something bigger like 256

这篇关于Android模拟器系统分区没有从开始的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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