From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 2 16:54:18 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 53D4016A405; Fri, 2 Mar 2007 16:54:18 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id B566513C4A6; Fri, 2 Mar 2007 16:54:17 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003579023.msg; Fri, 02 Mar 2007 16:52:21 +0000 Message-ID: <016a01c75ceb$1d784640$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Mike Meyer" 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> Date: Fri, 2 Mar 2007 16:52:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 02 Mar 2007 16:52:22 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 02 Mar 2007 16:52:22 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Mount on non-empty directories (Was: sysinstall createscorruptfilesystems after repartitioning) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 16:54:18 -0000 Mike Meyer wrote: > You can make that happen: > > # cd /usr > # mount /dev/ /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.