VMware Communities > VMTN > Desktop Products > VMware Fusion (for the Mac) > Discussions

This Question is Answered

5 Replies Last post: Dec 9, 2007 1:42 PM by Dr Dave
Reply

Shrink Virtual Hard Disk...with a twist!

Dec 8, 2007 11:17 AM

Click to view Dr Dave's profile Enthusiast Dr Dave 91 posts since
Dec 23, 2006
I'm using version 1.1 (62537) of Fusion

I used the VM converter to convert a physical XP machine and copied the files to my MAC. I have the vm up and running.

I want to shrink my c: drive which is 160GB to 100GB and I have a problem with this. I understand that I can do this by using VMware tools and going to the shrink tab. Unfortunately, VMware tools will not install AND I'm not really interested in getting it working as this VM is only for legacy reasons -- I may have to go to it once-in-a-while, but rarely.

Is there another way to shrink this disk. Note that the VM does have Partition Magic installed...and working! :-)

Any feedback is appreciated.

David
Reply Re: Shrink Virtual Hard Disk...with a twist! Dec 8, 2007 11:56 AM
Click to view brianriceca's profile Master brianriceca 970 posts since
Oct 11, 2003
VMware
The purpose of the "Shrink" tab in the VMware Tools screen isn't to change the size of the disk as Windows sees it. Rather, it decreases the footprint of the virtual disk in your Mac OS home directory. Suppose you had an (ordinary, default for Fusion and Converter) 100 GB virtual disk, containing 75 GB of stuff. It would occupy a bit more than 75 GB of space in your Mac OS home directory, even though Windows would continue to see this disk as being 100 GB in size.

Suppose you then deleted 25 GB of stuff. The virtual disk would still take up 75 GB in your Mac OS home directory.

Suppose you then ran "Shrink". After that operation, the virtual disk would take up a bit more than 50 GB in your Mac OS home directory. As always, Windows would continue to see this disk as being 100 GB in size.

Is what you want to do to change the effective size of the disk (as Windows sees it), rather than the physical size of the disk (as your host Mac sees it)? I can certainly imagine Partition Magic helping with that. It could decrease the size of your C: logical drive, leaving behind what it would believe was "unallocated space on the physical disk". Of course, it's really a virtual disk.

So how to squish out that "unallocated space on the physical disk"? Well, that's among the things VMware Tools Shrink does. But you said you didn't want to do that.

Here's an idea: after you use Partition Magic, run VMware Converter again inside that VM. Converter writes virtual disks that are no larger than necessary. So you'd discard the original virtual machine and use the new one.

Caution: although I've used both Converter and Partition Magic many times, I've never tried this exact operation. So be careful, keep backups, Your Mileage May Vary, etc.
Reply Re: Shrink Virtual Hard Disk...with a twist! Dec 8, 2007 1:19 PM
in response to: brianriceca
Click to view brianriceca's profile Master brianriceca 970 posts since
Oct 11, 2003
VMware

Now that I think about it more, you wouldn't even need Partition Magic. Just specify a smaller target virtual disk in VMware Converter.


Reply Re: Shrink Virtual Hard Disk...with a twist! Dec 9, 2007 10:08 AM
in response to: brianriceca
Click to view rcardona2k's profile Champion rcardona2k 5,113 posts since
Oct 20, 2005
Either way works. Using VMware Converter to export to a smaller virtual disk works just like Ghosting to a smaller disk works. And separately, if you Shrink a VMware virtual disk and it's physical size on the host is less than 100 GB, you can run Partition Magic or the gparted live cd to "cap" the logical partition to 100 GB the dynamically allocated virtual disk will not grow beyond 100 GB. The "unused" virtual logical partition space is just an artifact of the virtual disk container not real "wasted space" as it would be a physical drive.
Reply Re: Shrink Virtual Hard Disk...with a twist! Dec 9, 2007 1:40 PM
in response to: brianriceca
Click to view Dr Dave's profile Enthusiast Dr Dave 91 posts since
Dec 23, 2006
Thank you for "rethinking" this. That's appreciated.

In the end, I simply ran the converter and that worked fine. Glad I'm working with 2TB! :-)
Reply Re: Shrink Virtual Hard Disk...with a twist! Dec 9, 2007 1:42 PM
in response to: rcardona2k
Click to view Dr Dave's profile Enthusiast Dr Dave 91 posts since
Dec 23, 2006
Artifacts, for me...not good! :-)

Appreciate the clarification.
Actions