I’ve installed Windows 7 on VHD a couple of years ago and now I need some extra free space to install program. So I have to extend my VHD disk and the partition.
This can be done from another Windows operating system with the diskpart command.
1 2 3 4 5 6 7 8 |
diskpart select vdisk file=C:\win7.vhd expand vdisk maximum=204800 attach vdisk list volume select volume # extend detach vdisk |
If needed we can check the statuses of disks and volumes by entering additional commands
1 2 3 |
list disk list vdisk list volume |
I think it would be possible to run the Windows installation disk, open Command Prompt by pressing Shift+F10 and make all the steps listed above.