I am running VirtualBox 5.2_18 on Ubuntu 18.04 to host a Windows 7 instance as a guest system. The virtual hard disc is "dynamically allocated" and became too small for what I need to run within the Windows instance. I made four snapshots in the past if this is relevant. Therefore, I followed the large amount of articles on the topic on how to resize the virtual disk. Here is what I did:
- Unmount the disk in VirtualBox
- Resize the disk by executing
VBoxManage modifyhd Windows7.vdi --resize 50000
- Remount the disk in VirtualBox
- Mount GParted ISO to resize the virtual disk
At this point VirtualBox understands the new virtual size (~50GB).
The actual size is still what it has been (13,42GB) as shown in this screenshot:
Than I boot the GParted Live CD. As highlighted in the following GParted screenshot the disk size is still around 30GB which was the old size of the virtual disk.
How can I let GParted recognize the new disk size?