Blogger

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

    Recent items

Login

Saturday, 23 November 2013 13:48

Resize VHD free space

Written by
Rate this item
(1 Vote)

Many thanks to This email address is being protected from spambots. You need JavaScript enabled to view it. for the solution of the problem.

If you are working with SharePoint and if you are developing by virtual machine then probably you may think to use a SSD (mine 128gb) to contain the VHD file and speedup your work. This is my case but the VHD dynamic expansion causes this

The principal problem is the impossibility to start up the virtual machine because it gives me a critical error and i cannot fix this problem (probably deleting some big files) internally.

Then I found this solution to resize and compact the VHD:

  • Start CMD as administrator
  • Prompt:diskpart
  • select vdisk file=<your drive>:\<your path>\<filename>.vhd   (ex. F:\MyVM\win8.vhd)attach vdisk readonly
  • compact vdisk
  • detach vdisk

Good. After this, the vhd size is passed from 110gb to 109.6gb. Not a good result, but I re-launched the VM and it was started. Just the time to find and delete some big files (first of all old content db). I repeated the step to reduce the size of VHD and

Enjoy it! Risatona

Read 31763 times Last modified on Saturday, 23 November 2013 13:55

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.