linux-config.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Willy Tarreau <willy@w.ods.org>
To: SMS WebMaster <sms@4-sms.com>
Cc: Willy Tarreau <willy@w.ods.org>,
	linux-kernel@vger.kernel.org, linux-config@vger.kernel.org,
	linux-userfs@vger.kernel.org
Subject: Re: mount: / mounted already or bad option
Date: Fri, 10 Oct 2003 15:15:40 +0200	[thread overview]
Message-ID: <20031010131540.GA7313@alpha.home.local> (raw)
In-Reply-To: <3F86D1C9.10003@4-sms.com>

On Fri, Oct 10, 2003 at 06:35:37PM +0300, SMS WebMaster wrote:
> >>and when I login with the root and type
> >>mount -o remount,rw /
> >>
> >>I got the same message
> >>mount: / mounted already or bad option
> >>
> >>but if I write
> >>mount -o remount,rw /dev/hda4  /
> >>then the root filesystem if remounted as read/write
> >
> >
> >wouldn't your /etc/mtab be a link to /proc/self/mounts with /proc not 
> >mounted ?
> 
> 
> Sorry what do you mean ?

I meant that when you use the "incomplete" syntax with mount (ie: no device
specified), it relies on /etc/mtab to find the mount entry you want to change.
And it's somewhat common to have /etc/mtab be a symlink to /proc/self/mounts
when you don't want /etc to be written to, because the 'mounts' entry has
nearly the same format as 'mtab' (a few missing options). Now if it was the
case, and /proc was not mounted yet, /etc/mtab would point to nowhere and mount
would have no way to find what was mounted on '/', which could lead to some
errors like this.

> if I type mount I can see that proc is mounted (I can even see / is 
> mounted as read/write but its not realy mounted as read/write)

OK, so it doesn't come from this. Perhaps your /etc/mtab is simply broken by
some random mount option somewhere ? Also, do you use the "read-only" option
on the kernel command line ? And do your init scripts clear /etc/mtab at boot,
before the first mounts ?

Willy


      reply	other threads:[~2003-10-10 13:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 14:26 mount: / mounted already or bad option SMS WebMaster
2003-10-10 12:50 ` Willy Tarreau
2003-10-10 15:35   ` SMS WebMaster
2003-10-10 13:15     ` Willy Tarreau [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=20031010131540.GA7313@alpha.home.local \
    --to=willy@w.ods.org \
    --cc=linux-config@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-userfs@vger.kernel.org \
    --cc=sms@4-sms.com \
    /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;
as well as URLs for NNTP newsgroup(s).