Shrink guest on hosted platform: Difference between revisions

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 ====
1,274

edits