aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig/mdconfig.8
diff options
context:
space:
mode:
authorMarc Fonvieille <blackend@FreeBSD.org>2003-10-11 09:59:25 +0000
committerMarc Fonvieille <blackend@FreeBSD.org>2003-10-11 09:59:25 +0000
commit84783ceaeb7086e7e3b8d412b40019e8009be601 (patch)
tree5e735990460015cc5c67504130b439aa2cfeeeff /sbin/mdconfig/mdconfig.8
parentadc0836e72eeaef579fa8788344b4768ee75e7ea (diff)
downloadsrc-84783ceaeb7086e7e3b8d412b40019e8009be601.tar.gz
src-84783ceaeb7086e7e3b8d412b40019e8009be601.zip
Add a full example of a file-backed disk creation, I used the Handbook's
example. PR: docs/51897 Submitted by: Kevin Oberman <oberman@es.net>
Notes
Notes: svn path=/head/; revision=121003
Diffstat (limited to 'sbin/mdconfig/mdconfig.8')
-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 ,