On Wed, Feb 11, 2009 at 6:24 PM, <sf...@users.sourceforge.net> wrote: > > Here is my suggestion based on the aufs manual. > > Before "umount -a" (or something) in your shutdown script, insert these > lines. > > for i in /bin ... > do mount -o remount,ro,mod:${i}=ro $i > done > mount -no remount,ro / > umount -a > That doesn't work, since I'm not making any entry for them in /etc/fstab and hence there is no entry for /bin,/sbin,/lib and /usr in /etc/mtab. Error as below:
mount: can't find /bin in /etc/fstab or /etc/mtab mount: can't find /sbin in /etc/fstab or /etc/mtab mount: can't find /lib in /etc/fstab or /etc/mtab mount: can't find /usr in /etc/fstab or /etc/mtab Then I tried appending entries for /bin,/sbin.. etc in /etc/mtab manually ( copied verbatim from /proc/mounts) and then try unmounting: echo "none /bin aufs rw,si=db66c080,xino=/tmp/xino,br:/bin=rw:/.mount/bin=ro 0 0 mount -o remount,ro,mod:/bin=ro /bin It failed with the following error: failure bad /proc/mounts 1 Thanks, Nitin. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com