Virtual harddisk resize no effect - no more hdd space in Ubuntu

Discussions about using Linux guests in VirtualBox.
Post Reply
Tinka
Posts: 2
Joined: 29. Sep 2016, 09:51

Virtual harddisk resize no effect - no more hdd space in Ubuntu

Post by Tinka »

Hi!

I successfully resized my virtual harddisk *.vdi from 8Gb to 120 GB by using the VBoxManage --resize command.
Screen Shot 161.PNG
Screen Shot 161.PNG (40.83 KiB) Viewed 2507 times
The Ubuntu Xenial guest though still reports: " This computer has only 0 bytes diskspace remaining."
The real size of the VM is 4.9 GB.

On the Win 7 host the disk management looks fine with no unallocated space on my host hdd.

Is this about cluster size?

What to do?

Best regards, Tinka
Last edited by Tinka on 29. Sep 2016, 11:00, edited 1 time in total.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Virtual harddisk resize no effect - no more hdd space in Ubuntu

Post by socratis »

Tinka wrote:What to do?
Read the FAQs? Like this one? How to resize a Virtual Drive.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Tinka
Posts: 2
Joined: 29. Sep 2016, 09:51

Re: Virtual harddisk resize no effect - no more hdd space in Ubuntu

Post by Tinka »

Thank you.

I had missed step two of resizing the partitions inside guest Ubuntu using GParted Live ISO. Also, this was complicated, I moved the swap and the extended partion, resized to unallocated space and was not able to boot when the Linux partition was moved to the left. Fortunately, using GRUB rescue procedure from gparted_dot_org helped (not allowed to post urls yet)

So - resizing the size of a Ubuntu VM is not a piece of cake!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Virtual harddisk resize no effect - no more hdd space in Ubuntu

Post by mpack »

Tinka wrote:So - resizing the size of a Ubuntu VM is not a piece of cake!
Actually, this had nothing to do with it being a VM. It's the exactly the same procedure in the physical world if you replace an existing hdd with a larger one.
Post Reply