making VDI logical size smaller?!?
-
idundas
- Posts: 2
- Joined: 29. Jun 2011, 17:05
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: windows server 2008
making VDI logical size smaller?!?
I messed up and expanded my C drive VDI for a Windows Server 2008 VM to 50TB instead of 50GB. Now the VM will not boot. Is there anyway to knock the VDI size back down to 50GB? This is the logical size I need to change. And no, I am an idiot and did not back up the VDI file before expanding it.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: making VDI logical size smaller?!?
I know of no reliable way to shrink this. You might find a way but if you have the backup I would use it and resize to the proper size. Should be a whole lot faster.
-
TiPo
- Posts: 2
- Joined: 26. Jun 2011, 15:07
- Primary OS: Fedora other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows
Re: making VDI logical size smaller?!?
Maybe this works http://www.my-guides.net/en/content/view/122/26/
Although it's for enlarging, maybe you have to shrink the 50TB partition first with GParted before copying to the new vdi.
Although it's for enlarging, maybe you have to shrink the 50TB partition first with GParted before copying to the new vdi.
-
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: making VDI logical size smaller?!?
That can work, as long as the partition that you're going to copy isn't larger than the destination. So shrink it first if it is. And this time, do make a backup of the VDI first or you're going to install the Guest as new.
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.
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.
-
idundas
- Posts: 2
- Joined: 29. Jun 2011, 17:05
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: windows server 2008
Re: making VDI logical size smaller?!?
Well, I managed to find an old backup of the VDI. Made a backup of it, expanded it using the vboxmanage modifyhd command line, and resized the partition with gparted without a hitch. I just have to repatch the OS and reinstall everything that was there. At least now I have a patched baseline I can always fall back to. I will have to try to "undo" the 50TB vdi file as I assume at somepoint in the future I will make a similar mistake and it will be a lot more critical.