linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Steve French" <smfrench@gmail.com>
To: "Tetsuo Handa" <penguin-kernel@i-love.sakura.ne.jp>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: where is remount?
Date: Fri, 16 May 2008 21:51:51 -0500	[thread overview]
Message-ID: <524f69650805161951v6886bbd2iaf8ec646cf24dbb8@mail.gmail.com> (raw)
In-Reply-To: <200805171049.BJF21135.HOFFQMVtFSOJOL@I-love.SAKURA.ne.jp>

that is the point ... strace doesn't work on that command and I don't
even know the syntax of the utility "remount"  It seems to be
something builtin to bash - very odd ....

smfhome2:~ # mount /dev/sdb8 /mnt2
smfhome2:~ # remount -o ro /dev/sdb8
mount: you must specify the filesystem type
smfhome2:~ # remount -o ro /dev/sdb8 -t ext3
mount: /dev/sdb8 not mounted already, or bad option
smfhome2:~ # remount -t ext3 -o ro /dev/sdb8
mount: you must specify the filesystem type
smfhome2:~ # remount -o ro -t ext3 /dev/sdb8
mount: /dev/sdb8 not mounted already, or bad option
smfhome2:~ # strace -f remount -o ro -t ext3 /dev/sdb8
strace: remount: command not found
smfhome2:~ # which strace
/usr/bin/strace
smfhome2:~ # which remount
which: no remount in
(/home/stevef/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin)


On Fri, May 16, 2008 at 8:49 PM, Tetsuo Handa
<penguin-kernel@i-love.sakura.ne.jp> wrote:
> Steve French wrote:
>> It may be calling that ... but I was typing:  "remount" in bash and I
>> don't see a bash alias for it or a command in the path named that.
> Didn't you see MS_REMOUNT in the output of "strace"?
>
> # mount -t tmpfs none /dev/shm/
> # strace mount -o remount,ro /dev/shm/ 2>&1 | grep mount
> execve("/bin/mount", ["mount", "-o", "remount,ro", "/dev/shm/"], [/* 17 vars */]) = 0
> open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
> stat64("/sbin/mount.tmpfs", 0xbffeb570) = -1 ENOENT (No such file or directory)
> mount("none", "/dev/shm", 0x8c13d68, MS_MGC_VAL|MS_RDONLY|MS_REMOUNT, ""...) = 0
>



-- 
Thanks,

Steve

  reply	other threads:[~2008-05-17  2:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 23:02 where is remount? Steve French
2008-05-17  1:18 ` Tetsuo Handa
2008-05-17  1:36   ` Steve French
2008-05-17  1:49     ` Tetsuo Handa
2008-05-17  2:51       ` Steve French [this message]
2008-05-17  3:01         ` Matthew Wilcox
2008-05-17  3:08           ` Steve French
2008-05-17  3:05         ` Steve French

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=524f69650805161951v6886bbd2iaf8ec646cf24dbb8@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    /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).