aufs - another union fs

July 24th, 2007

If you are ever in the need of stacking multiple file systems (or directories) over each other, aufs might be a possibility. I’m currently using it to implement some system similar to HDGuard—normal users should be able to use the system, but after a reboot all changes should be reverted. Using aufs I can easily do that by combining the real root device (readonly) with a tmpfs (readwrite). In theory it’s pretty easy, but if you want to change the root fs you have to use an initrd/initramfs file.. and I’m currently fiddling with some problems. :)

An ebuild for aufs is in my overlay (stolen from sunrise, but updated and improved/fixed).