disk space occupied by a VMWare Player virtual
The VMWare virtual hard disk space in the file system of the host system. This space can be recovered if you have deleted the virtual hard disk files using the compacting tool, but sometimes not enough.
Suppose we create in VMWare virtual machine and add a 20GB disk, but do not mark the box to reserve all the space now (Allocate all disk space now). In this way the virtual disk created, which is a file on the host system, grows according to the needs of the virtual machine. If we occupy space on the host machine the file that represents the virtual disk grows. But if the file does not delete things is reduced.
An example: I have a 20GB virtual disk busy but I have 4GB, that means that the file that represents the virtual disk will take 4GB. If now I put 8GB, the file grow to fill 4 +8 = 12GB. And if I'm getting information I can get to fill all the virtual disk, the 20GB, and the file is 20GB. Now delete data to leave only 6GB virtual disk, but the file remains at 20GB.
To reclaim the space occupied by a VMWare Player virtual disk can be used a tool available within the virtual machine configuration (Edit virtual machine settings). Select the disk you want to reclaim space and drop-down list of utilities (Utilities), choose Compact (Compact). After a while, we will have freed up some space.
Still, much space is not recovered as expected. To retrieve more space you have to do is reset to 0 all the free space on the virtual disk, and then re-compacted. To achieve this in Linux, we can use the dd command. In the following example are going to get 10GB to zero by creating a file with dd and then deleting it:
dd if = / dev / zero of = archivo_con_ceros.txt bs = 1048576 count = 10240
rm archivo_con_ceros.txt
Even we can also let him fill the entire disc:
dd if = / dev / zero of = bs = 1048576 archivo_con_ceros.txt
rm archivo_con_ceros.txt
Once deleted the file turn off the virtual machine and compact the virtual hard disk. When finished we will see who has recovered much more space than in the previous compaction.
0 comments:
Post a Comment