I think ... - virtualboxhttps://blog.kmonsoor.com/2012-05-26T08:02:00+06:00Increase virtual-disk size in VirtualBox on Windows 72012-05-26T08:02:00+06:002012-05-26T08:02:00+06:00Khaled Monsoortag:blog.kmonsoor.com,2012-05-26:/increase-virtual-disk-size-in-virtualbox-windows/<p>Stuck with your small virtual disk partition for VirtualBox? I also stuck with same problem; researched many forums, and here is the gist. Find out how.</p><p>Are you stuck with your small virtual disk partition for VirtualBox? You created the partition for some testing <span class="amp">&</span> practicing, now it needs more space. I was also stuck with the same problem; so I researched many forums, and here is the gist.</p>
<p>[Note: This procedure won’t work for <span class="caps">VM</span> with snapshots. So, please take note the fact about your system beforehand.]</p>
<ul>
<li>Download <a href="http://gparted.org/download.php">Gparted</a>, disk manager for Linux. It’ll come as an <span class="caps">ISO</span> file.</li>
<li>Boot into your guest <span class="caps">OS</span>, check, with df command, which partition you need to grow. Take note of that specific mounted <span class="caps">HD</span>, such as /dev/hdb/sda3</li>
<li>Take backup of your existing data, as I <span class="caps">WILL</span> <span class="caps">NOT</span> <span class="caps">TAKE</span> <span class="caps">ANY</span> <span class="caps">RESPONSIBILITY</span> <span class="caps">IF</span> <span class="caps">YOU</span> <span class="caps">DAMAGE</span> <span class="caps">YOUR</span> <span class="caps">DATA</span>.</li>
<li>In host <span class="caps">OS</span>, Goto the command prompt by running, cmd.exe</li>
<li>Navigate to the Virtualbox installation folder</li>
<li>Execute the command:</li>
</ul>
<div class="highlight"><pre><span></span><code><span class="linenos" data-linenos="1 "></span><span class="go">C:\ VBoxManage modifyhd X:\yourVM_DiskPath_InHost\yourVM_Disk.vdi --resize 40960</span>
</code></pre></div>
<p>you will see progress as below:</p>
<p><img alt="10% ... 20% .. .. 100%" src="http://i.imgur.com/iYORelg.png"></p>
<p>If you fail with a message like thid</p>
<blockquote>
<p><span class="dquo">“</span>VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!”</p>
</blockquote>
<p>Now, you need this tool <a href="https://forums.virtualbox.org/download/file.php?id=7579">CloneVDI.exe</a> from this VirtualBox forum-post. If you’re using this tool, remember to check “Increase virtual drive size to ” with your desired size.</p>
<p><img alt="VDI_tool" src="http://i.imgur.com/YB49ZVk.png"></p>
<ul>
<li>Now, Load the <span class="caps">ISO</span> file to the <span class="caps">CD</span>/<span class="caps">DVD</span> drive of your virtual Linux.</li>
</ul>
<p><img alt="GParted.iso loaded on IDE Primary Master" src="http://i.imgur.com/UKyPkl8.png"></p>
<ul>
<li>Boot the Guest <span class="caps">OS</span>; from the boot menu, select <span class="caps">CD</span>/<span class="caps">DVD</span> drive, then it will boot in GParted tiny <span class="caps">OS</span>. Now the PartitionManager tool will come up automatically, like below:</li>
</ul>
<p><img alt="Gparted partition-manager" src="http://i.imgur.com/aK9kAtK.jpg"></p>
<ul>
<li>Now “shrink/Grow” or “Move” your desired partition, but be careful. Don’t rename any of them. Be careful about your data.</li>
<li>Don’t worry, unless you clicked Apply, nothing has actually took place. When you are done with moving and resizing, you have to click <strong><code>Apply</code></strong> to commit the change</li>
</ul>
<p><img alt="just before applying" src="http://i.imgur.com/wUMCHVQ.jpg"></p>
<ul>
<li>Once completed, close Gparted, and then shutdown the <span class="caps">OS</span></li>
<li>Unload the <span class="caps">ISO</span> aka virtual <span class="caps">CD</span> from virtual <span class="caps">OS</span></li>
<li>Boot into the virtual <span class="caps">OS</span> again</li>
<li>Now, check that if the desired partition grew or not by using the <code>df</code> command</li>
</ul>
<p>Thanks for visiting my blog. If it just helped you, please feel free to “Like” or “share”. Also, your suggestion or comment would be great as well.</p>
<hr>
<p>If you find this post helpful, you can show your support <a href="https://www.patreon.com/kmonsoor">through Patreon</a> or <a href="https://paypal.me/KhaledMonsoor/">Paypal</a> or by <a href="https://ko-fi.com/kmonsoor">buying me a coffee</a>. <em>Thanks!</em></p>