On 12/04/2011 13:06, sf...@users.sourceforge.net wrote:
> Ed W:
>> 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?
> 
> Ah, I had to misunderstand, sorry.
> How about this?
> 
> # mount -o bind /ro /union
> # mount -t aufs -o br:/rw/home:/ro/home none /union/home
> # mount -t aufs -o br:/rw/var:/ro/var none /union/var
> 
> or it may be able to become more directly.
> 
> # mount -o ro RO_DEV /union
> # mount -t aufs -o br:/rw/home:/union/home none /union/home
> # mount -t aufs -o br:/rw/var:/union/var none /union/var
> 


Hmm, interesting. I think then that this extension is not possible though:

/ro is an aufs consisting of several layered base modules (think slax):
        /mnt/sqfs1
        /mnt/sqfs2

Want to overlay /rw/home and /rw/var on top as writeable dirs, but the
rest of the filesystem is read-only?


The limitation seems to be that we can't layer aufs on aufs?

I am not sure about the cross filesystem mounts, can I do this:

# mount -t aufs -o br:/mnt/sqfs2:/mnt/sqfs1 none /union

# mount -t tmpfs -o ro none /tmp/tmp_var
# mount -o bind /rw/var /tmp/tmp_var/var
# mount -t aufs -o br:/tmp/tmp_var none /union



The goal is a slax style layered base OS, with as far as possible
limited writeable top level.  Ideally /var is stored in one partition,
/home on another and nothing else is writeable...

Thanks for any thoughts

Ed W

------------------------------------------------------------------------------
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

Reply via email to