Take the 2-minute tour ×  Locked pages are sometimes used to
store crypto keys like for Luks or for encfs and other sensitive
things.  But when doing hibernate (without swap drive
encryption) they get stored to disk unencrypted anyway.  Do
locked pages get erased from swap file when the system resumes
from hibernate or I should cleanse the swap drive somehow
manually?  share|improve this question  1 Answer 1  The only way
is to use disk encryption on the swap partition. There are some
reports of success doing this... Although this adds another
layer of security (assuming you use a different password), you
also have to enter and remember both passwords (unless you
hardcode it into a startup script, eliminating it's purpose in
the first place). Alternatively, you could encrypt the entire
drive with a LVM. What the person did was use LVM ontop of a
LUKS-encrypted partition (that way you only need a single
password).  The reason you have to encrypt the swap partition
While they get "erased", the data is still rec