Author Topic: Grow size of partitions inside virtualbox 4.0.4  (Read 1065 times)

Offline gezza

  • Hero Member
  • *****
  • Posts: 515
Grow size of partitions inside virtualbox 4.0.4
« on: March 12, 2011, 09:37:08 PM »
Hi to all,
I setup virtualbox to pickup email so that I could just move the *.vdi file and have everything working.
But I have just done an upgrade and my free (root) space went from 2Gb down to 800MB
Also my home folder went from 1.8GB down to 700MB.
At this rate I cannot do any more updates as I will have nothing left.
I set Synaptic to delete files after installing.
So...I need to extend my file system to something larger!!!
Can anyone help????
Gezza

Offline pags

  • Hero Member
  • *****
  • Posts: 2519
  • Keep it clean.
Re: Grow size of partitions inside virtualbox 4.0.4
« Reply #1 on: March 15, 2011, 06:53:03 AM »
First, you should adjust the size of the .vdi file, so it can handle the changes to the partition sizes.  See VBoxManage.

Specifically, of interest is this option:
Code: [Select]
VBoxManage modifyhd         <uuid>|<filename>
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--compact]
                            [--resize <megabytes>|--resizebyte <bytes>]

Once you have the .vdi resized, you can modify the partitions as you would a physical system, from within the guest (many options available,  both here on the forum, and on the wider Internet).
Google can help, or ask for more help, if needed.