I use Oracle VM VirtuaBox to virtualize a Linux environment on my laptop.
filename for the virtual drive = “C:\Users\Eugene\VirtualBox VMs\thor\thor.vdi”
virtual drive is resized to 81920 MB
cd “C:\Program Files\Oracle\VirtualBox”
VBoxManage modifyhd “C:\Users\Eugene\VirtualBox VMs\thor\thor.vdi” –resize 81920
To change the size of the partition use the Gnome Partition Manager(Gparted). A mountable bootable ISO image is available. Mount a Gparted iso image and reboot to resize the partition.
I use Fedora. Run the "pvs"
command to see if Fedora sees the extra storage. We need to grow the logical volume (fedora-root) to increase the size of the filesystem
root@thor ~>lvextend -L 30G /dev/mapper/fedora-root
root@thor ~>resize2fs -p /dev/mapper/fedora-root