Ratheendran R: > *mount -o noatime,ro -t ext3 /dev/mmcblk0p1 /rootfsmount > -o rw -t tmpfs aufs-tmpfs /rwmount -t aufs -o > noatime,br=/rw=rw:/rootfs=ro none /aufsmkdir -p /aufs/rootfsmount --move > /rootfs /aufs/rootfs* > > *exec switch_root /aufs /sbin/init*
Ok, you have a root aufs dir (/) with two layers. The upper is writable tmpfs /rw which should be invisible under the root dir, and the lower is readonly ext3 /rootfs which should be visible. > Now I want to use the /rootfs in rw mode. > > so I do this by using the command below. > *mount -o remount, br:/rootfs=rw /rootfs* I don't think it correct. What you want to do is # mount -o remount,rw /rootfs make ext3 /rootfs writable. # mount -o remount,mod:/rootfs=rw / and then make the branch/layer in aufs writable too. don't you? > I create a new file in home directory with some text info embedded. What is the path your "home directory?" If it means /home/you, then you are accessing aufs and everything will be fine. If it means /rootfs/home/you, then you are by-passing aufs and access the branch/layer directly. In this case, unless you specify "udba=inotify" you won't see the new file. J. R. Okajima ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net