Increasing the size of a disk and disk partition on VMWare Linux client

 

To increase the disk size on my Centos 6 virtual machine, I followed these steps.

  1. Close down the virtual machine.
  2. Right click on the machine, go to Edit Virtual Machine Settings, Select the Hard Disk, click on “Expand Disk” on the right hand side, increase the size and click “Expand”. This makes the disk bigger, but does not change the partition size.
  3. Download https://10gbps-io.dl.sourceforge.net/project/gparted/gparted-live-stable/0.30.0-1/gparted-live-0.30.0-1-amd64.iso or the latest version.
  4. Select the virtual machine by right clicking on the machine and select “Edit virtual machine settings”. In the CD/DVD section, select “Use ISO image” and select the image from step (3).
  5. Now start the machine by clicking on VM->Power->Power_On_To_Firmware
  6. The PhoenixBIOS will pop up. Select the “Boot” section, and move to “CD-Rom Drive” and click the “+” to bring it to the top of the list.
  7. Press F10 to boot. You should now start up gparted. Resize your partition.
  8. Undo step (6)
  9. Reboot your machine and enjoy your resized disk.