I have an Ubuntu VM on VMWare Player, on which I can't increase the virtual disk size. Earlier I built the VM with 30G size, then I used the VMWare expand 'button' to expand to 50G. Now the VMWare image shows 50G. But when I do a df -h inside the OS, I still see it as 30G.
fdisk -l shows disk as 50G, but the sda1 partition still shows 30G. How can I extend my / (everything is on /, just one partition) to the full 50G?
# fdisk -l
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0001183e
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 58722303 58720256 28G 83 Linux
/dev/sda2 58724350 62912511 4188162 2G 5 Extended
/dev/sda5 58724352 62912511 4188160 2G 82 Linux swap / Solaris
Thank you.