I have a VM (VirtualBox) and its disk partitions are set up like this:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 979M 0 979M 0% /dev
tmpfs 200M 24M 177M 12% /run
/dev/sda1 7.8G 6.9G 445M 95% /
tmpfs 1000M 216K 1000M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
tmpfs 200M 52K 200M 1% /run/user/1000
/dev/sr0 58M 58M 0 100% /media/ldl/VBox_GAs_5.2.0
I used VBoxManage to resize the VM's .vdi file
VBoxManage modifyhd "/Users/sof/VirtualBox VMs/ubuntu14.04_01/ubuntu14.04_01.vdi" --resize 51200
and restarted the VM. Unfortunately this not work.
How do I resize the VM's drive?
EDIT-01
The guest OS is Ubuntu 14.04, and I want to extend its disk. but I don't know how to extend the partitions size.



