Cyanrigger: > > > > I think it is a problem of your shutdown script. > > > > Generally any shutdown script executes > > > > - kill all processes > > > > - remount / readonly > > > > > > > > For the system whose root is aufs, the similar scirpt but more > > > > work is necessary. In your case, > > > > - remount ext3 readwrite > > > > - kill all processes > > > > - remount / readonly > > > > I guess. > > It is no shutdown script. It is executed at random times.
I know. My poor English seemed to make you confused. I will try write down differently. - run your rsync script anytime you like - later, when you shutdown your system, you need to remount ext3 readwrite before killing processes You may say "cannot remount ext3 readwrite anymore". It is related to my question in previous mail. > > > I got another question in my mind. > > > At the end of your rsync script, > > > mount -o remount,ro ${LOWER_BRANCH} > > > Why didn't this remount return an error? ::: > > > Why does ext3 allow to be readonly in the status which fsck thinks > > > error? Is it due to errors=remount-ro or =continue? Will you run this test script on your ext3? On my system, the last remount,ro returns an error expectedly. ---------------------------------------------------------------------- # customize for your system dev=/dev/ram1 dir=$Root/ro f=$dir/fileA # init sudo mount -o remount,rw $dir dd if=/dev/urandom of=$f bs=1024 count=512 sync ls -li $f sudo mount -o remount,ro $dir # simulate rsync fsck -nf $dev sudo mount -o remount,rw $dir { dd of=/dev/null bs=1024 sleep 5 } < $f & sleep 1 > $f.tmp mv $f.tmp $f lsof | fgrep $dir sudo mount -o remount,ro $dir fsck -nf $dev wait ---------------------------------------------------------------------- J. R. Okajima ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev