It will boot GParted and you can then use it to resize the partition to use the entire disk. Attach your VDI disk and the GParted Live CD to the new machine. To resize the partition to fit the size of the disk, download GParted and create a new virtual machine.
Now the disk is resized, but the partition is not. The last parameter of the following command specifies the new size in MB: VBoxManage modifyhd 'C:\Users\me\.docker\machine\machines\default\disk.vdi' -resize 30720 Afterwards, clone the VMDK file to a VDI file: VBoxManage clonemedium disk -format VDI 'C:\Users\me\.docker\machine\machines\default\disk.vmdk' 'C:\Users\me\.docker\machine\machines\default\disk.vdi' Go to your VirtualBox interface and detach the VMDK file from your 'default' machine.
So, before you can resize it, you have to convert it to a VDI file. Here is how you can resize your disk without losing any of your data.ĭocker Toolbox creates a VMDK file per default. I was not prepared to lose any of my existing images or containers, so neither creating a new disk nor pruning my data were options for me.