aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mdconfig/mdconfig.89
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8
index d631e3945486..4c4b3066929d 100644
--- a/sbin/mdconfig/mdconfig.8
+++ b/sbin/mdconfig/mdconfig.8
@@ -183,6 +183,15 @@ newfs -U /dev/md10
mount /dev/md10 /tmp
chmod 1777 /tmp
.Ed
+.Pp
+To create a 5MB file-backed disk:
+.Bd -literal -offset indent
+dd if=/dev/zero of=somebackingfile bs=1k count=5k
+mdconfig -a -t vnode -f somebackingfile -u 0
+bsdlabel -w md0 auto
+newfs md0c
+mount /dev/md0c /mnt
+.Ed
.Sh SEE ALSO
.Xr md 4 ,
.Xr bsdlabel 8 ,