Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 18:10:15 +0000 (UTC)
From:      Warren Block <wblock@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243566 - stable/9/sbin/mdconfig
Message-ID:  <201211261810.qAQIAFRE043492@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wblock (doc committer)
Date: Mon Nov 26 18:10:15 2012
New Revision: 243566
URL: http://svnweb.freebsd.org/changeset/base/243566

Log:
  MFC r242546:
  
  Add an example showing the use of gnop(8) to skip over header data.
  
  PR:		kern/145999
  Reviewed by:	mjg

Modified:
  stable/9/sbin/mdconfig/mdconfig.8
Directory Properties:
  stable/9/sbin/mdconfig/   (props changed)

Modified: stable/9/sbin/mdconfig/mdconfig.8
==============================================================================
--- stable/9/sbin/mdconfig/mdconfig.8	Mon Nov 26 16:44:03 2012	(r243565)
+++ stable/9/sbin/mdconfig/mdconfig.8	Mon Nov 26 18:10:15 2012	(r243566)
@@ -41,7 +41,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd June 27, 2012
+.Dd November 3, 2012
 .Dt MDCONFIG 8
 .Os
 .Sh NAME
@@ -253,6 +253,18 @@ are implied), using the first available
 device, and then mount the new memory disk:
 .Bd -literal -offset indent
 mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
+.Pp
+.Ed
+Create a file-backed device from a hard disk image that begins
+with 512K of raw header information.
+.Xr gnop 8
+is used to skip over the header information, positioning
+.Pa md1.nop
+to the start of the filesystem in the image.
+.Bd -literal -offset indent
+mdconfig -f diskimage.img -u 1
+gnop create -o 512K md1
+mount /dev/md1.nop /mnt
 .Ed
 .Sh SEE ALSO
 .Xr md 4 ,



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