I need to boot and running a slightly customized, no X Squeeze (Debian stable) from USB stick. The problem is that a running linux (kernel-2.6.32-5) is writing USB more then 100 times per hour to the USB even in "idle" state - doing nothing, waiting for user interaction.
1. I have not use swap.
2. I have mount the root file system with "noatime" option.
3. I have mount tmpfs "over" teh /tmp directory.
But what to do with /var?
Running system is using this really intensivelly /var/log? The first idea suggested was unionfs. It can create a unified file system using ramdisk - everything you write to unified fs, in case if it is on USB will be written to USB and files existing on ramdisk and newly created files goes to ramdisk. Minimize USB writing. After some struggling I have realized that unionfs some what outdated and now should be used aufs which could do tha same things and more. Problem is that the documentation is really pure, many thing about what do not do, and some really complicated examples, to make full root filesystem as aufs, but how to mount branch of directories(?) to minimize USB writings as described above - nothing
I have downloded and installed on USB the Debian live 6.x to get some clues/tips - but it's using squashfs also and directory structure nearly unrecognizable (for me). I have read several documents, man for aufs, aufs documentation, I have even found a copy of "Unionfs in examples" missing form
www.filesystems.org/project-unionfs.html. May be a step-by-step guide?
Some one could help me, or have a better explanation of how to configure/setup branches?
Any help?