Shrink guest on hosted platform: Difference between revisions
Shrink guest on hosted platform (view source)
Revision as of 16:44, 15 November 2016
, 15 November 2016→Zero out unused space in a Linux VM
mNo edit summary |
|||
Line 26: | Line 26: | ||
As this command writes to the disk until it runs out of disk space, you will get an error "No space left on the device". This is expected. | As this command writes to the disk until it runs out of disk space, you will get an error "No space left on the device". This is expected. | ||
Note that you have multiple partitions that you have to repeat the above command to zero out for each partition. | |||
Adjust "zero.fill" to the relevant mountpoint, for example if you have a separate partition for home it would become: | |||
cat /dev/zero > /home/zero.fill;sync;sleep 1;sync;rm -f /home/zero.fill | |||
==== Zero out unused space on a Windows VM ==== | ==== Zero out unused space on a Windows VM ==== |