mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierfrancesco Caci <ik5pvx@penny.ik5pvx.ampr.org>
To: linux-kernel@vger.kernel.org
Subject: Re: / listed twice in /proc/mounts
Date: Sat, 29 Mar 2003 08:24:31 +0100	[thread overview]
Message-ID: <87smt6ws7k.fsf@penny.ik5pvx.ampr.org> (raw)
In-Reply-To: <Pine.LNX.4.21.0303272110420.16348-100000@ppg_penguin> (Ken Moffat's message of "Thu, 27 Mar 2003 21:16:01 +0000 (GMT)")

:-> "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


      parent reply	other threads:[~2003-03-29  7:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-27 16:24 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87smt6ws7k.fsf@penny.ik5pvx.ampr.org \
    --to=ik5pvx@penny.ik5pvx.ampr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pf@tippete.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®