On Thu January 17 2008 06:44, Gabor Laszlo Zsolt wrote: > > ----- Original Message ---- > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: Gabor Laszlo Zsolt <[EMAIL PROTECTED]> > Cc: [email protected] > Sent: Thursday, January 17, 2008 2:20:37 PM > Subject: Re: Read only filesystem with aufs > > > > Hello Gabor, > > Gabor Laszlo Zsolt: > > The system works ok, even if it took me a while to figure this way > out , but I can't change nothing on /etc or /var because I can't unmount > them > > I remount the / as rw of course before. > > For umount /var I get > > /var must be outside > > mount : var not mounted already, or bad option > > > > and for umount /etc I get > > umount: /etc: device is busy > > > > my /proc/mounts file has a /var line but no .. etc.. but can't umount > event the var > > > > So How can I write to /etc and /var original directories, bypassing > aufs after remounting / as rw > > PLEASE HELP > > Unfortunately, I cannot understand fully how your situation is. > As you might know, you cannot unmount the filesystem which is in > use. After your system is up, I guess some processes is using files > under /etc. > If your /proc/mounts doesn't have an entry for /var, it means that you > didn't mount /var. So you cannot unmount it. > > > Junjiro Okajima > > > > > > My /proc/mounts has a /var , does not have a /etc because I mounted that > early at boot in /etc/init.d/rcS script >
The contents of /proc/mounts is a view of the kernel's internal list of known mounts - If you do not see an /etc in the kernel's list (/proc/mounts) then it never happened. Does not matter when/where you "mounted" it, even from within an initial ramFS it will show up. (see: linux-<version>/Documentation/early-userspace.txt and related documents) Mike > I see the two aufs mounts in /sys/fs/aufs/brs so both of them are working > Basicaly I remounted /etc and /var to the same directory but as read only and > all the changes are saved elsewhere > But now I am trying to modify the original files but I can't because all I > can see is the aufs mount > > They are probably used, becasue are system folders, so I can not umount them. > But how can I then access the original folders then? > > /sys/fs/aufs/brs : > none /etc dfe6xxx br:/mnt/rw/etc=rw:/etc=ro > none /var f7d2xxx br:/mnt/rw/var=rw:/var=ro > > trying to access the original /etc and /var > How can I do that? > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
