From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 13:15:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84B0E16A4CE for ; Thu, 24 Jun 2004 13:15:18 +0000 (GMT) Received: from ns3.tele-kom.ru (ns3.tele-kom.ru [217.107.251.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B74D43D60 for ; Thu, 24 Jun 2004 13:15:17 +0000 (GMT) (envelope-from doublef@tele-kom.ru) Received: (qmail 30361 invoked from network); 24 Jun 2004 13:13:34 -0000 Received: from mx.tele-kom.ru (213.80.148.6) by ns.tele-kom.ru with SMTP; 24 Jun 2004 13:13:34 -0000 Received: (qmail 41338 invoked by uid 555); 24 Jun 2004 13:14:38 -0000 Received: from shark (213.80.149.208) by t-k.ru with TeleMail/2 id 1088082877-41282 for freebsd-questions@freebsd.org; Thu, 24 Jun 17:14:37 2004 +0400 (MSD) Received: by shark (Postfix, from userid 1000) id 61D5637E; Thu, 24 Jun 2004 17:14:21 +0400 (MSD) Date: Thu, 24 Jun 2004 17:14:21 +0400 From: Sergey Zaharchenko To: Alan Gerber Message-ID: <20040624131421.GA22808@shark.localdomain> Mail-Followup-To: Sergey Zaharchenko , Alan Gerber , freebsd-questions@freebsd.org References: <20040624120059.76ED916A4D5@hub.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Mounting hard disk in multiple locations X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 13:15:18 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 24, 2004 at 08:55:57AM -0400, Alan Gerber probably wrote: > Okay folks, help me out with this one. >=20 > I'm trying to mount a single hard disk slice in two separate locations (o= ne > location being r/o and another being r/w), and having a hard time figurin= g out > how to do it. I've tried issuing multiple mount calls, but I get a "Devi= ce > busy" error. You get it because it isn't supposed to work that way. > I've also checked out the mount(8) series of manpages and > haven't found anything. I've also thought about trying to create a separ= ate > device node for this purpose, a la mknod, but I wanted to be sure that wo= n't > do anything overly harsh to the system before I attempt it. >=20 > Any thoughts or suggestions? mount_null(8) is a thing that may help you, though it doesn't do exactly what you are trying to (and is labeled dangerous in the manpage). But AFAICT that's the only way. --=20 DoubleF "I never met a piece of chocolate I didn't like." --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA2tOswo7hT/9lVdwRAji+AJ9C/iFVQ7eSYdB6YS6qzMSjUGq/oACfQCph mkHDVvZQqFYZWuuT5DmHd28= =MFOM -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--