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即可, 如下图:
Ubuntu VirtualBox扩容vdi_第1张图片
但是这个gparted根本没办法resize hfs+格式的分区。在网上也有类似的贴子都没有解决方案:

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

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



你可能感兴趣的:(Ubuntu VirtualBox扩容vdi)