On 05/17/2012 12:52 PM, sf...@users.sourceforge.net wrote: > Ben Greear: >> mount -n -o remount,noxino,mod:/cow=ro / >> >> has error: >> >> /sbin/mount.aufs:plink.c:199: /var/log/dmesg.0: Read-only file system..... > > I see. > Then I'd suggest you to this flow. > - remount,noxino,mod:/cow=ro / > - remount,ro /cow > - remount,ro /
I tried the code below: mount -n -o remount,noxino / || echo "Remount noxino / failed: $?" mount -n -o remount,mod:/cow=ro / || echo "Remount /cow(ro) failed: $?" && (lsof /cow; lsof /) mount -n -o remount,ro /cow || echo "Remount /cow (ro) failed: $?" mount -n -o remount,ro / The second command fails, saying / is busy. lsof of / shows lots of files. lsof of /cow shows none. All the rest of the command succeed, however, and it appears /cow is properly mounted (ro) and cleaned up. So, it seems a bit strange that the second, and only the second, command fails...but the end result is that /cow is clean, so I guess that is good enough. If you have more suggestions, I'll give them a try..but if not, then I'm moving on to other things..will le you know if I find any strange issues in later testing either way. Thanks, Ben -- Ben Greear <gree...@candelatech.com> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/