[Midnightbsd-cvs] src [8459] trunk/sbin/mdconfig/mdconfig.8: add new example
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 17:59:04 EDT 2016
Revision: 8459
http://svnweb.midnightbsd.org/src/?rev=8459
Author: laffer1
Date: 2016-09-18 17:59:04 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
add new example
Modified Paths:
--------------
trunk/sbin/mdconfig/mdconfig.8
Modified: trunk/sbin/mdconfig/mdconfig.8
===================================================================
--- trunk/sbin/mdconfig/mdconfig.8 2016-09-18 21:58:17 UTC (rev 8458)
+++ trunk/sbin/mdconfig/mdconfig.8 2016-09-18 21:59:04 UTC (rev 8459)
@@ -41,7 +41,7 @@
.\"
.\" $MidnightBSD$
.\"
-.Dd June 27, 2012
+.Dd November 3, 2012
.Dt MDCONFIG 8
.Os
.Sh NAME
@@ -253,7 +253,19 @@
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 ,
.Xr ffs 7 ,
More information about the Midnightbsd-cvs
mailing list