From owner-freebsd-questions@FreeBSD.ORG Thu Feb 11 15:30:49 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A81F11065670 for ; Thu, 11 Feb 2010 15:30:49 +0000 (UTC) (envelope-from pldrouin@pldrouin.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id 86DAB8FC15 for ; Thu, 11 Feb 2010 15:30:49 +0000 (UTC) Received: from [192.168.1.107] (CPE0023695b905f-CM001a666aca96.cpe.net.cable.rogers.com [99.246.67.95]) by smtp.cyberfingers.net (Postfix) with ESMTP id 60AF6AB6C23; Thu, 11 Feb 2010 10:27:51 -0500 (EST) Message-ID: <4B7422A7.1000701@pldrouin.net> Date: Thu, 11 Feb 2010 10:30:47 -0500 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Matthew Seaman References: <4B7419F5.7050602@pldrouin.net> <4B741E56.8010002@infracaninophile.co.uk> In-Reply-To: <4B741E56.8010002@infracaninophile.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Memory disk "a la mfsroot"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 15:30:49 -0000 Matthew Seaman 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. > > Cheers, > > Matthew > > - -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkt0HlYACgkQ8Mjk52CukIyprwCfQj9DwqHtLoDx2ZWCrhglFDfH > dR4AoIEw3CyS2zPajdi4PLGC7aLHj5aI > =Xr7U > -----END PGP SIGNATURE----- > I might be missing something in the mdconfig man page, but in the examples I see they always allow modifications to the backing file. As I said I am looking for a solution where the backing file is only read, but I want to mount the memory disk in read-write mode. Also, I want only the modifications to be kept in the RAM, not the initial files. Thanks!