From owner-freebsd-questions@FreeBSD.ORG Sun Aug 7 03:28:20 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4029416A424 for ; Sun, 7 Aug 2005 03:28:20 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00AA5442F1 for ; Sun, 7 Aug 2005 02:52:19 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 7384 invoked by uid 207); 7 Aug 2005 02:52:18 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.98):. Processed in 0.475486 secs); 07 Aug 2005 02:52:18 -0000 Received: from dialup98.ach.sch.gr (HELO gothmog.gr) ([81.186.70.98]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 7 Aug 2005 02:52:17 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j772qEew008066; Sun, 7 Aug 2005 05:52:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j772qDBL008065; Sun, 7 Aug 2005 05:52:13 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 7 Aug 2005 05:52:12 +0300 From: Giorgos Keramidas To: Michael Dexter Message-ID: <20050807025212.GA8039@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-questions@FreeBSD.org Subject: Re: Can file-backed memory disks act like slices? 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: Sun, 07 Aug 2005 03:28:20 -0000 On 2005-08-07 02:13, Michael Dexter wrote: > > Hello all, > I trust this is a Seldom Asked Question... A very good one though. > I am using file-backed memory disks (as in mdconfig -f) to prototype > filesystems. > > root.img gets mounted first and usr.img, var.img and tmp.img get > mounted below it and as such they are behaving as partitions. > > Is there any way to get a single memory disk to behave like a slice > and itself be partitioned? That would give essentially: > > /dev/md0a > or even > /dev/md0s1a Yes. This should work fine. I usually create just one slice in my memory disks and then label the slice as usual. > This would allow the four partition images to be combined into a > single partitioned image. > > Yes, I have a legitimate use for this. :) HEH :)