I have a ubuntu system as a virtual system on Virtual Box. It uses VHD as its hard disk. I manged to change the size of VHD using VHD resizer, now I want to expand the partition on vhd so it uses the expanded size. How can I do this?
Expanding a partition and filesystem size is fairly straightforward, but it will need to be done from inside a live environment, unless it's on LVM. LVM supports online resizing of partition.
From inside a live cd, you can uses
Once the partition is extended, you still need to extend the filesystem. If it is ext2/3/4, you can use resize2fs. Here is an example:
Without any options,