<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Re-sizing a VirtualBox Virtual Disk Image File</title>
	<atom:link href="http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/</link>
	<description>Experiences of a UK BizTalk Consultant</description>
	<lastBuildDate>Wed, 01 Feb 2012 18:36:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Vadim</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-3/#comment-2102</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Thu, 26 Jan 2012 22:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2102</guid>
		<description>Thanks Nick! The most concise and friendly solution description I could find on the net. Worked for me!</description>
		<content:encoded><![CDATA[<p>Thanks Nick! The most concise and friendly solution description I could find on the net. Worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CA</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-3/#comment-2092</link>
		<dc:creator>CA</dc:creator>
		<pubDate>Wed, 04 Jan 2012 16:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2092</guid>
		<description>Ran across this and thought I would add my 2 cents.

I think someone else mentioned this but figured I would state it again.  I am running Mac OS X (not by choice) and set up a Windows 7 Home Premium virtual os.  Of course I stupidly took the default 20 GB dynamic disk option.  After installing some of my development stuff, I was basically out of space.

So these were the steps I did to resize the partion.

1)  Shutdown the virtual Windows OS.
2)  In terminal, ran &quot;VboxManage modifyhd --resize 80000 nameofimage.vdi&quot;
3)  Startup the virtual Windows OS again.
4)  Administrative Tools -&gt; Computer Management -&gt; Storage -&gt; Disk Management
5)  Disk 0 showed the 100 MB partition, 20 GB NTFS C:, and 60 GB unallocated.
6)  Right click the &quot;C:&quot; partition (either up in the list or the graphical representation) and select &quot;Extend Volume&quot;.
7)  It came up with 1 or 2 screens that I did not make any changes on and just clicked through them (sorry didn&#039;t think it would work so didn&#039;t keep track of their names and such).
8)  Partition now extended to 80 GB (in just a few seconds).

I didn&#039;t need to run any other utilities except VboxManage.  Also this was from a default partitioning of a Win 7 install.  I hadn&#039;t converted the partition to a dynamic disk or anything else.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Ran across this and thought I would add my 2 cents.</p>
<p>I think someone else mentioned this but figured I would state it again.  I am running Mac OS X (not by choice) and set up a Windows 7 Home Premium virtual os.  Of course I stupidly took the default 20 GB dynamic disk option.  After installing some of my development stuff, I was basically out of space.</p>
<p>So these were the steps I did to resize the partion.</p>
<p>1)  Shutdown the virtual Windows OS.<br />
2)  In terminal, ran &#8220;VboxManage modifyhd &#8211;resize 80000 nameofimage.vdi&#8221;<br />
3)  Startup the virtual Windows OS again.<br />
4)  Administrative Tools -&gt; Computer Management -&gt; Storage -&gt; Disk Management<br />
5)  Disk 0 showed the 100 MB partition, 20 GB NTFS C:, and 60 GB unallocated.<br />
6)  Right click the &#8220;C:&#8221; partition (either up in the list or the graphical representation) and select &#8220;Extend Volume&#8221;.<br />
7)  It came up with 1 or 2 screens that I did not make any changes on and just clicked through them (sorry didn&#8217;t think it would work so didn&#8217;t keep track of their names and such).<br />
8)  Partition now extended to 80 GB (in just a few seconds).</p>
<p>I didn&#8217;t need to run any other utilities except VboxManage.  Also this was from a default partitioning of a Win 7 install.  I hadn&#8217;t converted the partition to a dynamic disk or anything else.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UV</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-3/#comment-2068</link>
		<dc:creator>UV</dc:creator>
		<pubDate>Fri, 16 Sep 2011 12:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2068</guid>
		<description>Hey guys,

