1

Topic: GParted doesn't show increased unallocated space of VM (VirtualBox)

Hello!

I use GParted Live 0.13.0-3 and VirtualBox 4.1.18 and want to resize a virtual machine from 30GB to 60GB (Mac Host, Wondows XP Guest).
First I resized the machine with the Terminal, which worked. That means that VirtualBox shows me the new size of 60GB.

After that I've booted GParted to fuse the allocated with the unallocated space.
The problem is, that GParted doesn't display the unallocated space of (round about) 30GB.
It only shows me the little free disk space of 1,3GB.

Does one of you know how I can solve this problem?
Would be nice if you could give a solution!!!

Cheers

Stephan

2

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

Do you have more than one virtual drive?  If so did you add the space to a different drive or different virtual machine?

Would you be able to provide the output from the following two commands?

fdisk -l -u

where one of the options is a lower case "L" and not the number one.

parted /path-to-your-device unit s print

where /path-to-your-device is something like /dev/sda.

3

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

Hello gdakc!

Thanks for your help!!!!
First I must say that I'm not a big command-line-hacker. Better: I'm an absolute beginner.

Can you tell me what I have to do to get the fdisk-output in windows xp?!

Thank you!!

4 (edited by stephankutsch 2012-08-09 19:04:50)

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

In addition:
I only got one drive in win xp (c:) and added the new free space to THIS VM.
Hope this info helps...

5

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

Are you booting GParted Live in the Virtual Machine?

If so then open a terminal in GParted Live, and type in the commands with "sudo " prefixed in front to gain root access.

Then you can enable networking in GParted Live, open the browser, and copy and paste the output into this thread.

6

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

Thnak you!

I did like you told me but couldn't login the forum.
Anyway, I write down the results:

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/phsical): 512 bytes / 512 bytes
I/O size (minimum/optimal: 512 bytes / 512 bytes
Disk indentifier: 0xafa9afa9

Device Boot    Start          End                 Blocks         Id     System
/dev/sda1 *      63       62894474          31447206       7      HPFS/NTFS/exFAT

Hope you can find out the problem...

Bye, Stephan

7

Re: GParted doesn't show increased unallocated space of VM (VirtualBox)

Based on this output, tools such as fdisk only see 32.2GB of disk space.   As such it would appear that the operating system is not seeing the extra disk space.

Perhaps with your virtual machine you might also have to configure the BIOS to recognize a larger hard disk?

I would think there should be a tutorial somewhere on the Internet that describes the steps to add space to a VirtualBox virtual machine.