Is it safe to encrypt the swap partition?
Encrypting swap space can be a solution for this scenario. Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. The swap partition can hold a lot of unencrypted confidential information and the fact that it persists after shutting down the computer can be a problem.
Why is my Linux swap partition not activated?
Not an installation issue, moving to NC. Speak your mind even if your voice shakes. I remember I did. And if you check closely, you will notice that, the error is not coming from my swap partition. It is coming from my home drive. “Type Linux swap” in the fdisk output is the problem, as dazemc already said. Set it to the correct partition type.
How to mask the dev-sda5.swap partition?
If you fear messing things up, then simple solution would be to just mask the dev-sda5.swap unit so that systemd will not try to mount that partition as swap. i.e systemctl mask dev-sda5.swap /home partition should work as it should be despite fdisk -l showing it as swap which anyway is just a tag. Speak your mind even if your voice shakes.
Is the swap partition in Ubuntu encrypted by default?
Swap partitions are not encrypted by default and should be cleared of any sensitive data before continuing. The swap partition can hold a lot of unencrypted confidential information and the fact that it persists after shutting down the computer can be a problem. To encrypt SWAP, see Encrypted swap partition on Ubuntu.
Is it possible to decrypt a hard drive with a encryption key?
With a plain encryption key an attacker is for certain able to decrypt your whole hard drive. Moreover, swap doesn’t get wiped after you turn your PC off, unlike physical memory. Also note that if you hibernate your system, all of the physical memory will be written to swap.
Can a root get into the encrypted partition?
With “substring of password” you have at least not got the complete password there… And: only root can look inside it. My strings command has looked into the decrypted layer of the system, which lives only while running the OS.