Make the swap partition type 82 (normal linux) apt-get install cryptsetup echo "cswap /dev/sda2 /dev/urandom swap" > /etc/crypttab echo "/dev/mapper/cswap none swap sw" >> /etc/fstab reboot