fsprotect is a set of scripts that combine tmpfs and aufs to make existing filesystems immutable. After the filesystems are protected, everything that is written will be lost when the computer powers off. It is a great tool for testing and for public computers like those in schools, libraries, etc. It is also very easy to use. It is currently available only for Debian-based systems.