From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Steve French" Subject: Re: where is remount? Date: Fri, 16 May 2008 22:05:28 -0500 Message-ID: <524f69650805162005r4933e8jdb2aeb1c49f1a252@mail.gmail.com> References: <524f69650805161602o1a49c4f4v7597b1b2a7e39f17@mail.gmail.com> <200805171018.HBA05176.OStJMFQFFOLHOV@I-love.SAKURA.ne.jp> <524f69650805161836q63e455fcxc4db01223e087614@mail.gmail.com> <200805171049.BJF21135.HOFFQMVtFSOJOL@I-love.SAKURA.ne.jp> <524f69650805161951v6886bbd2iaf8ec646cf24dbb8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org To: "Tetsuo Handa" Return-path: Received: from fg-out-1718.google.com ([72.14.220.157]:42821 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbYEQDFa (ORCPT ); Fri, 16 May 2008 23:05:30 -0400 Received: by fg-out-1718.google.com with SMTP id 19so912203fgg.17 for ; Fri, 16 May 2008 20:05:28 -0700 (PDT) In-Reply-To: <524f69650805161951v6886bbd2iaf8ec646cf24dbb8@mail.gmail.com> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: By trying various combinations of options, I finally was able to find one that stopped "remount" by pausing in the cifs mount helper (prompting for a password), i can see a little more information: Typing the command: smfhome2:/home/stevef # remount /mnt /mnt1 I can see that "remount" invokes mount but with odd syntax stevef@smfhome2:~> ps -Aelf | grep "mount" 0 S root 25024 25012 0 80 0 - 1779 wait 22:01 pts/4 00:00:00 /bin/mount -o remount,/mnt /mnt1 On Fri, May 16, 2008 at 9:51 PM, Steve French wrote: > 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 > 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 > -- Thanks, Steve