[wplug] Zeroing out a swap partition
Drew from Zhrodague
drewzhrodague at zhrodague.net
Thu Jul 21 12:20:29 EDT 2016
On 7/21/16 11:47 AM, Pat Barron wrote:
> Can anyone suggest an "easy" way to zero out the contents of a swap
> partition, without affecting the "formatting" of the partition? (On
> RHEL / CentOS / Fedora, if that matters....)
I don't generally create swap partitions within a VM image, and opt to
attach a separate volume for swap, or use a swap *file*. The advantage
for a swap file, is that it can be created automatically via
kickstart/cloudinit scripts. I really only use swap to prevent oomkiller
from killing my processes.
The dd method in the StackExchange looks good if you're preserving your
VM image.
--
Drew from Zhrodague
post-apocalyptic ad-hoc industrialist
drew at zhrodague.net
More information about the wplug
mailing list