aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig/mdconfig.8
diff options
context:
space:
mode:
authorWarren Block <wblock@FreeBSD.org>2012-11-04 03:19:07 +0000
committerWarren Block <wblock@FreeBSD.org>2012-11-04 03:19:07 +0000
commit2f78ba90f4a220ef0f47ed4a19440793e2782875 (patch)
tree78b94a7bb0b2def05c2355b0dca872660bcfc88d /sbin/mdconfig/mdconfig.8
parent4cbff7a3dcdc5b5838d3c3ca5644ab4815c52a58 (diff)
downloadsrc-2f78ba90f4a220ef0f47ed4a19440793e2782875.tar.gz
src-2f78ba90f4a220ef0f47ed4a19440793e2782875.zip
Add an example showing the use of gnop(8) to skip over header data.
PR: kern/145999 Reviewed by: mjg MFC after: 1 week
Notes
Notes: svn path=/head/; revision=242546
Diffstat (limited to 'sbin/mdconfig/mdconfig.8')
-rw-r--r--sbin/mdconfig/mdconfig.814
1 files changed, 13 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8
index 89f150e8d1a4..c18027cabb94 100644
--- a/sbin/mdconfig/mdconfig.8
+++ b/sbin/mdconfig/mdconfig.8
@@ -41,7 +41,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 27, 2012
+.Dd November 3, 2012
.Dt MDCONFIG 8
.Os
.Sh NAME
@@ -267,6 +267,18 @@ are implied
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 ,