mount --bind -o ro

View: New views
4 Messages — Rating Filter:   Alert me  

mount --bind -o ro

by sda-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi folks,

i need to mount in chroot some read-only data and looking for analogue
of:

> mount --bind -o ro

for OpenBSD.

could you please advise?

thanks,
sda

[demime 1.01d removed an attachment of type application/pgp-signature]


Re: mount --bind -o ro

by Rod Whitworth-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 1 Nov 2009 14:03:46 +0300, sda wrote:

>hi folks,
>
>i need to mount in chroot some read-only data and looking for analogue
>of:
>
>> mount --bind -o ro
>
>for OpenBSD.
>
>could you please advise?
>
>thanks,
>sda

http://archives.neohapsis.com/archives/openbsd/2005-09/0198.html

*** NOTE *** Please DO NOT CC me. I <am> subscribed to the list.
Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou.

Rod/
---
This life is not the real thing.
It is not even in Beta.
If it was, then OpenBSD would already have a man page for it.


Re: mount --bind -o ro

by Joachim Schipper-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 01, 2009 at 02:03:46PM +0300, sda wrote:

> hi folks,
>
> i need to mount in chroot some read-only data and looking for analogue
> of:
>
> > mount --bind -o ro
>
> for OpenBSD.
>
> could you please advise?

The closest equivalent I'm aware of involves mounting an NFS share from
localhost.

                Joachim


Re: mount --bind -o ro

by Michiel van Baak-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 12:22, Sun 01 Nov 09, Joachim Schipper wrote:

> On Sun, Nov 01, 2009 at 02:03:46PM +0300, sda wrote:
> > hi folks,
> >
> > i need to mount in chroot some read-only data and looking for analogue
> > of:
> >
> > > mount --bind -o ro
> >
> > for OpenBSD.
> >
> > could you please advise?
>
> The closest equivalent I'm aware of involves mounting an NFS share from
> localhost.

which works great.
On my development laptop I have all the sources for webapplications in
~/dev/web/application_name. I made a line in /etc/exports to export my
dev/web dir and mounted it under /var/www
The whole setup is very happy this way.
--

Michiel van Baak
michiel@...
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"