I have Virtual Box installed on windows box and Ubuntu Vm created inside it. I want to extend this Ubuntu VM's partition. I did following successfully.

C:\ VBoxmanage modifyhd ubuntu14-server-64bit-study-docker_Clone-disk1.vdi --resize 30000

Now Partition size is 30Gb but actual size is 8G.

I tried with Gparted Iso/VM http://derekmolloy.ie/resize-a-virtualbox-disk/#prettyPhoto but that is not working for me. So is there another way to do it ?

I want to resize it to 30GB. Is this possible without data loss ?

enter image description here

ps : I tried resizetofs but it didn't worked !

  • What do you mean by "actual size is 8G"? Is that the size of the file on your (real) hard drive? If so, is the VDI dynamically allocated? If it's dynamically allocated, then this is perfectly normal and the file will grow once you put more data on it (up to 30 GB). – insert_name_here Aug 15 '16 at 10:11
  • my root partition which I want to extend is 8GB – Ashish Karpe Aug 15 '16 at 10:17
  • Please add a screenshot of your virtual drive's partition layout. – insert_name_here Aug 15 '16 at 10:24
  • Snapshot uploaded above – Ashish Karpe Aug 15 '16 at 10:52
  • I meant the partition layout inside your virtual drive; i.e. add the output of fdisk -l (run it inside the VM). – insert_name_here Aug 15 '16 at 10:58

Deleted extended partition and swap then I was able to extend my primary ie sda1

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.