On Wed, Oct 23, 2013 at 12:40:32AM +0300, Demetre SV1UY wrote:
Can we have a system with no writting on the disk all the time? I'm not sure.
The technique used to do this in embedded systems is often to have the variable filesystems (/tmp, /var) mounted on a RAMdisk. At boot time the RAMdisk is created and a stored image restored onto it from the main flash. At system shutdown time, a new /var image is generated and stored to flash. Thus flash is only written to when the system is regenerated. Swap is disabled.
This would be difficult to do with the Pi because it is so limited in main memory, but it works on larger systems just fine. I've had a FreeBSD box running this way (with flash, no hard drive) for several years. - Brian