3

I'm running Linux on my Laptop and wish to protect my data in case the machine is lost or stolen.

I've configured an encrypted ArchLinux environment and have everything working the way that I want. Now I wish to add suspend to disk functionality, which necessitates swap space. If I allocate swap space as a file on the root filesystem (which is already encrypted), does that swap file still need to be encrypted? Please explain why or why not.

2

1 Answer 1

4

If the root filesystem is encrypted, all files written to the filesystem, whether they be plain text files or swap files will all be encrypted.

2
  • So there is no technical or security-related reason for further encrypting the swap file as well? Commented Oct 13, 2015 at 21:09
  • 1
    Indeed. No need to encrypt it further.
    – steve
    Commented Oct 13, 2015 at 21:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .