Resize a VirtualBox Virtual Disk HowTo

It is not possible to increase the maximum virtual size of a VirtualBox VDI HDD once it is created. The only way I found to do it is to create a new larger VirtualBox HDD and use GParted to copy the old one to the new one. The steps to do that are:

1. Create a new VirtualBox HDD with the desired size and add it as a secondary HDD (Primary Slave) in the Virtual Machine HDD settings.

2. Download the GParted LiveCD and boot from it inside the Guest – http://gparted.sourceforge.net/

3. Right click on the partitions of the original HDD in GParted and click “Copy“. Select the second HDD and “Paste”.  This will ask to create a “msdos” partition table first so click “OK” and “Paste” again. Adjust partition sizes as you wish and hit “Apply“.

4. Mark the new partition as bootable in right click -> “Manage Flags” -> tick “boot“. Once done shutdown the VM and release the gparted Live CD.

5. Because the HDD characteristics have changed you might not be able to boot at this point. Insert the Windows/Linux OS installation CD/DVD and run in repair mode. For Windows this would be the recovery console and the “fixboot c:” or fixmbr commands. On Linux just reinstall the boot loader.

That’s it. It’s not very convenient doing this but at least it works.

P.S: If you get an error “FATAL: INT18 Boot Failure” you have forgotten to mark the new partition as bootable.

Be Sociable, Share!
  • http://www.cheap-boots-for-sale.co.uk uk ugg boots

    Also if you want to find your phone's id just type:

    >hcitool scan

    and you should see: <phone id> <phone name>

  • http://www.weprintdiscs.com/ CD Printing

    Thank you for sharing this step by step guide for virtualbox.

  • Xxtiryaki

    It really great. It worked for virtual Xp disk. Thanks….

  • 年 冯

    A wide range of Australian made UGG Boots and sheepskin leather products. Supra Shoes on hot sale now,we carry a large inventory from Supra Footwear, Including Supra Shoes,Supra Skytop And Supra Avenger,Supra Bandit,Supra Bullet.Huge Range, all with Fast, Free Delivery.
    Bryant, the gap in the purchase price of shoes in kobeshoes.cc! Zoom discounts and cheap to buy the lowest price every day Kobe Shoes.Huge Puma Trainers Range at LQshoes Massive Sale Now On. Free Delivery to UK USA Canada… Buy Cheap Puma Shoes at Puma Shoes Online Store Now!Wholesale Authentic NFL Jerseys,Contain mens,womens and youths Cheap NFL Jerseys,Welcome to buy.Inc sell cheap Sunglasses,is a Oakley Sunglasses reseller store, Oakley NFL eyeglasses are sold as a cheap price.!NFL Cap.

  • 624415672

    Carlos? Cet échange?mars sa cellule sécheresse.? sac louis vuittonuvres frauduleuses”.? sac vuittonGomes?C’est ce qu’a déclaré? sacs louis vuitton Rien qu’en 2011, l’indice a grimpé de 43%, dépassant le pic atteint au moment des .? Les opérateurs Orange, SFR et Bouygues Télécom ont obtenu des licences pour les fréquences basses de téléphonie mobile de quatrième génération (4G), à très haut débit, lors d’un deuxième round d’enchères qui n’a donc pas retenu l’offre de Free, a annoncé jeudi 22 décembre l’Autorité des télécoms (Arcep). louis vuitton site officiel Le Costa Concordia va être renfloué pour dispara? Le quotidien britannique garde en tête le bilan mitigé des 110?louis vuitton pas cher

  • Andy

    Nice one.. your ‘P.S.’ saved me – I forgot to mark the new partition as bootable.
    I performed the reverse; decreased from a 40Gig to a 15Gig vdi.

  • more info

    Any platform using this boots as opposed hollister discount in direction of the Ugg boot Tasmania Hiking hollister shop footwear we usually dress yourself in. hollister gilet Uggs is definitely wellknown specifically for this purpose novel idea and also impressive, vivid pattern along with type tips! No topic just what find you’ve gotten, you are discovered in a set of two proper shoes or boots at Ugg. Bailey button ugg boots The Ugg sheepskin boots trainer is established with the complexion of the Foreign merino lambs usually.

  • more info

    I got confused and was of course whacked with a similar late charge. Money to a bankster. Another bill last month, negotiating a stolen payment from abercrombie and fitch paris a public mailbox (I got the ripped envelope back in the mail from the PO) I got another abercrombie and fitch kids fine for being late with the next payment.