我有一个固定大小的虚拟硬盘空间不足。 什么是增加规模的好方法?
此VHD是从Microsoft Virtual PC和/或Microsoft Virtual Server创build的。
有一个免费的实用程序,你可以下载称为VHD Resizer ,应该简化这项任务。
整个过程还有一个循序渐进的过程,可能有帮助。
你可以使用微软VHD工具的/ extend开关。
VHD工具是一个非托pipe代码命令行工具,它提供了有用的VHD操作function,包括即时创build大型固定大小的VHD。 源代码包含在内。
用法:
VhdTool.exe /create <FileName> <Size> [/quiet] VhdTool.exe /convert <FileName> [/quiet] VhdTool.exe /extend <FileName> <NewSize> [/quiet] Create: Creates a new fixed format VHD of size <Size>. WARNING - this function is admin only and bypasses file system security. The resulting VHD file will contain data which currently exists on the physical disk. Convert: Converts an existing RAW disk image file to a fixed-format VHD. The existing file length, rounded up, will contain block data A VHD footer is appended to the current end of file. Extend: Extends an existing fixed format VHD to a larger size <Size>. WARNING - this function is admin only and bypasses file system security. The resulting VHD file will contain data which currently exists on the physical disk.