public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* / listed twice in /proc/mounts
@ 2003-03-27 16:24 Christian Laursen
  2003-03-27 21:16 ` Ken Moffat
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Laursen @ 2003-03-27 16:24 UTC (permalink / raw)
  To: linux-kernel

The other day, I upgraded the components of a software package
that I maintain, including updating the kernel from 2.4.18 to
2.4.20.

I noticed something strange: / is now listed twice in /proc/mounts
like this

rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0

It confused one of my scripts, so I had to implement a quick workaround.

Is this a feature or a bug?

-- 
Best regards
    Christian Laursen

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: / listed twice in /proc/mounts
  2003-03-27 16:24 / listed twice in /proc/mounts Christian Laursen
@ 2003-03-27 21:16 ` Ken Moffat
  2003-03-27 21:59   ` Christian Laursen
  2003-03-29  7:24   ` Pierfrancesco Caci
  0 siblings, 2 replies; 5+ messages in thread
From: Ken Moffat @ 2003-03-27 21:16 UTC (permalink / raw)
  To: Christian Laursen; +Cc: linux-kernel

On 27 Mar 2003, Christian Laursen wrote:

> The other day, I upgraded the components of a software package
> that I maintain, including updating the kernel from 2.4.18 to
> 2.4.20.
> 
> I noticed something strange: / is now listed twice in /proc/mounts
> like this
> 
> rootfs / rootfs rw 0 0
> /dev/root / ext2 rw 0 0
> 
> It confused one of my scripts, so I had to implement a quick workaround.
> 
> Is this a feature or a bug?
> 

 Is your /etc/mtab a symlink to /proc/mounts ?  That is generally
thought not to be a good idea.

Ken
-- 
 Out of the darkness a voice spake unto me, saying "smile, things could be
worse". So I smiled, and lo, things became worse.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: / listed twice in /proc/mounts
  2003-03-27 21:16 ` Ken Moffat
@ 2003-03-27 21:59   ` Christian Laursen
  2003-03-27 22:04     ` Ken Moffat
  2003-03-29  7:24   ` Pierfrancesco Caci
  1 sibling, 1 reply; 5+ messages in thread
From: Christian Laursen @ 2003-03-27 21:59 UTC (permalink / raw)
  To: Ken Moffat; +Cc: linux-kernel

Ken Moffat <ken@kenmoffat.uklinux.net> writes:

> On 27 Mar 2003, Christian Laursen wrote:
> 
> > The other day, I upgraded the components of a software package
> > that I maintain, including updating the kernel from 2.4.18 to
> > 2.4.20.
> > 
> > I noticed something strange: / is now listed twice in /proc/mounts
> > like this
> > 
> > rootfs / rootfs rw 0 0
> > /dev/root / ext2 rw 0 0
> > 
> > It confused one of my scripts, so I had to implement a quick workaround.
> > 
> > Is this a feature or a bug?
> > 
> 
>  Is your /etc/mtab a symlink to /proc/mounts ?  That is generally
> thought not to be a good idea.

No, I'm running in a minimal environment without all the normal stuff,
so there isn't even an /etc/mtab.

-- 
Best regards
    Christian Laursen

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: / listed twice in /proc/mounts
  2003-03-27 21:59   ` Christian Laursen
@ 2003-03-27 22:04     ` Ken Moffat
  0 siblings, 0 replies; 5+ messages in thread
From: Ken Moffat @ 2003-03-27 22:04 UTC (permalink / raw)
  To: Christian Laursen; +Cc: linux-kernel

On 27 Mar 2003, Christian Laursen wrote:

> > 
> >  Is your /etc/mtab a symlink to /proc/mounts ?  That is generally
> > thought not to be a good idea.
> 
> No, I'm running in a minimal environment without all the normal stuff,
> so there isn't even an /etc/mtab.
> 
> 

 Sorry, I didn't even know that could be done in a useable system.  I
guess it attracts the same difficulty.

Best Wishes.
-- 
 Out of the darkness a voice spake unto me, saying "smile, things could be
worse". So I smiled, and lo, things became worse.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: / listed twice in /proc/mounts
  2003-03-27 21:16 ` Ken Moffat
  2003-03-27 21:59   ` Christian Laursen
@ 2003-03-29  7:24   ` Pierfrancesco Caci
  1 sibling, 0 replies; 5+ messages in thread
From: Pierfrancesco Caci @ 2003-03-29  7:24 UTC (permalink / raw)
  To: linux-kernel

:-> "Ken" == Ken Moffat <ken@kenmoffat.uklinux.net> writes:

    > On 27 Mar 2003, Christian Laursen wrote:
    >> The other day, I upgraded the components of a software package
    >> that I maintain, including updating the kernel from 2.4.18 to
    >> 2.4.20.
    >> 
    >> I noticed something strange: / is now listed twice in /proc/mounts
    >> like this
    >> 
    >> rootfs / rootfs rw 0 0
    >> /dev/root / ext2 rw 0 0
    >> 
    >> It confused one of my scripts, so I had to implement a quick workaround.
    >> 
    >> Is this a feature or a bug?
    >> 

    >  Is your /etc/mtab a symlink to /proc/mounts ?  That is generally
    > thought not to be a good idea.


I have the same "double root":

# cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
[...]

# ls -las /dev/root
   0 lr-xr-xr-x    1 root     root            4 Mar 22 15:07 /dev/root -> md/0

# ls -als /etc/mtab
   1 -rw-r--r--    1 root     root          345 Mar 23 15:55 /etc/mtab

# cat /etc/mtab
/dev/md0 / ext3 rw 0 0
[...]


could it be a 'feature' of devfs, or maybe of raid devices ?

kernel version is 2.4.21-pre5-ac3

Pf

-- 

-------------------------------------------------------------------------------
 Pierfrancesco Caci | ik5pvx | mailto:p.caci@tin.it  -  http://gusp.dyndns.org
  Firenze - Italia  | Office for the Complication of Otherwise Simple Affairs 
     Linux penny 2.4.21-pre5-ac3 #1 Sat Mar 15 22:04:18 CET 2003 i686 GNU/Linux


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-29  7:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27 16:24 / listed twice in /proc/mounts Christian Laursen
2003-03-27 21:16 ` Ken Moffat
2003-03-27 21:59   ` Christian Laursen
2003-03-27 22:04     ` Ken Moffat
2003-03-29  7:24   ` Pierfrancesco Caci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox