use buildmap
That didn't work for me. (linux.hdd with ext4 on it)
"Compact" returned immediately with no space gain.
However it works over the command line.
(1) step one is the same
(2)
- go to the Folder, where the .hdd - Directory is located (yes, it's an dir)
e.g
Code:
$ cd /Users/Shared/Parallels/
or
$ cd /Users/Shared/Parallels/<linux name>.pvm/
# check
$ ls -ld *.hdd
drwxrwxrwx@ 8 user staff 272 12 Nov 11:49 linuxhome.hdd
$ du -ksh linuxhome.hdd
20,0G linuxhome.hdd
- compact via prl_disk_tool
Code:
$ prl_disk_tool compact --buildmap --hdd linuxhome.hdd/
Operation progress 100 %
$ du -ksh linuxhome.hdd
8,3G linuxhome.hdd
The important parts are --buildmap and the "/"
The hdd-Image has been shrinked from 20GB to 8.3GB, which comes pretty close to the actual size inside the VM
Code:
root@yoda:~# df -h
Filesystem Size Used Avail Use% Mounted on
…
/dev/sdb1 61G 7.4G 51G 13% /mnt/user