Ubuntu 17.04 Randomly Freezes
Solution 1:
There seems to be problems with 17.04 and encrypted swapfiles... and there are some workarounds...
Edit your /etc/crypttab
like so:
gksudo gedit /etc/crypttab
Change this line:
cryptswap1 UUID=xxxx-xxxx-xxxx-xxxx /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
To this:
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Also make sure that your /etc/fstab
contains this:
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
References:
Ubuntu Desktop 17.04 64bit slow boot
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1668535
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1670336