If you run out of disk space on your VM
1. Shutdown the VM
2. Use the VBoxManage command to increase the size of your virtual disk.
In my windows machine the command to resize it to ~12GB I used:
1 2 |
cd \"Users\James\VirtualBox VMs\Avinton Ubuntu VM" "C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyhd "Avinton Ubuntu VM.vdi" --resize 12000 |
MAC has a similar command.
1 |
VBoxManage modifyhd /Users/louise/VirtualBox\ VMs/Ubuntu/Ubuntu.vdi –resize 15000 |
Then open the VM and install gparted
1 |
sudo apt-get install gparted |
3. Delete the secondary partitions
Save changes
Refresh devices
4. Extend the primary partition into the allocated space
Save changes