Hi,

   First of all, thanks for your quick reply...

   I  think Im using the latest version of AuFS which is available for my
   Kernel, 2.6.29....

   I've tried to do what you've just told me, but on the first line:

   "mount -no remount,ro /"

   it says:   mount: / is busy

   I've checked what you've told about the xino file, if I make this:

   rocinante si_da74dd25 # cat /sys/fs/aufs/si_da74dd25/xi_path
   /.rw/.aufs.xino
   rocinante si_da74dd25 #



   but, that file does not exist (although the patch should be fine):

   rocinante si_da74dd25 # cat /.rw/.aufs.xino
   cat: /.rw/.aufs.xino: No such file or directory
   rocinante si_da74dd25 #

   I think my problem is the way I make the chroot in the initRam, but im not
   sure:

   1) first I mount the two branches normally in /.ro and /.rw

   2) then I make the union with aufs into /new_root

   3)  then,  I  move  the  previous /.ro and /.ro into /new_root/.ro and
   /new_root/.rw     with "mount --move"

   4) then I make a normal chroot

   In your aufsRoot script I see you are making the union not by the full root
   but specifying separately each /tmp /bin..... It only make sense for me if
   I'd want to exclude any folder, could be it related with my problem. Is my
   procedure right?

   Thanks

   Rubén

   2011/6/1 <[1]sf...@users.sourceforge.net>

     Hello Ruben,
     Ruben Perez:

   >  All  is  working fine, but when I want to umount /.rw or remount as
   readonly,
   > I always get "device is busy", no matters how I do it, always that...
   >
   > Do Im doing something wrong?

            :::

   > And the version of AuFs im currently using:  aufs
   > 2-standalone.tree-29-20100913

     First, your aufs version is obsoleted and not maintained now.
     Second, I'd suggest you to read the aufs manual.
     (from the aufs manual)
     ----------------------------------------------------------------------
     When your aufs is the root directory of your system, and your system
     tells you some of the filesystem were not unmounted cleanly, try these
     procedure when you shutdown your system.
     .nf
     # mount -no remount,ro /
     # for i in $writable_branches
     # do mount -no remount,ro $i
     # done
     .fi
     If your xino file is on a hard drive, you also need to specify
     `noxino' option or `xino=/your/tmpfs/xino' at remounting root
     directory.
     ----------------------------------------------------------------------
     I guess XINO file makes your .rw busy.
     J. R. Okajima

References

   1. mailto:sf...@users.sourceforge.net
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev

Reply via email to