Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 15:39:25 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Memory disk "a la mfsroot"?
Message-ID:  <20100211153925.7b88844d@gumby.homeunix.com>
In-Reply-To: <4B741E56.8010002@infracaninophile.co.uk>
References:  <4B7419F5.7050602@pldrouin.net> <4B741E56.8010002@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Feb 2010 15:12:22 +0000
Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 11/02/2010 14:53, Pierre-Luc Drouin wrote:
> 
> > I would like to know if there is a mount command that allows to
> > create a memory disk that can be initialized from a file. What I am
> > looking for is something like mount_mfs -F, but that does not
> > modify the actual file. I know what I could easily to this by
> > copying the content of the file to the memory disk, but I am
> > looking for a solution that can be configured via fstab.
> 
> Yes.  See mdconfig(8) -- there are examples in there of exactly what
> you want to do.

I don't think covers what he is asking for. I think you would need a
union filsystem that overlays a swap-backed filesystem on top of a
file-backed filesystem - if that's possible.





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