mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
* 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.
This commit is contained in:
parent
42a227f8ba
commit
d257bc4a71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173539
@ -41,7 +41,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 9, 2007
|
.Dd November 11, 2007
|
||||||
.Dt MDCONFIG 8
|
.Dt MDCONFIG 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -96,7 +96,7 @@ panic a system.
|
|||||||
.It Cm vnode
|
.It Cm vnode
|
||||||
A file specified with
|
A file specified with
|
||||||
.Fl f Ar file
|
.Fl f Ar file
|
||||||
becomes the backingstore for this memory disk.
|
becomes the backing store for this memory disk.
|
||||||
.It Cm swap
|
.It Cm swap
|
||||||
Swap space is used to back this memory disk.
|
Swap space is used to back this memory disk.
|
||||||
.El
|
.El
|
||||||
@ -185,7 +185,7 @@ To create a disk named
|
|||||||
.Pa /dev/md4
|
.Pa /dev/md4
|
||||||
with
|
with
|
||||||
.Pa /tmp/boot.flp
|
.Pa /tmp/boot.flp
|
||||||
as backing:
|
as backing storage:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl mdconfig -a -t vnode -f /tmp/boot.flp -u 4
|
.Dl mdconfig -a -t vnode -f /tmp/boot.flp -u 4
|
||||||
.Pp
|
.Pp
|
||||||
@ -194,7 +194,9 @@ To detach and free all resources used by
|
|||||||
.Pp
|
.Pp
|
||||||
.Dl mdconfig -d -u 4
|
.Dl mdconfig -d -u 4
|
||||||
.Pp
|
.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 :
|
.Pa /tmp :
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
mdconfig -a -t swap -s 128M -u 10
|
mdconfig -a -t swap -s 128M -u 10
|
||||||
@ -203,10 +205,10 @@ mount /dev/md10 /tmp
|
|||||||
chmod 1777 /tmp
|
chmod 1777 /tmp
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
To create a 5MB file-backed disk (
|
To create a 5MB file-backed disk
|
||||||
.Fl -a
|
.Ns ( Fl a
|
||||||
and
|
and
|
||||||
.Fl -t Ar vnode
|
.Fl t Ar vnode
|
||||||
are implied):
|
are implied):
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
dd if=/dev/zero of=somebackingfile bs=1k count=5k
|
dd if=/dev/zero of=somebackingfile bs=1k count=5k
|
||||||
@ -216,12 +218,21 @@ newfs md0c
|
|||||||
mount /dev/md0c /mnt
|
mount /dev/md0c /mnt
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.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
|
.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
|
.Ed
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr md 4 ,
|
.Xr md 4 ,
|
||||||
|
.Xr ffs 7 ,
|
||||||
.Xr bsdlabel 8 ,
|
.Xr bsdlabel 8 ,
|
||||||
.Xr fdisk 8 ,
|
.Xr fdisk 8 ,
|
||||||
.Xr mdmfs 8 ,
|
.Xr mdmfs 8 ,
|
||||||
|
Loading…
Reference in New Issue
Block a user