Wiki Home Boot image Expand the Boot Image Disk Size

Expand the Boot Image Disk Size

When we create a boot image file with a vhd file, we need to set a VHD disk size or just upload it from a small partition. If we want to expand the image disk size later, what to do? This section will introduce a method to expand the VHD disk.

  1. Stop CCBoot service to release the vhd file accessing.
  2. Download VhdResize.zip from http://www.ccboot.com/download/vhdtools/ and extract it and install.
  3. Click "Start" -> "Vhd Resizer" (Figure 1).

Vhd Resizer

Figure 1

  1. Click the "open" button to locate the old vhd file path, click "save as" to locate the new vhd file path, input new vhd disk size in "New Size" and click the "resize" button to finish (Figure 2).

VhdResizer

Figure 2

  1. When done, right click "My Computer", select "Manage".
  2. Select the "Disk Management" node in the left tree, right click on the "Disk Management", select "Attach VHD".
  3. Locate the new vhd file, and then you will see a new disk in the disk list (Figure 3, the vhd disk icon is bright blue).

New Disk

Figure 1‑3

  1. Right click "New Volume (D:)", select "Expand Volume" (Figure 4).

Extend Volume Wizard

Figure 4

  1. Click the "Next" button (Figure 5).

New Volume

Figure 1‑5

  1. Right click on "Disk 1", select "Detach VHD" and Click "OK". Notice: DO NOT select "Delete File" (Figure 6).

Detach Virtual Hard Disk

Figure 6

  1. Now you can add the new vhd file to CCBoot. After you boot with this VHD image, you will see the C: drive is already expanded.