I had the same problem with win2008 r2 on win7. I tried Rob&#039;s idea and it didn&#039;t work initially, but only because it wasn&#039;t set as my primary partition.
in order for it to work u need to right click your new image file inside the settings&gt;storage and choose SATA port 0. Then load your windows setup again, choose repair and either use the command line with bootrec /fixboot or let it automatically fix it for you.</description>
		<content:encoded><![CDATA[<p>Hey guys,</p>
<p>I had the same problem with win2008 r2 on win7. I tried Rob&#8217;s idea and it didn&#8217;t work initially, but only because it wasn&#8217;t set as my primary partition.<br />
in order for it to work u need to right click your new image file inside the settings&gt;storage and choose SATA port 0. Then load your windows setup again, choose repair and either use the command line with bootrec /fixboot or let it automatically fix it for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ender</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-2065</link>
		<dc:creator>Ender</dc:creator>
		<pubDate>Mon, 22 Aug 2011 09:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2065</guid>
		<description>I have a Windows 7 x64 system. I followed all the instructions. After restarting the system Windows refused to boot saying something like: &quot;Hardware changed&quot;. I shut the VM down, mounted an existing Windows ISO image and restarted the VM. Then I went to &quot;Repair installation&quot;. Windows installation program searched for existing installations, said that I had boot problems and offered to fix them automatically. I confirmed and after a couple of minutes it fixed the installation, restarted the VM and started chkdsk. Everything works now.

Thank you very much, Nick!

Advice:

1. Do a backup before the start. You can export appliance (requires less space but more time) or copy the whole VM. 
2. Delete snapshots if you have them. 
3. If you are paranoid do a backup again. Just in case.
2. Make sure that you have enough time. 
 For example in my case (AMD Phenom 9850 x4, RAM 8G, x2 7200rpm HDDs so my copy operations are faster than usual, VM size: 30Gb -&gt; 80Gb):
 - Export appliance: 20 min. 
 - Delete snapshots: 1 hour. I had four snapshots and it took from 15 to 20 minutes to delete each of them. 4 * 15 = 60 min
 - Do a backup again: 10-20 min. I am paranoid. This time I copied the whole VM and it took 10 min.
 - gparted operations ~30..40 min
 - Windows restore and chkdsk activity: ~15 min
 Total: 2h 15m to 2h 35m.</description>
		<content:encoded><![CDATA[<p>I have a Windows 7 x64 system. I followed all the instructions. After restarting the system Windows refused to boot saying something like: &#8220;Hardware changed&#8221;. I shut the VM down, mounted an existing Windows ISO image and restarted the VM. Then I went to &#8220;Repair installation&#8221;. Windows installation program searched for existing installations, said that I had boot problems and offered to fix them automatically. I confirmed and after a couple of minutes it fixed the installation, restarted the VM and started chkdsk. Everything works now.</p>
<p>Thank you very much, Nick!</p>
<p>Advice:</p>
<p>1. Do a backup before the start. You can export appliance (requires less space but more time) or copy the whole VM.<br />
2. Delete snapshots if you have them.<br />
3. If you are paranoid do a backup again. Just in case.<br />
2. Make sure that you have enough time.<br />
 For example in my case (AMD Phenom 9850 x4, RAM 8G, x2 7200rpm HDDs so my copy operations are faster than usual, VM size: 30Gb -&gt; 80Gb):<br />
 &#8211; Export appliance: 20 min.<br />
 &#8211; Delete snapshots: 1 hour. I had four snapshots and it took from 15 to 20 minutes to delete each of them. 4 * 15 = 60 min<br />
 &#8211; Do a backup again: 10-20 min. I am paranoid. This time I copied the whole VM and it took 10 min.<br />
 &#8211; gparted operations ~30..40 min<br />
 &#8211; Windows restore and chkdsk activity: ~15 min<br />
 Total: 2h 15m to 2h 35m.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richie Rich</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-2064</link>
		<dc:creator>Richie Rich</dc:creator>
		<pubDate>Fri, 19 Aug 2011 03:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2064</guid>
		<description>I have win 7 64 and go the missing bootmgr message. To fix, I just ran the repair in win 7 boot disk twice. Worked a treat. No need to copy the second smaller partition.</description>
		<content:encoded><![CDATA[<p>I have win 7 64 and go the missing bootmgr message. To fix, I just ran the repair in win 7 boot disk twice. Worked a treat. No need to copy the second smaller partition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-2050</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Fri, 08 Jul 2011 21:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2050</guid>
		<description>Hi,
My few cents regarding Windows 2008 R2 guest machine - just a while ago I&#039;ve expanded boot drive from 40 to 120 GB.
GParted operaton failed, because Windows has partitioned the drive in two chunks, one 100 MB , second 40Gb less 100MB. Copying both chunks with GParted methid failed, possibly by my mistake related to boot flags on wrong chunk... 

Anyway:
My (very hard-core) solution was to use &quot;dd if=/dev/sda of=/dev/sdb bs=512&quot; to duplicate the disk sector-by-sector instead of using GParted. Windows machine booted like charm, the only thing remaining was to extend volume using Windows Storage Manager (from Server manager console). Takes a bit longer than GParted, but worked for me.

Aside note is - few months ago I converted real machine to virtual one and discovered, that Windows Vista (and probably Windows 2008 too) does store crucial boot information... outside of the areas described by partition table information. No comments about, I would not believe, but have seen it by my own eyes. Proven. No tools were able to migrate real machine to virtual one. The only successful tool was.... &quot;dd&quot;. First, performed sector-by-sector copy, than later, used anything else to convert image to VHD/VDI/whatever. Went excellent.
I&#039;ve lost a week trying numerous tools, before I discovered, that there is information outside of the partitions defined....

Anyway - thanks for posting. Your instruction is very good and does work excellent with Windows 2003 server quest. I just expanded another machine using your instruction. Just failed on 2008 R2 and had to go with &quot;dd&quot;.
Kind regards
Emil</description>
		<content:encoded><![CDATA[<p>Hi,<br />
My few cents regarding Windows 2008 R2 guest machine &#8211; just a while ago I&#8217;ve expanded boot drive from 40 to 120 GB.<br />
GParted operaton failed, because Windows has partitioned the drive in two chunks, one 100 MB , second 40Gb less 100MB. Copying both chunks with GParted methid failed, possibly by my mistake related to boot flags on wrong chunk&#8230; </p>
<p>Anyway:<br />
My (very hard-core) solution was to use &#8220;dd if=/dev/sda of=/dev/sdb bs=512&#8243; to duplicate the disk sector-by-sector instead of using GParted. Windows machine booted like charm, the only thing remaining was to extend volume using Windows Storage Manager (from Server manager console). Takes a bit longer than GParted, but worked for me.</p>
<p>Aside note is &#8211; few months ago I converted real machine to virtual one and discovered, that Windows Vista (and probably Windows 2008 too) does store crucial boot information&#8230; outside of the areas described by partition table information. No comments about, I would not believe, but have seen it by my own eyes. Proven. No tools were able to migrate real machine to virtual one. The only successful tool was&#8230;. &#8220;dd&#8221;. First, performed sector-by-sector copy, than later, used anything else to convert image to VHD/VDI/whatever. Went excellent.<br />
I&#8217;ve lost a week trying numerous tools, before I discovered, that there is information outside of the partitions defined&#8230;.</p>
<p>Anyway &#8211; thanks for posting. Your instruction is very good and does work excellent with Windows 2003 server quest. I just expanded another machine using your instruction. Just failed on 2008 R2 and had to go with &#8220;dd&#8221;.<br />
Kind regards<br />
Emil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Milenovic</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-2049</link>
		<dc:creator>Jovica Milenovic</dc:creator>
		<pubDate>Thu, 07 Jul 2011 20:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2049</guid>
		<description>Resizing problem under WIN2008 R2

I found a solution in the gparted forums:

This problem is similar to the problem described in the FAQ where resizing your Vista boot partition renders your OS unbootable.  In this case the Vista install media can be used to repair the problem.

I found that resizing a a Windows 2008 Server boot partition produces the same result.  Booting off of the install media does not give you a menu that allows you to fix the problem however.  What you get is a menu to bring up a command prompt or run memory diagnostics. 

To fix the problem you need to select the command prompt option.  From there change into the X:\sources\recovery\ directory.  There you will find a program called StartRep.exe.  Run this program and your boot partition will be fixed and life will be good again.  big_smile


http://gparted-forum.surf4.info/viewtopic.php?id=13530</description>
		<content:encoded><![CDATA[<p>Resizing problem under WIN2008 R2</p>
<p>I found a solution in the gparted forums:</p>
<p>This problem is similar to the problem described in the FAQ where resizing your Vista boot partition renders your OS unbootable.  In this case the Vista install media can be used to repair the problem.</p>
<p>I found that resizing a a Windows 2008 Server boot partition produces the same result.  Booting off of the install media does not give you a menu that allows you to fix the problem however.  What you get is a menu to bring up a command prompt or run memory diagnostics. </p>
<p>To fix the problem you need to select the command prompt option.  From there change into the X:\sources\recovery\ directory.  There you will find a program called StartRep.exe.  Run this program and your boot partition will be fixed and life will be good again.  big_smile</p>
<p><a href="http://gparted-forum.surf4.info/viewtopic.php?id=13530" rel="nofollow">http://gparted-forum.surf4.info/viewtopic.php?id=13530</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Delicious Bookmarks for June 6th from 00:49 to 11:56 &#171; Lâmôlabs</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-2040</link>
		<dc:creator>Delicious Bookmarks for June 6th from 00:49 to 11:56 &#171; Lâmôlabs</dc:creator>
		<pubDate>Mon, 06 Jun 2011 16:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-2040</guid>
		<description>[...] Re-sizing a VirtualBox Windows Virtual Disk Image File &#124; Nick Heppleston&#8217;s BizTalk Blog &#8211; June 6th  ( tags: virtualbox resize virtualization gparted disk linux sysadmin ubuntu ) [...]</description>
		<content:encoded><![CDATA[<p>[...] Re-sizing a VirtualBox Windows Virtual Disk Image File | Nick Heppleston&#8217;s BizTalk Blog &#8211; June 6th  ( tags: virtualbox resize virtualization gparted disk linux sysadmin ubuntu ) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Aunspach</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-1638</link>
		<dc:creator>Dan Aunspach</dc:creator>
		<pubDate>Wed, 06 Apr 2011 18:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-1638</guid>
		<description>I write many step-by-step tutorials and read even more.  Your guide on expanding a VirtualBox VDI is simply excellent!  Even though gparted has changed a little bit since you wrote the guide, you still provided ample information that it was easy for the reader to remain on track and complete the task of resizing the drive.  I am sure I will use this guide often in the future and appreciate your taking the time to figure it out an post it.</description>
		<content:encoded><![CDATA[<p>I write many step-by-step tutorials and read even more.  Your guide on expanding a VirtualBox VDI is simply excellent!  Even though gparted has changed a little bit since you wrote the guide, you still provided ample information that it was easy for the reader to remain on track and complete the task of resizing the drive.  I am sure I will use this guide often in the future and appreciate your taking the time to figure it out an post it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolaii</title>
		<link>http://www.modhul.com/2008/10/21/re-sizing-a-virtualbox-virtual-disk-image-file/comment-page-2/#comment-1635</link>
		<dc:creator>Nikolaii</dc:creator>
		<pubDate>Sun, 20 Mar 2011 13:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.modhul.com/?p=317#comment-1635</guid>
		<description>Hey, thank you sharing this post, this has helped me resize my virtual HDD without any flaws! By the way, I think there is a new option (VBoxManage modifyhd --resize) in the Virtualbox CLI tools which permit to resize the virtual disk directly. But as of version 3.2.8_OSE (under Ubuntu Maverick), this option is not available. So again thank you for this nice howto!

Nicolas</description>
		<content:encoded><![CDATA[<p>Hey, thank you sharing this post, this has helped me resize my virtual HDD without any flaws! By the way, I think there is a new option (VBoxManage modifyhd &#8211;resize) in the Virtualbox CLI tools which permit to resize the virtual disk directly. But as of version 3.2.8_OSE (under Ubuntu Maverick), this option is not available. So again thank you for this nice howto!</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
</channel>
</rss>

