I run my Ubuntu in Vmware box. Unfortunately my Ubuntu disc size becomes too low. What is approach to solve this problem. I did expand partition in Vmwareand got message:
The disk was successfully expanded. You must repartition the disk and expand the file systems from within the guest operating system.
But how to resize disc partition in Ubuntu now?
UPD output of fdisk -f
Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders, total 52428800 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
Disk identifier: 0x0004819b
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 39845887 19921920 83 Linux
/dev/sda2 39847934 41940991 1046529 5 Extended
/dev/sda5 39847936 41940991 1046528 82 Linux swap / Solaris
sudo fdisk -l
from inside the running system there. Paste the output into the question. Resizing will depend on whether it was installed with LVM or not.