vmware-vdiskmanager
I would like to
shrink a virtual disk. How do I do that?
Why would anyone ever wanna do that? Well... when
I created the virtual disk, the host drive had sufficient
space to hold it (if it were to ever fill up). However, by
now two things have happened: first, the host disk is
getting filled up with other stuff, and second, it looks
like I won't be needing as large a virtual disk after all.
Therefore I'd link to shrink the virtual disk, to prevent
the scenario in which it would (fill up and) not fit onto
the host disk -- which kinda gives me the creeps... :-o
Fwiw, the virtual disk in question is stored in 2G files,
most of which haven't reached 2G yet -- so if I'm not
mistaken, then it's of type 1 (vmware-vdiskmanager).
Also, I am capable of shrinking the partition that is in
said virtual disk (or so I believe -- I'd have to defrag it
before using e.g. Partition Magic... but I'm worried that
defragmenting it [in the VM] will cause all 2G chunks
to be allocated, i.e. I'd run out of host disk space).