How to retrieve unused space from Ubuntu VM using vmware player
Steps to retrieve unused space
-
Defragment (no need to un/remount anything). Ignore any errors. Some files like symlinks and device files can’t be defragmented.
-
Zero-fill all unused space so VMware knows it’s indeed unused:
-
Run the shrink operation: