I have changed the vdi size from 20 GB to 40 GB, but the increase has no effect on my ubuntu machine, it still says the memory is as it was earlier. Two screen shots have been provided, the host is windows 7 professional, the guest is ubuntu 14.04 LTS, the virtual machine is oracle vm virtualbox.

enter image description here

the screen shot is of storage of virtual machine settings

enter image description here

the output of df -H command in ubuntu terminal

The question is how I can have the effect of resizing vdi on ubuntu machine.


The problem here is that you've increased the disk size within VirtualBox, but not within the Ubuntu operating system within the guest environment. You can achieve this by having the guest boot into some disk management software, I would suggest using GParted.

So you'd get the gparted.iso file on your host system, attach it to your vm as an optical disk (dvd), and boot the VM into it. Using Gparted, you would expand the partition which contains your root filesystem. When you detach gparted and boot the VM back as Ubuntu, you will see the new space being used.

Gparted is pretty safe, but it's always worth making a backup before doing anything with disks and partitions, even if they're virtual!

  • Thanks for your suggestions, but I am far behind your level of delivery in expertise. Would you please say in somewhat more details how to attach the iso file into vm and boot the vm into it? – anik_sbl Nov 30 '15 at 10:01
  • If you download the gparted.iso to somewhere in your Windows 7 system, then in the VirtualBox window (shown in your first image) click the storage section, select where your VBoxGuestAdditions.iso is currently attached, and choose to attach the gparted.iso. When you restart your VM it should boot to Gparted automatically, as I can see your boot order is; Floppy,Optical,Hard Disk. – Arronical Nov 30 '15 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.