On Tue, 21 Aug 2018 11:41:05 +0200 "[email protected]" <[email protected]> wrote:
> Le 21/08/2018 à 03:01, Allan a écrit : > > > After you have found some way to 0 your freespace sectors, close > > the VM and run: > > vboxmanage modifymedium <path/filename.vdi> --compact > > > > it may use much diskspace ! > > > > Remember a backup copy of the VDI, before you try ;-) > > > > I didn't look at this recently, but what I would try would be: > > * remember than the vdi file is like a physicalvdisk, and the install > is like a *partition* > > * so assuming you have a windows guest shrink the disk size *in > windows*. If you have a linux guest, do the same with gparted or > alike. > > * then the above command line should reduce the disk (vdi) size > > just a guess! Yeah, I guess you are right. If the partitions in Win gets shrunk to a lesser size, then the VDI should never grow over that size, even if it has room for more. That might be a simpler solution (that has the advantage, that you l8r can simply expand the partition again, if you have a new need for extra space). And since this have to be done anyway - before it can be copied to a new VDI ( see my other msg to Erik) there is really no need to do all the work of copying the VDI to a new smaller VDI. Allan. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:[email protected]?subject=unsubscribe
