[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deprecating /usr as a standalone filesystem?



On Fri, 08 May 2009, David Weinehall wrote:

> On Thu, May 07, 2009 at 07:27:08PM -0500, Manoj Srivastava wrote:
> >         No. But we do leave /usr read-only the rest of the time, which
> >  is often 99.999% of the time. A separate /usr is required for this.
> 
> Uhm, no?
> 
> mount --bind /usr /usr
> 
> Should do the trick (the same mount -o remount,rw / remount,ro then
> applies).  all thanks to the magic of subtrees :)

Yeah.  Right.

weasel@intrepid:~/tmp$ mkdir foo
weasel@intrepid:~/tmp$ touch foo/bar
weasel@intrepid:~/tmp$ sudo mount -o bind,ro foo foo
weasel@intrepid:~/tmp$ touch foo/baz
weasel@intrepid:~/tmp$ 

bind mounts don't do ro.
-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/


Reply to: