From owner-freebsd-questions Sun Feb 12 16:46:42 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id QAA06023 for questions-outgoing; Sun, 12 Feb 1995 16:46:42 -0800 Received: from mramirez.sy.yale.edu (mramirez.sy.yale.edu [130.132.57.207]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id QAA06017 for ; Sun, 12 Feb 1995 16:46:38 -0800 Received: (from mrami@localhost) by mramirez.sy.yale.edu (8.6.9/8.6.9) id TAA00738; Sun, 12 Feb 1995 19:46:26 -0500 Date: Sun, 12 Feb 1995 19:46:25 -0500 (EST) From: Marc Ramirez To: questions@FreeBSD.org Subject: union fs Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk Am I reading the mount_union manpage correctly? (2.0-950210-SNAP) I thought at some point I should see the files 1, 2, and 3 all together... I just had the following exchange: mrami[2]$ls a 1 3 mrami[2]$touch /tmp/b/2 mrami[2]$ls /tmp/b 2 mrami[2]$mount_union /tmp/b /usr/home/mrami/test/a # a/ should contain 1,2,3 mrami[2]$ls /tmp/b 2 mrami[2]$cd a mrami[2]$ls 2 mrami[2]$touch 4 mrami[2]$ls 2 4 mrami[2]$cd .. mrami[2]$ls /tmp/b 2 4 mrami[2]$mount /dev/sd0a on / (local) /dev/sd0e on /usr (local) /dev/sd1a on /usr/home (local) procfs on /proc (local) /tmp/b on /usr/home/mrami/test/a (local, user mount) mrami[2]$umount '/tmp/b' mrami[2]$ls a 1 3 mrami[2]$ls /tmp/b 2 4 mrami[2]$ How do I mount /tmp/b/ over a/ so that the files in a are visible, but new files go into /tmp/b/ ? The reason I am asking: I want to mount /usr/local/xbin over /usr/X11R6/bin so that I can foil all the programs that ty to install themselves into /usr/X11R6/bin. I make heavy use of the concept of 'local'. :) Marc. -- DeForrest Gump - "Dammit, Jim! Life is like a box of chocolates!"