Page 1 of 1

[Solved] vboxmanage - resized to 50TB instead of 50GB

Posted: 1. Jul 2013, 17:21
by aheberlein
Hi,

accidently I resized a vdi-Image to 50TB instead of plannend 50GB using vboxmanage (dynamic drive).
Booting now leads to "Error loading operating system" (Win 7).

As I've read there is no way to shrink an image without booting the OS.
Does anybody have an idea how to fix this problem or to reverse the resizing?

Cheers
aheberlein

Re: vboxmanage - resized to 50TB instead of 50GB

Posted: 2. Jul 2013, 11:22
by mpack
Only two cures that I know of.

1. Patch the VDI header using a hex editor to get it down to a usable size. Google for previous discussions of this problem and solution.

2. (Untested). Mount the VDI in another VM which also has a third VDI of the correct size attached. Copy the partition(s) plus the MBR from the damaged drive to the third VDI. Any disk imaging app is capable of doing the copy.

Re: vboxmanage - resized to 50TB instead of 50GB

Posted: 2. Jul 2013, 13:51
by aheberlein
Thanks for your reply!

I solved it creating a new vdi, then created the partitions using gparted.
chkdsk repaired the original partition to be cloneable and then I cloned them to the new vdi using Clonezilla.

Now it works again :D

Re: [Solved] vboxmanage - resized to 50TB instead of 50GB

Posted: 2. Jul 2013, 15:52
by mpack
Glad to hear it, thanks for letting us know.