On Wed, 28 Oct 2015 18:26:08 +0100, /Leslie wrote: > Naturally in the order you prescribe :-)
Ok, great. Then I can imagine one other issue: VBoxManage" modifyhd "path\to\disk.vdi" --compact will only release space on dynamic virtual disks if the unused space is filled with binary zeroes. VBox doesn't know about partitions, and does'nt care if a block in a virtual disk is managed or not. In Linux, unused space within a filesystem can be zeroed out with a program like zerofree. In all operating systems, one would create a temporary file, fill it with seroes, and delete it. Both methods require the free space to be managed by a filesystem. In your case I believe it is empty unmanaged space, outside all partitions. You could create a new partition with a filesystem in that empty zone, zero it out as described above, or write zeroes to the whole partition. Then, compact the virtual disk once more. You can leave the zeroed-out partition as is, it will not occupy much space, probably just one "virtual block", which is 1 MByte (or 1 MByte per superblock for Linux/Unix filesystems like ext2/3/4). https://forums.virtualbox.org/viewtopic.php?p=29266#p29266 -- Regards, Kees Nuyt > /Leslie > > > >2015-10-28 17:16 GMT+01:00 Kees Nuyt <k.n...@zonnet.nl>: > >> On Wed, 28 Oct 2015 14:48:28 +0100, you wrote: >> >> > I've already done the compacting. And I also did the deallocating and >> > defrag of the disk inside Windows. >> >> Perhaps you did it as I describe below, but report it >> differently here? >> >> The order should be: >> >> - defrag in Windows >> (move all data to the front of the partition) >> - dealloc free space in Windows >> - compact with VBox >> >> >> > I did it to free up the unused space and >> > then I shrank the Windows partition in order to only have completely >> empty >> > space on the part of the VD I want to shrink. Well I'll keep on searching >> > for a suitable solution :-) >> >> Hope this helps. >> >> -- >> Regards, >> >> Kees Nuyt ------------------------------------------------------------------------------ _______________________________________________ VBox-users-community mailing list VBox-users-community@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe