Your .NET and Microsoft technologies specialist in Western Switzerland RSS 2.0
# Saturday, May 17, 2008

Sizing correctly a virtual hard disk (VHD) during the creation of a virtual machine is not really easy. Well, it is possible to see big and to set the maximum size at 100GB, but I am not a great fan of always oversize an infrastructure.

So, it happened yesterday that my virtual machine hosting my SharePoint 2007 development environment was running out of disk space and the question on how to resize a vhd file came to my mind. My friend google gave me a lot of answers but none of them were working totally. Basically, you have several steps to follow :

  1. To resize the VHD file
  2. To expand the disk size within the guest operating system

For the first step, there are essentially two main choices : VHD Resizer, which is free and available on the vmTools web site, or VHD Utility from Xtralogic. I decided to go for the VHD Resizer tool and I was quite happy with that. The main reason was that I wanted to expand my VHD at the lowest price...(at the end, it costed me a bit...)

Regarding the second step, it was another story. On the web, there are a lot (and when I say "a lot", I really mean a lot) of tools, free or not, to manage partitions and disks. To give some examples, you have Partition Magic, gParted and Paragon Partition Manager to give only the few I tested. Then, you can also use diskpart or even vhdmount to manipulate the drives and expand them.

gParted is free and you can download a live CD in the ISO format that allows you to mount the drive directly from the Virtual PC application. Unfortunately, it did not work for me, Windows Server was not able to see the new disk size.

The same problem occurred with Partition Magic.

At last, I have given a try to Partition Manager 9.0 Server. It costs $299 and it is quite expensive, but when I realized that I had spent already more than half a day to solve this resizing problem, I rapidly decided to go with that tool. Then only problem I see with that kind of product is that you cannot really test if copying a hard disk (especially a Windows Server 2003 boot disk) works, because most of these tools (it was the case for PM 9.0) works only in simulation mode if you have only the trial version. So, spending 299 dollars without really knowing if it will fit the needs is a bit worrying.

Then, using PM 9.0, I copied my original hard disk to the target one, I resized the partition to take the whole disk and.......it worked perfectly. It took 1 hour to copy everything and to make the partition bootable for a 40GB disk. Windows Server 2003 was not only able to see the new disk capacity, but the disk was bootable.

Again, I would have preferred to do it using free tools, but with PM 9.0 Server (the server version is important here, because Windows Server 2003 is supported) I did it end-to-end with success.

All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview
Currently Reading :
I will be at :
I was a speaker at :
United Nations (UN) SharePoint Event 2011
I was a speaker at :
I was there !
I was there !
I was there !
I was there !
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
Listed On :
Blogroll
[Feed] Weblogger.ch
[Feed] David Chappell :: Weblog
[Feed] RockyH - Security First!
[Feed] The Project Management Podcast™
[Feed] Lunch over IP
[Feed] Intellectual Hedonism
[Feed] Upgrade to Biztalk 2006
[Feed] BizTalk Server Team Blog
[Feed] Eric Cote
[Feed] Mario Cardinal
[Feed] BizTalk Server Performance
[Feed] Julia Lerman Blog - Don't Be Iffy...
[Feed] Dotnet Fox
[Feed] Joel on Software
[Feed] Kevin Lam's WebLog
[Feed] BizTalk 101 - Back to Basics
[Feed] Peter Himschoot's blog
[Feed] Guy Barrette
[Feed] Mark Harrison
[Feed] Chanian, Raj
[Feed] A BizTalk Enthusiast
[Feed] Kevin B Smith's WebLog
[Feed] JABLOG
[Feed] BizTalk Core Engine's WebLog
[Feed] Robert Rijsdijk's BizTalk Server Weblogs
[Feed] Bryant Likes's Blog
[Feed] {CaptainK} - a.k.a Suresh Kumar
[Feed] CaPo's .NET and Enterprise Servers adventures - by Carlo Poli
[Feed] Charles Young
[Feed] Christoph .NET
[Feed] ComputerZen.com - Scott Hanselman's Weblog
[Feed] Console.WriteLine("Hello World");
[Feed] Darrell Norton's Blog
[Feed] Darren Jefford
[Feed] Dot Net Dunk
[Feed] Gilles' WebLog
[Feed] Jan Tielens' Bloggings
[Feed] Lamont Harrington's Blog
[Feed] Lamont Harrington's Blog
[Feed] Luke Hutteman's Weblog
[Feed] Matt Meleski's .Net Blog - The ABC's of .NET
[Feed] Michael Platt's WebLog
[Feed] Mike Holdorf's Blog
[Feed] Mike Taulty's Weblog
[Feed] Neopoleon.com
[Feed] Owen Allen
[Feed] Scott Woodgate's E-Business Outbursts
[Feed] Stephen W. Thomas
[Feed] The Arch Hacker's BizTalk Blog
[Feed] The BizTalk Visionary - BizTalk 2004, SOA and on
[Feed] Trace of Thought (Scott Colestock)
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Yves Peneveyre
Sign In
Statistics
Total Posts: 241
This Year: 0
This Month: 0
This Week: 0
Comments: 17
Themes
Pick a theme:
All Content © 2012, Yves Peneveyre
DasBlog theme 'Business' created by Christoph De Baene (delarou)