Shrink guest on hosted platform: Difference between revisions
Jump to navigation
Jump to search
Shrink guest on hosted platform (view source)
Revision as of 01:15, 13 October 2021
, 13 October 2021→Zero out using fstrim
(2 intermediate revisions by the same user not shown) | |||
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. | ||
* [https://forums.freebsd.org/threads/ssd-trim-maintenance.56951/post-328912 Detail comment from Theodore Ts'o on using fstrim] | |||
* [https://github.com/vmware/open-vm-tools/issues/457 Avoid disk expansion while shrinking (github issue tracker)] | |||
== Zero out unused space on a Windows VM == | == Zero out unused space on a Windows VM == |