From owner-freebsd-doc@FreeBSD.ORG Tue May 6 17:10:07 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16BC137B408 for ; Tue, 6 May 2003 17:10:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A36F943FB1 for ; Tue, 6 May 2003 17:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h470A6Up099127 for ; Tue, 6 May 2003 17:10:06 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h470A6gY099125; Tue, 6 May 2003 17:10:06 -0700 (PDT) Date: Tue, 6 May 2003 17:10:06 -0700 (PDT) Message-Id: <200305070010.h470A6gY099125@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: "Simon L. Nielsen" Subject: Re: docs/51897: Add example for disklable for md devices X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Simon L. Nielsen" List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 00:10:07 -0000 The following reply was made to PR docs/51897; it has been noted by GNATS. From: "Simon L. Nielsen" To: freebsd-gnats-submit@FreeBSD.org, oberman@es.net Cc: Subject: Re: docs/51897: Add example for disklable for md devices Date: Wed, 7 May 2003 02:03:59 +0200 Hello A patch could be as below. Note I have changed the proposed commands a bit since to match new usage of disklabel and to init the backing file. I just add it as a different example since it IMO serves a different purpose than the example with backing of /tmp/boot.flp. Btw. note my posting to freebsd-current about disklabel coredumping if anyones decides to try this. %%% Index: mdconfig.8 =================================================================== RCS file: /home/ncvs/src/sbin/mdconfig/mdconfig.8,v retrieving revision 1.19 diff -u -d -r1.19 mdconfig.8 --- mdconfig.8 27 Apr 2003 01:46:56 -0000 1.19 +++ mdconfig.8 6 May 2003 23:54:40 -0000 @@ -164,6 +164,18 @@ mount /dev/md10 /tmp chmod 1777 /tmp .Ed +.Pp +To create a 10MB memory disk named +.Pa /dev/md0 +with the file +.Pa somebackingfile +as backing and label it with normal partitions: +.Bd -literal -offset indent +dd if=/dev/zero of=somebackingfile bs=1k count=10k +mdconfig -a -t vnode -f somebackingfile -u 0 +disklabel -w md0 +disklabel -e md0 +.Ed .Sh SEE ALSO .Xr md 4 , .Xr disklabel 8 , %%% -- Simon L. Nielsen