<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>All Things IT Blog &#187; Expand VHD</title>
	<atom:link href="http://www.enusbaum.com/blog/tag/expand-vhd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.enusbaum.com/blog</link>
	<description>My little nerded out corner of the Internets!</description>
	<lastBuildDate>Thu, 02 Sep 2010 01:43:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Expand A Virtual PC VHD File And Extend The Partition</title>
		<link>http://www.enusbaum.com/blog/2008/02/07/expand-a-virtual-pc-vhd-file-and-extend-the-partition/</link>
		<comments>http://www.enusbaum.com/blog/2008/02/07/expand-a-virtual-pc-vhd-file-and-extend-the-partition/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 03:34:58 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[General Software]]></category>
		<category><![CDATA[diskpart]]></category>
		<category><![CDATA[Expand VHD]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[VHD]]></category>
		<category><![CDATA[VirtualPC]]></category>
		<category><![CDATA[VPC]]></category>

		<guid isPermaLink="false">http://www.enusbaum.com/blog/2008/02/07/expand-a-virtual-pc-vhd-file-and-extend-the-partition/</guid>
		<description><![CDATA[I was setting up Team Foundation Server Virtual PC the other night and thought that my initial estimate of only 8GB being required would be enough, but turned out I was wrong. After getting SQL 2005 Standard Edition installed I had a mere 800MB of free space left! After some Googling around a bit I [...]]]></description>
			<content:encoded><![CDATA[<p>I was setting up Team Foundation Server Virtual PC the other night and thought that my initial estimate of only 8GB being required would be enough, but turned out I was wrong. After getting SQL 2005 Standard Edition installed I had a mere 800MB of free space left!</p>
<p>After some Googling around a bit I was able to locate a great tool from the guys over at <a title="Site - vmToolkit" href="http://vmtoolkit.com/" onclick="return TrackClick('http%3A%2F%2Fvmtoolkit.com%2F','Site+-+vmToolkit')" target="_blank">vmToolkit.com</a> called <a title="vmToolkit - VHD Resizer" href="http://vmtoolkit.com/files/folders/converters/entry87.aspx" onclick="return TrackClick('http%3A%2F%2Fvmtoolkit.com%2Ffiles%2Ffolders%2Fconverters%2Fentry87.aspx','vmToolkit+-+VHD+Resizer')" target="_blank">VHD Resizer</a>. Basically it creates a new empty VHD file and copies sector by sector the data from your original VHD file to the new VHD file.</p>
<p>So now I had two VHD files but now my problem was that they were exact copies of one another and resizing the VHD container was only half of my problem. Now I needed to somehow resize the 8GB partition in my new VHD file to use the full 16GB of space I allocated to it.</p>
<p>I Googled around some more and read about a built in command line utility (Windows XP or newer) called <a title="Microsoft.com -- A Description of Diskpart" href="http://support.microsoft.com/kb/300415" onclick="return TrackClick('http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F300415','Microsoft.com+--+A+Description+of+Diskpart')" target="_blank"><strong>diskpart</strong>.</a> This program is a command line version of the Disk Management MMC plugin used in Windows, but it has a few extra features. The feature of <strong>diskpart</strong> I was most interested in was the &#8220;<strong>extend</strong>&#8221; command. I would just boot into the Virtual Machine and run the extend command from within diskpart, but then I read the following:</p>
<p><strong><em> Diskpart blocks the extension of only the current system or boot partition.</em></strong></p>
<p>How can I resize my new Virtual Machine partition without booting it? Simple!� I setup my Virtual Machine to boot off my original &#8220;small&#8221; drive with my new &#8220;larger&#8221; VHD as a second hard drive (D:). Doing this allowed me to extend the partition using the diskpart utility.</p>
<p>Shut down the Virtual Machine, set your new &#8220;larger&#8221; VHD as your boot drive and BAM! You have a resized Virtual PC drive <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hopefully this information will help someone else out there who was in the same delima I was <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers!</p>
<p><strong>UPDATED 05/15/09:</strong> Hey everyone! I&#8217;ve found another issue with the solution listed above. The VHD file you&#8217;re trying to extend cannot be the same as the VHD you&#8217;re booting into to extend it. For example, if I have VPC &#8220;A&#8221;, and make a copy of the VHD, I cannot attach the copied VHD and boot into VPC &#8220;A&#8221; and extend the partition, because both &#8220;hard drives&#8221; will be signed with the same ID and Windows will be confused and not let you extend the partition. We found we had to boot into a completely different VPD to use the above method and that seemed to work fine! <img src='http://www.enusbaum.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers (again)!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.enusbaum.com%2Fblog%2F2008%2F02%2F07%2Fexpand-a-virtual-pc-vhd-file-and-extend-the-partition%2F&amp;title=Expand+A+Virtual+PC+VHD+File+And+Extend+The+Partition" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.enusbaum.com/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.enusbaum.com%2Fblog%2F2008%2F02%2F07%2Fexpand-a-virtual-pc-vhd-file-and-extend-the-partition%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.enusbaum.com/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.enusbaum.com%2Fblog%2F2008%2F02%2F07%2Fexpand-a-virtual-pc-vhd-file-and-extend-the-partition%2F&amp;title=Expand+A+Virtual+PC+VHD+File+And+Extend+The+Partition" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.enusbaum.com/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Expand+A+Virtual+PC+VHD+File+And+Extend+The+Partition+@+http%3A%2F%2Fwww.enusbaum.com%2Fblog%2F2008%2F02%2F07%2Fexpand-a-virtual-pc-vhd-file-and-extend-the-partition%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.enusbaum.com/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.enusbaum.com/blog/2008/02/07/expand-a-virtual-pc-vhd-file-and-extend-the-partition/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
