Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2007 16:52:00 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Mike Meyer" <mwm@mired.org>
Cc:        freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Mount on non-empty directories (Was: sysinstall createscorruptfilesystems after repartitioning)
Message-ID:  <016a01c75ceb$1d784640$b3db87d4@multiplay.co.uk>
References:  <00cb01c75c5b$4205e390$b3db87d4@multiplay.co.uk><45E82660.4030107@freebsd.org><008101c75cd1$42a4df10$b3db87d4@multiplay.co.uk><17896.15939.9988.89695@bhuda.mired.org><010001c75ce3$6983ded0$b3db87d4@multiplay.co.uk> <17896.19812.84680.339102@bhuda.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Meyer wrote:
> You can make that happen:
> 
> # cd /usr
> # mount /dev/<blank> /usr
> # vim
> vim: not found
> # ls /usr/bin
> ls: /usr/bin: No such file or directory
> # ls bin This will show the contents of /usr/bin before
> the mount, because it looks in "./bin", and
> "." is on the original /usr, not the new one.
> # bin/vim will find bin/vim
> # pwd This is both true and not true. The current
> /usr/bin directory is /usr/bin, but you won't get there
> if you cd to /usr/bin.

Yes indeed this was what happend I was in /usr before I
started sysinstall, did the repartition, quit and tried
to run vim to edit /etc/fstab. This failed but when I did
a straight ls -l ( which was still in /usr ) everything
appeared normal.

So the behaviour is explained by the fact that the shell
still had the handle to the original /usr before the second
mount and as such presented the nfs mounts details.

Thanks guys for spending the time to explain that. All
is clear on this front now just need to determine what is
causing the FS corruption now, for which I need to wait
for some machines to be delivered so I can try doing the
test with just /data hence avoiding any interaction with
/usr.

    Steve


================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016a01c75ceb$1d784640$b3db87d4>