Prerequisites: VMWARE, a Windows XP image, a Ubuntu iso file
- Turn off Windows XP image if it is on
- Open up a terminal
- Change the directory to where your Virtual Machine is located
- Resize the VMWare disk (In this case it was 5GB, I want it to be 12GB): vmware-vdiskmanager -x 12GB Windows\ XP\ Professional.vmdk
- Open up VMWare and for the CD drive, pick your Ubuntu iso file
- Boot VMWare, hit Esc and choose CDROM at bios prompt
- Boot Ubuntu, get to desktop
- Open up a terminal, type sudo -i
- Type passwd ubuntu, then set a password for the ubuntu user
- Run the command ‘gparted’
- Select your windows partition and click resize
- Drag it to the desired value, then click apply
- GParted will probably ask for the ubuntu user’s password from the step a few steps ago
- Once finished, reboot
Windows may need to reboot twice, let it run its chkdsk. Done.
Related posts:
#1 by felix on May 5, 2008 - 12:26 pm
Quote
It looks a bit weird to use the ubuntu live-cd for this when there are so many nicer and more specific solutions around. I’d rather use gparted-live-cd (http://gparted.sourceforge.net/livecd.php), or systemrescuecd (http://www.sysresccd.org/Main_Page). The second one is better, but you’d have to start the X server by hand.
Besides, haven’t you found trouble on the scsi driver? Depending on how is the vm configured, disks created as scsi for XP don’t start in 2.6.x kernels. I’ve have to change the scsi.virtualDev line from lsilogic to buslogic and back or linux wouldn’t find the disk