I want to create a live system on a USB key / SDCard with Linux Mint 14 (KDE or Debian Edition) that stores data persistently. The USB key needs to have at least one fat32 partition. As storage for the persistent files I could either use this partition, another partition on the USB key (possibly with another filessytem) or an image file on a NTFS formated HDD.
I've tried both Mint 14 Debian Edition and KDE Edition as a live system with persistence file/partition but failed both times when updates tried to change the boot system.
I've now done a full install on the USB key, installed packages, updated and now want to change this into a live system by transferring most of the system to a read-only squashfs image on the fat partition, use a UnionFS (or aufs) to make that writable storing things on a second (ext2) partition of the USB key and mount things like /home from an image on the hdd (for disk space reasons).
Can somebody advise which parts of the filesystem are suited to be placed inside the ro squashfs and which should be implemented as tmpfs ramdisks (/tmp? /var?). What's the best file system to be used inside the sparseimage for /home? What about /proc and other 'special' directories? Do they need to be handled differently? Is it sufficient to place the options in /etc/fstab? Or do I need to edit scripts inside the initrd.lz bootimage for the root fs?
I know this is rather complicated. I'm also thankful for any links to blog posts or tutorials about that matter.