WinXP VDI resizing - where did I go wrong?

Discussions about using Windows guests in VirtualBox.
Post Reply
puke76
Posts: 17
Joined: 11. Jun 2009, 02:53
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP SP3

WinXP VDI resizing - where did I go wrong?

Post by puke76 »

Have a 30GB disk, 1 boot partition taking up the entire disk. Disk is full so need to increase size to 40GB.

Shutdown the VM and create a new dynamic VDI 40GB. Attach CDROM of GParted 0.8.0-5.iso. Attach new VDI and old VDI. Fire up GParted on the Guest, create new partition table on /dev/sdb1 and copy /dev/sda1 to /dev/sdb1. Mark /dev/sdb1 as bootable.

Reboot with only new 40GB VDI attached. Works like a charm.

Reboot with gparted ISO CDROM attached - drag the partition to the full size of the disk.

Win XP seems to boot OK. Later on after a reboot, I get "Windows XP" where Welcome should be, and everything locks up. Safe Mode does not get me past this either.

Any ideas? What have I done wrong here?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: WinXP VDI resizing - where did I go wrong?

Post by Sasquatch »

You went wrong in doing it the hard way. You can use "VBoxManage modifyhd <file|uuid> --resize <size in MB>" since 4.0 to change the VDI max size. Only enlarging is supported. Then you can use Gparted to enlarge the partition inside. You can also use Mpack's CloneVDI tool to increase the size.
If you want to do it the 'old' way, then you might have wanted to increase the size from the beginning, after the partition copy. What you can try now, is boot a Windows XP install disc, go to recovery and run 'fixboot' and 'fixmbr'. Then reboot and see how that went. A checkdisk (chkdsk) could also help.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply