Increase the size of an existing Windows partition

Discussions about using Windows guests in VirtualBox.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Increase the size of an existing Windows partition

Post by socratis »

Perryg wrote:I am not sure that you can merge the snapshots after a resize of an individual snapshot.
Yes you can do it. I did it as I was researching my answer to s3igell's question. But as I mentioned, it's tricky and I managed to screw it a couple of times. It took me several hours (with cloning and everything) to get it right.

@s3igell
I don't know why you got offended. I don't know you (and you don't know me) and what you know or you don't. But, in the context of VirtualBox and snapshots, you are a newbie if you have to ask questions like that. That's not a bad thing. Unless you can follow (not necessarily participate, simply follow) threads like this one, you are a newbie in the VirtualBox snapshots world.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
jebradl
Posts: 4
Joined: 9. Mar 2011, 18:28
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

Re: Increase the size of an existing Windows partition

Post by jebradl »

I got an error message when I tried to resize my dynamic virtual drive with vboxmanage, so I was unable to enlarge the drive by that method.

A convoluted way to get a larger drive is to create a VM with a dynamic drive the size that you want. Then add the drive that you want to enlarge. Boot from a bootable linux CD/DVD image file and then use 'dd bs=1M if=/dev/sdb of=/dev/sda' which will copy all of the drive you want enlarged to the new drive. You then use gparted to resize the partition to fill the drive. Both dd and gparted need to be run with root privileges (as root or with sudo).

The dd copy is slow, but copying a multi-gigabyte drive itself is slow.

My enlarged drive works fine, and I now have the space that I needed.
Post Reply