How do I get Ubuntu to stop hanging periodically? [closed]

Solution 1:

The eCryptfs errors were caused by a regression.

It was fixed in Oneiric kernel version 3.0.0-15.25.

I'm not sure that the eCryptfs bug is what caused all of the problems you listed, but upgrading your kernel will remove one more variable while tracking down your issues.

Solution 2:

This appears to be occuring to some people who have upgraded from 11.04 to 11.10 and kept their encrypted home folder. There is no fix yet however there is a workaround. The issue can be resolved by deleting all encryptfs-encrypted files of zero lenght using the following command:

find /home/.ecryptfs/$USER/.Private/ -size 0c -exec ls '{}' \; | wc -l

Source: https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/870326