Skip to content

Instantly share code, notes, and snippets.

@appleshan
Last active May 11, 2017 10:19
Show Gist options
  • Save appleshan/79031b5b4f11526c84669d8b3293b1ca to your computer and use it in GitHub Desktop.
Save appleshan/79031b5b4f11526c84669d8b3293b1ca to your computer and use it in GitHub Desktop.
Resize VirtualBox VDI file
VirtualBox 的虚拟 XP 最初设定硬盘大小为 10 G,最近已经占到了 9 G 的使用率,急需扩容。网搜共找到两种方法,
一种是利用 GParted 拷贝硬盘的方法,比较麻烦,但是更为通用;
另一种是 VirtualBox 4.x 新加的一条命令,非常简单:
VBoxManage modifyhd winxp.vdi --resize 50000
但是这样调整后,VirtualBox 已经可以识别出硬盘调整后的容量大小(50 G),而虚拟的 XP 系统 C 盘依然显示调整之前的容量。
无碍,再去下载一个 Windows 分区软件 EASEUS Partition Master Home Edition V8.0.1,在里面会有调整 C 盘分区的操作,
该操作会把剩余没有识别出来的 40 G 的 unallocated 的空间合并到 C 盘里面。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment