Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2004 17:14:21 +0400
From:      Sergey Zaharchenko <doublef@tele-kom.ru>
To:        Alan Gerber <agerber@ncsu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mounting hard disk in multiple locations
Message-ID:  <20040624131421.GA22808@shark.localdomain>
In-Reply-To: <hztd99.sv8dah@unlateral.dyndns.org>
References:  <20040624120059.76ED916A4D5@hub.freebsd.org> <hztd99.sv8dah@unlateral.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040624131421.GA22808>