Shrink guest on hosted platform: Difference between revisions

Line 94: Line 94:
=== Zero out using fstrim ===
=== Zero out using fstrim ===


These days there's an alternative way for zero-ing out the parts of the disk that are not used using fstrim.
These days there's an alternative way for zero-ing out the parts of the disk that are not used using [https://www.man7.org/linux/man-pages/man8/fstrim.8.html fstrim].


The great thing about this is that it only zero's out the parts of the disk that are not zero and as such the disk does not inflate to its full size.
The great thing about this is that it only zero's out the parts of the disk that are not zero and as such the disk does not inflate to its full size.
1,274

edits