I think ... - storagehttps://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&nbsp;how.</p><p>Are you stuck with your small virtual disk partition for VirtualBox? You created the partition for some testing <span class="amp">&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&nbsp;gist.</p> <p>[Note: This procedure won&rsquo;t work for <span class="caps">VM</span> with snapshots. So, please take note the fact about your system&nbsp;beforehand.]</p> <ul> <li>Download <a href="http://gparted.org/download.php">Gparted</a>, disk manager for Linux. It&rsquo;ll come as an <span class="caps">ISO</span>&nbsp;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&nbsp;/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,&nbsp;cmd.exe</li> <li>Navigate to the Virtualbox installation&nbsp;folder</li> <li>Execute the&nbsp;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&nbsp;below:</p> <p><img alt="10% ... 20% .. .. 100%" src="http://i.imgur.com/iYORelg.png"></p> <p>If you fail with a message like&nbsp;thid</p> <blockquote> <p><span class="dquo">&ldquo;</span>VBoxManage.exe: error: Resize hard disk operation for this format is not implemented&nbsp;yet!&rdquo;</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&rsquo;re using this tool, remember to check &ldquo;Increase virtual drive size to &rdquo; with your desired&nbsp;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&nbsp;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&nbsp;below:</li> </ul> <p><img alt="Gparted partition-manager" src="http://i.imgur.com/aK9kAtK.jpg"></p> <ul> <li>Now &ldquo;shrink/Grow&rdquo; or &ldquo;Move&rdquo; your desired partition, but be careful. Don&rsquo;t rename any of them. Be careful about your&nbsp;data.</li> <li>Don&rsquo;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&nbsp;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>&nbsp;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 &ldquo;Like&rdquo; or &ldquo;share&rdquo;. Also, your suggestion or comment would be great as&nbsp;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>