Hello to all,
Below is the solution to my problem.
If you are using a VMware Ubuntu appliance you will notice a significant increase in the size of the appliance after an upgrade or whenever migrating to a newer version of Ubuntu. This apparently occurs because Ubuntu does not actually delete files. Thus your appliance will become bloated pretty quickly. Below follows a solution I have found the to be very helpful.
Do the following from Ubuntu root (sudo -i) #.
First zero out the deleted files.
~# cat /dev/zero > zero.fill ; sync ; sleep 1 ; sync ; rm -f zero.fill
After it has worked for awhile it will say “cat: write error: No space left on device”
Then issue the following cmd
~# VMware-toolbox-cmd disk shrink /
You will then see the following;
" Please disregard any warning about disk space for the duration of the shrink process"
Then you will get the following ;
“Progress: 0% [==> 100%” when it is done
This has worked for me every time.
Hope this helps those who use a VMware appliance ,
Below is a screen shot. Don’t really know how to insert a screenshot, sorry.
Doc5.docx (193.8 KB)