diff options
author | blackend <blackend@FreeBSD.org> | 2003-10-11 09:59:25 +0000 |
---|---|---|
committer | blackend <blackend@FreeBSD.org> | 2003-10-11 09:59:25 +0000 |
commit | 922aa1a4f451821949bece57019923127d3cca55 (patch) | |
tree | 5e735990460015cc5c67504130b439aa2cfeeeff /sbin | |
parent | 809a30b985e5c0e503f36e08210d13018b3fb682 (diff) | |
download | FreeBSD-src-922aa1a4f451821949bece57019923127d3cca55.zip FreeBSD-src-922aa1a4f451821949bece57019923127d3cca55.tar.gz |
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>
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mdconfig/mdconfig.8 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8 index d631e39..4c4b306 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 , |