Step-1 Shutdown the VM which you want to Expand/Increase ext3 root partition.
Step-2 Backup your original VMDK file to a different location
Step-3 Now we can Expand/Increase the disk
Syntax:vmware-vdiskmanager -x
EX:vmware-vdiskmanager -x 50GB yyy.vmdk
If the command ran successful then you will get below message.
=================================================================
Disk expansion completed successfully.
WARNING: If the virtual disk is partitioned, you must use a third-party
utility in the virtual machine to expand the size of the
partitions. For more information, see:
http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647
==================================================================
Now disk size is increased but operating system will only show old size.To add new disk we will need to use a third-party utility such as GParted to resize the expanded partitions. The GParted application is the GNOME partition editor for creating, reorganizing, and deleting disk partitions. GParted is a live Linux based CD.
Step-4 Download latest version here or use wget command
http://nchc.dl.sourceforge.net/sourceforge/gparted/gparted-live-0.4.5-2.iso
or
cd /tmp
wget http://nchc.dl.sourceforge.net/sourceforge/gparted/gparted-live-0.4.5-2.iso
Step-5 Boot the VM with GParted ISO.
Once the vm boots up, Press enter to go to next screen. Press enter till you get the GParted Screen.
Step-6 Right click on the partition which you want to expand and select "Resize/Move"
Step-7 Set a new size to maximum size (it is displayed on the screen itself) and Finally, Click on Resize/Move button to start the process.
Step-8 Click "Apply" to run the resize task. Depending on the amount (disk size and storage type) and type (resize or move) operation resize may tae a long time. After sometime Gparted will give out the final confirmation about disk resize operation (you must not get any error on screen)
Step-9 Click on Close and then exit to shutdown Gparted.
Step-10 Remove the GParted ISO and boot the vm with HDD
Step-11 Login into vm and verify the new disk size.