Ubuntu VirtualBox扩容vdi

请阅读: 
http://www.webdesignblog.asia/software/linux-software/resize-virtualbox-disk-image-manipulate-vdi/#sthash.PsRAzv8q.dpbs 

http://www.howtogeek.com/124622/how-to-enlarge-a-virtual-machines-disk-in-virtualbox-or-vmware/ 

以下是Cyper的笔记,仅供参考:

Ubuntu下Ctrl+Alt+T打开Terminal
cyper@zerorun:~$ which VBoxManage 
/usr/bin/VBoxManage
cyper@zerorun:~$ VBoxManage list hdds
UUID:           401e74fb-f64b-4606-9b64-50b014bd3a12
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /home/cyper/VirtualBox VMs/mac/mac.vdi
Storage format: VDI
Capacity:       24576 MBytes

cyper@zerorun:~$ VBoxManage modifyhd 401e74fb-f64b-4606-9b64-50b014bd3a12 --resize 81920
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
cyper@zerorun:~$
扩容到80G,此时只是将这个虚拟的硬盘容量增加到80G,实际给OS X系统的空间没变,需要用分区工具修改。。

You can use a GParted live CD to resize your virtual machine’s partition – simply boot the GParted ISO image in your virtual machine and you’ll be taken to the GParted partition editor in a live Linux environment. GParted will be able to enlarge the partition on the virtual hard disk.

First, download the GParted live CD’s ISO file from here.

我发现这个gparted下载下来后。启动的时候不能打开GUI,,一直处在命令行。模式。。。后来我直接使用了我的ubuntu live cd。。因为ubuntu自带gparted工具,只需要将光盘插入,然后try ubuntu即可, 如下图:

但是这个gparted根本没办法resize hfs+格式的分区。在网上也有类似的贴子都没有解决方案:

比如这里:http://askubuntu.com/questions/381703/increase-extend-resize-os-x-partition-with-gparted

我决定重新安装Mac OS X...



转载于:https://my.oschina.net/uniquejava/blog/420807

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值