December 22, 2016 · Linux VirtualBox

Add disk extension to VM .vdi (VirtualBox) and resizing the root partition in Ubuntu

  1. in MacOS X
cd /Applications/
VBoxManage modifyhd --resize 16384 "/Users/LouisBB/VirtualBox VMs/lubuntu/lubuntu.vdi"  #16384 is the new MiB size of your vdi
  1. in ubuntu
sudo apt-get install gparted
sudo gparted
  1. in GParted swapoff and delete swap partition, which followed to the /dev/sda1(root partition) save operation right click to root partition, move/resize resize it, and leave some spaces for your new swap partition save operation resize new swap partition save operation reboot