lkml.org 
[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: About /etc/mtab and /proc/mounts
Date
On 27 February 2003 11:21, jw schultz wrote:
> On Thu, Feb 27, 2003 at 05:42:30PM +0900, Miles Bader wrote:
> > Kasper Dupont <kasperd@daimi.au.dk> writes:
> > > > Yes. On some systems, /var and /tmp are the _only_ read-write
> > > > filesystems.
> > >
> > > OK, but then on such a system with my approach it would be
> > > possible to make /mtab.d a symlink pointing to somewhere under
> > > /var.
> >
> > ... you could do the same with /etc/mtab.
> >
> > In fact since /etc is almost guaranteed to be on the same
> > filesystem as /, it seems like "/mtab.d" offers zero advantages
> > over just /etc/mtab -- the case where /etc/mtab is the most
> > annoying is when /etc is R/O, but this almost always means that /
> > will be R/O, making /mtab.d useless too.
>
> If you netboot /etc as its own filesystem make sense. Why
> duplicate the rest of root just for /etc. /etc, /var and
> /tmp are the only filesystems that have much reason to be
> unique to a system; all others are easily sharable and most
> others read-only.

This is my netboot root fs, it is shared across all workstations
(NB: .local is "mount --bind"ed to workstation-private directory):

# ls -la /
drwxr-xr-x 6 root root 4096 Mar 12 2002 .local
drwxr-xr-x 15 root root 4096 Feb 14 11:12 .share
dr-xr-xr-x 2 root root 4096 Jan 16 14:29 bin
dr-xr-xr-x 20 root root 1024 Feb 4 13:23 boot
drwxr-xr-x 1 root root 0 Jan 1 1970 dev
drwxr-xr-x 3 root root 4096 Jan 16 14:29 lib
dr-xr-xr-x 68 root root 0 Feb 27 15:42 proc
lrwxrwxrwx 1 root root 3 Oct 24 15:20 sbin -> bin
lrwxrwxrwx 1 root root 12 Nov 12 2001 root -> /.share/root
lrwxrwxrwx 1 root root 12 Nov 12 2001 home -> /.share/home
lrwxrwxrwx 1 root root 11 Nov 12 2001 usr -> /.share/usr
lrwxrwxrwx 1 root root 11 Nov 12 2001 mnt -> /.local/mnt
lrwxrwxrwx 1 root root 11 Jun 7 2002 etc -> /.local/etc
lrwxrwxrwx 1 root root 11 Nov 12 2001 tmp -> /.local/tmp
lrwxrwxrwx 1 root root 11 Nov 12 2001 var -> /.local/var
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.200 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site