03-31-2016, 10:27 AM
ok, I've checked that.
My working LL was the image to test, a lot of software has been installed/uninstalled since it was initially created, so it was wasted a lot.
1) The initial size:
2) Then I filled the drive with zeros:
In a couple of minutes no more free space left and there is a huge empty_file.
so, rm empty_file.
Seems the image size is the same.
Let's compact it:
Now the things are better:
My working LL was the image to test, a lot of software has been installed/uninstalled since it was initially created, so it was wasted a lot.
1) The initial size:
Code:
-rw------- 1 az az 9287237632 марта 31 13:09 Linux_Lite Clone.vdi
2) Then I filled the drive with zeros:
Code:
cat /dev/zero > /empty_file
In a couple of minutes no more free space left and there is a huge empty_file.
so, rm empty_file.
Code:
-rw------- 1 az az 9288286208 марта 31 13:13 Linux_Lite Clone.vdi
Let's compact it:
Code:
VBoxManage modifyhd Linux_Lite Clone.vdi --compact
Now the things are better:
Code:
-rw------- 1 az az 4762632192 марта 31 13:15 Linux_Lite Clone.vdi