From owner-freebsd-questions@FreeBSD.ORG Thu Feb 11 15:39:44 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 B69C91065670 for ; Thu, 11 Feb 2010 15:39:44 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-fx0-f226.google.com (mail-fx0-f226.google.com [209.85.220.226]) by mx1.freebsd.org (Postfix) with ESMTP id 447738FC21 for ; Thu, 11 Feb 2010 15:39:43 +0000 (UTC) Received: by fxm26 with SMTP id 26so1417833fxm.13 for ; Thu, 11 Feb 2010 07:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=ve0PjtGtCpL66aX4XBSo7vTTb6As9cyqiA9JMDExOp0=; b=bvhpweYVuEvVt1CpOielTbn4LkxUZRMO2W6jlHpp/X2Gnc/aUykCbjwkHZ8mawyLp4 rI+UubIHySmZulGUeWTQlotYqNh6T0RnFF/ftlCPvTL012dhEZ5LMd6M/fWB8lLGROoO yQmAj3xKQRva9/Lc7QMVifKNpFIif6s0O7lCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=sk1HFlMCo004rfKTOL6TksCnkg9HLzdZjC7FUoL02W3QUHg1vAEJos1T2PnEea0965 bqD8xQ1A+7ubL+hFYTz2o5TytmvvEcfHYnU08RABNzd1E5VqbvGsmF8o5bvxN7aPjEEG n0W2Js9GOkuRnwEu0RG8RPETO8uxKuFjkhEaI= Received: by 10.216.89.149 with SMTP id c21mr1144500wef.224.1265902782978; Thu, 11 Feb 2010 07:39:42 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id q9sm3293967gve.0.2010.02.11.07.39.37 (version=SSLv3 cipher=RC4-MD5); Thu, 11 Feb 2010 07:39:42 -0800 (PST) Date: Thu, 11 Feb 2010 15:39:25 +0000 From: RW To: freebsd-questions@freebsd.org 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> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:39:44 -0000 On Thu, 11 Feb 2010 15:12:22 +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. 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.