Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am native booting into vhd files. While creating the parent vhd file I set the maximum file size to 50GB however I never install so many applications. 20GB maximum will be enough for me but I want to change this setting on existing parent vhd file as I don't want to go through installing the OS from scratch into a new vhd. Is that possible?

share|improve this question
    
possible duplicate of How do I change the size of a VHD? –  Zoredache Jun 22 '10 at 17:55
    
Not a duplicate. I am not trying to make the disk larger. When you native boot to a vhd, vhd file is automatically expanded to the size you specify when creating the disk. So my disk is expanded to 50GB automatically. I am trying to make it smaller. Not larger. –  Élodie Petit Jun 22 '10 at 18:00
1  
Bigger and smaller are the same process. Don't forget the reduce the size of the partitions on the disk before shrinking the actual disk. –  Chris S Jun 23 '10 at 1:55

3 Answers 3

if you plan to utilize this server for long then 20gigs won't be big enough due to issues with the winsxs growth.. Other then that you need to mount the physical disk to another w2k8r2 or win7 device then mount the vhd then run the vhd resizer tool! Or if you have multiple boot selections boot to another os then mount the vhd file then resize.

share|improve this answer

Is this what your looking for ?

There's more here too.

share|improve this answer
    
Not exactly. I am not using virtual pc. I am using native boot and only trying to change MAXIMUM file size setting so it doesn't expand automatically to 50GB. –  Élodie Petit Jun 22 '10 at 18:02
    
This is what you're looking for. VHDs can not be resized while in use. You'll have to edit the file with another OS, then boot into it again. –  Chris S Jun 23 '10 at 1:54

it is possible:

see: http://code.msdn.microsoft.com/vhdtool

and

http://serverfault.com/questions/6139/how-do-i-change-the-size-of-a-vhd

share|improve this answer
    
Please see my above comment. This is not I am looking for. –  Élodie Petit Jun 22 '10 at 18:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.