Hi Ratheendran and Okajima, I had a similar problem. When I do the followings in initrd:
mount -t aufs -o br=/mnt-cow:/mnt-ro aufs /new-root mount --bind /mnt-cow /new-root/live/cow mount --bind /mnt-ro /new-root/live/ro umount -l /mnt-cow /mnt-ro exec switch_root /new-root "$INIT" "$RUNLEVEL" Then /live/cow and /live/ro will be empty. They will not be empty when I omit the "umount -l". Note: This problem was encountered more than two months ago. I am not sure if it still happens with the up-to-date aufs and Linux. I am also unsure if it's a problem of aufs or of Linux. I don't even know if it's a bug or merely my misunderstanding. Guan On Tue, Dec 23, 2014 at 5:25 AM, Ratheendran R <ratheendra...@gmail.com> wrote: > > Thanks J R Okajima, > Excuse me for my inadequate explanation of the problem. > I am following the below link for the Read only implementation. > > [1]https://matt.bionicmessage.net/blog/2013/03/26/HOWTO%3A%20Read%20only%20r > ootfs,%20writes%20to%20USB%20on%20Linux >  > Now after the switch_root call from init of initramfs the mount /rw /ro and > /aufs are cleaned. > exec switch_root /aufs /sbin/init > > The mount point is not accessible ,Please correct me if my understanding is > wrong. > Ratheendran > > On Tue, Dec 23, 2014 at 8:35 AM, <[2]sf...@users.sourceforge.net> wrote: > > CC: aufs-users ML > Ratheendran R: > > I forgot to mention in my earlier correspondence that I am using > initramfs > > and mount the aufs and then call the switch root to main file > system.hence > > I miss the /aufs in initramfs. so in this case what is the work around. > I don't understand what you want to ask. > You can mount aufs with three branches before and after > switch_root. Both ways are possible. > What does it mean "hence I miss the /aufs in initramfs"? > J. R. Okajima > > References > > 1. > https://matt.bionicmessage.net/blog/2013/03/26/HOWTO%3A%20Read%20only%20rootfs,%20writes%20to%20USB%20on%20Linux > 2. mailto:sf...@users.sourceforge.net > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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