Debian can be configured so as to minimise the amount it writes to storage, which is useful when running on flash memory (such as a CompactFlash card).

Finding recently changed files

Finding out which files have been written to recently:

sudo find / -xdev -printf '%T+ %P\n' | sort -n | tail -99

syslog

Edit /etc/rsyslog.conf and comment out any log files that are not required.

/var/run and /var/lock

sudoedit /etc/default/rcS

..then edit these lines:

RAMRUN=yes
RAMLOCK=yes

..so that /var/run and /var/lock are mounted in RAM.