Extending partitions With GParted
Tuesday, 07 November 2006 by Michel Roth
It is not uncommon that you have to enlarge a partition of a system whether it is physical or virtual. In a Windows environment, the diskpart command can be used but does not work for boot and system partitions. A lot of times however, I have the need to expand the system partition. Here are the steps I follow in an ESX environment but they can also be used in GSX or Workstation (with some other tools) or even old school physical systems.

Step 1: enlarge disk with vmkfstools
Power down the virtual machine and use the service console command vmkfstools with the -X parameter. For example:

vmkfstools -X 12G

Step 2: boot the guest normally
You need to boot the guest normally to let Windows detect the new disk size. If you omit this step, GParted will throw errors after expansion of the partition.

Step 2: use GParted to enlarge the partition on the disk
GParted (Gnome Partition Editor) can be downloaded as a Live CD from here. Just put the iso on your ESX system and connect it to the virtual cd-rom drive of the guest. Then boot the guest and boot from the cd.

Read this entire techtip at the source, Baeke.info.

Related Items:

Live View (1 September 2006)
New Windows XP Embedded Virtual Labs (13 November 2006)
The Virtues Of Virtualization (21 December 2006)
Image Builder Wizard – Quick and Easy Embedded OS Creation (9 September 2009)
How To Build And Optimize A Virtual Machine Guest (12 July 2006)
The Virtualization Alternative (1 May 2006)
Disk2vhd v1.0 (16 October 2009)
Cisco Catalyst Switching Customers Benefit From Network Virtualization Features (9 May 2006)
Deploying a XPe Image directly into a VHD (15 May 2008)
Requirements and Limits for Virtual Machines and Hyper-V in Windows Server 2008 R2 (26 August 2009)
Comments (0)add feed
password
 

busy