首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

2012-08-25 
Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码下载android4.1源码出来,没事也想下载下来看一下,结果

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码下载

          android4.1源码出来,没事也想下载下来看一下,结果悲剧的发现虚拟机上给ubuntu分配的硬盘空间太小了,就剩下2.7G。而在官方文档中:The source download is approximately 6GB in size,说明源代码大小在6G左右,只好为Vmware虚拟机中的ubuntu再挂载一个20G的硬盘。

         首先,打开Vmware里面VM里面的setting。如下图:

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

进入设置界面:

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

选择Hard Disk,点击下面Add:

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

点击next:选择Create a new virtual disk

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

然后再选择next,选择硬盘类型为SCSI。

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

继续next,设置硬盘大小:

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

继续:指定硬盘文件

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载


        就这样是先创建了一个20G的硬盘,但是ubuntu并不能识别它。你得格式化该硬盘,格完然后挂在ubuntu上告诉他启动的mount上这个新的分区。

        在ubuntu选择system/administration/Disk Utility

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载


进入以下界面,选择新创建的硬盘:

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载


选择下面的Create Partition (创建分区)

Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载

给你的硬盘取个名字,点击Create:


Vmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载


        最后,挂载到系统上:

在命令行里面: mount /dev/sdb1  /homeVmware虚拟机ubuntu增加硬盘空间及android4.1源代码上载 /Android  -t ext4  其中home/Android 替换为你要挂载的空文件夹就可以了。这样我们找到Android这个文件夹,就会发现它有近20G的空间,挂载成功。


最后:

        下载android4.1源代码:

1、安装、初始化并配置repo(确保已成功安装git和curl):

[html] view plaincopy
  1. $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo  
  2. $ chmod +x ~/bin/repo  

2、其次,建立分支

[html] view plaincopy
  1. $ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r1  

3、填写用户名和邮箱

4、同步:

[html] view plaincopy
  1. $ repo sync  





1楼aomandeshangxiao17小时前
官方地址:http://source.android.com/source/downloading.htmln其他资料:window环境下下载android源码和eclipse关联源码

热点排行