- Open: /etc/crypttab
cryptswap1 UUID={uid code 1} /dev/urandom swap,cipher=aes-cbc-essiv:sha256
cryptswap2 UUID={uid code 2} /dev/urandom swap,cipher=aes-cbc-essiv:sha256
- Run:
sudo mkswap -U {uid code 1} {device name, ex: /dev/dm-6, see in GParted}
- Add {,1024} at the end of the first line in /etc/crypttab
cryptswap1 UUID={uid code 1} /dev/urandom swap,cipher=aes-cbc-essiv:sha256,1024
- Run:
sudo update-initramfs -u
Reboot :)