summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2007-11-11 08:12:21 +0000
committerkeramida <keramida@FreeBSD.org>2007-11-11 08:12:21 +0000
commite9163ea1df138dc50de5ac4155f4a5424e8fb08d (patch)
tree29b5bd90a04b7cab7b46aaad149d92680b7a7ad8 /sbin
parent439399edf83695101aa71cf53c06c52d7ffa7eb9 (diff)
downloadFreeBSD-src-e9163ea1df138dc50de5ac4155f4a5424e8fb08d.zip
FreeBSD-src-e9163ea1df138dc50de5ac4155f4a5424e8fb08d.tar.gz
* Expand the example descriptions, fix mdoc-bugs in
"(-a and -t vnode are implied)" and reuse it near the cd9660 example. * Spell 'backing store' as two words.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mdconfig/mdconfig.829
1 files changed, 20 insertions, 9 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8
index 4ff0faf..94559a6 100644
--- a/sbin/mdconfig/mdconfig.8
+++ b/sbin/mdconfig/mdconfig.8
@@ -41,7 +41,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 9, 2007
+.Dd November 11, 2007
.Dt MDCONFIG 8
.Os
.Sh NAME
@@ -96,7 +96,7 @@ panic a system.
.It Cm vnode
A file specified with
.Fl f Ar file
-becomes the backingstore for this memory disk.
+becomes the backing store for this memory disk.
.It Cm swap
Swap space is used to back this memory disk.
.El
@@ -185,7 +185,7 @@ To create a disk named
.Pa /dev/md4
with
.Pa /tmp/boot.flp
-as backing:
+as backing storage:
.Pp
.Dl mdconfig -a -t vnode -f /tmp/boot.flp -u 4
.Pp
@@ -194,7 +194,9 @@ To detach and free all resources used by
.Pp
.Dl mdconfig -d -u 4
.Pp
-To create and mount a 128MByte swap backed file system on
+To create a 128MByte swap backed disk, initialize an
+.Xr ffs 7
+file system on it, and mount it on
.Pa /tmp :
.Bd -literal -offset indent
mdconfig -a -t swap -s 128M -u 10
@@ -203,10 +205,10 @@ mount /dev/md10 /tmp
chmod 1777 /tmp
.Ed
.Pp
-To create a 5MB file-backed disk (
-.Fl -a
+To create a 5MB file-backed disk
+.Ns ( Fl a
and
-.Fl -t Ar vnode
+.Fl t Ar vnode
are implied):
.Bd -literal -offset indent
dd if=/dev/zero of=somebackingfile bs=1k count=5k
@@ -216,12 +218,21 @@ newfs md0c
mount /dev/md0c /mnt
.Ed
.Pp
-To mount an ISO 9660 CD image file:
+To create an
+.Xr md 4
+device out of an ISO 9660 CD image file
+.Ns ( Fl a
+and
+.Fl t Ar vnode
+are implied), using the first available
+.Xr md 4
+device, and then mount the new memory disk:
.Bd -literal -offset indent
-mount -t cd9660 /dev/`mdconfig -a -t vnode -f cdimage.iso` /mnt
+mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt
.Ed
.Sh SEE ALSO
.Xr md 4 ,
+.Xr ffs 7 ,
.Xr bsdlabel 8 ,
.Xr fdisk 8 ,
.Xr mdmfs 8 ,
OpenPOWER on IntegriCloud