On Tuesday 2011-04-12 09:55, Ed W wrote: >On 12/04/2011 07:35, sf...@users.sourceforge.net wrote: >> Hi Ed, >> >> Ed W: >>> - Assume /ro and /rw, where /ro is a base installation, and /rw contains >>> directories /home/ and /var/ >>> - Desired end result is that /union should become an aufs mount with /ro >>> readonly at the bottom, rw/{home,var} writeable and next up, and >>> readonly further up. >>> - The only writeable dirs on /union are /home and /var >>> >>> What is the most efficient configuration to achieve this? >> >> If the filesystem type of your ro and rw are not special, I'd suggest to >> use the default configuration. > >Apologies, but that's the bit I'm missing... > >If I stack /ro, then /rw, then the resulting union becomes completely >writable? How to stack only (say /home, /var) a part of the filesystem >as writable?
mount -t aufs -o br:/home=ro:/var=ro none /mnt mount -t aufs -o br:sometmpfs=rw:/mnt/foo=ro none /mnt/foo would seem to be the logical step, though I can't say whether aufs properly takes a reference on the old /mnt/foo before adding the vfsmount. ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo