[pocket-linux] root double mounted?

David Horton pocket-linux@ufo.chicago.il.us
Fri, 30 May 2003 12:32:34 -0400


> I've done chapter 4 and when testing it I have rootfs and /dev/root
mounted on / does anyone know why this is?
> 
> My mtab tells me:
> rootfs        /        rootfs    rw ...
> /dev/root        /        ext2    ro ...
> 
> after running the script local_fs (which remounts / as rw) i have:
> rootfs        /        rootfs    rw ...
> /dev/root        /        ext2    rw ...
> 
> also df shows me both mounts for / (of course with the same values for
size and free disk space)
> In a newsgroup i found 
> -snip-
> Is your /etc/mtab a symlink to /proc/mounts ?  That is generally
> thought not to be a good idea.
> -snip-
> could that be the reason?
> 
> - Daniel
> 

I did some googling and found a discussion about the pros and cons of
the /proc/mounts symlink on the LFS mailing list archives.  The
maintainer of util-linux (mount is part of util-linux) had written in
and said: "If the symlink is not necessary for the setup as used by LFS,
the instruction should be removed or be made optional."  Here's the link:

http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2003/01/0093.html

So, in the 2.0 version of the pocket linux guide the instructions will
be changed to use the old-style /etc/mtab file without a symlink.

Thanks for the tip, Daniel.


Dave

P.S. I've started a list of proposed changes for version 2.0 that is
available on the resource site at: http://my.core.com/~dhorton/linux/pocket