Initial take at documenting vnconfig and the new md.
This commit is contained in:
parent
d8f4f9e2f2
commit
a64ff19866
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=6859
2 changed files with 162 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.12 2000/03/20 20:59:42 jim Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.13 2000/03/20 22:21:32 jim Exp $
|
||||
-->
|
||||
|
||||
<chapter id="disks">
|
||||
|
@ -223,6 +223,86 @@
|
|||
</sect3>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="disks-virtual">
|
||||
<title>Virtual disks: Network, memory, and file-based filesystems</title>
|
||||
|
||||
<para>Besides the disks you physically insert into your computer;
|
||||
floppies, CDs, hard drives, and so forth, other forms of disks
|
||||
are understood by FreeBSD - the <firstterm>virtual
|
||||
disks</firstterm>.</para>
|
||||
|
||||
<para>These include network filesystems such as the <link
|
||||
linkend="nfs">Network Filesystem</link> and Coda, memory-based
|
||||
filesystems such as <link linkend="disks-md">md</link> and
|
||||
file-backed filesystems created by <link
|
||||
linkend="disks-vnconfig">vnconfig</link>.</para>
|
||||
|
||||
<sect2 id="disks-vnconfig">
|
||||
<title>vnconfig: file-backed filesystem</title>
|
||||
|
||||
<para>&man.vnconfig.8; configures and enables vnode pseudo disk
|
||||
devices. A <firstterm>vnode</firstterm> is a representation
|
||||
of a file, and is the focus of file activity. This means that
|
||||
&man.vnconfig.8; uses files to create and operate a
|
||||
filesystem. One possible use is the mounting of floppy or CD
|
||||
images kept in files.</para>
|
||||
|
||||
<para>To mount an existing filesystem image:</para>
|
||||
|
||||
<example>
|
||||
<title>Using vnconfig to mount an existing filesystem
|
||||
image</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>vnconfig vn<replaceable>0</replaceable> <replaceable>diskimage</replaceable></userinput>
|
||||
<userinput>&prompt.root; mount /dev/vn<replaceable>0</replaceable>c <replaceable>/mnt</replaceable></userinput></screen>
|
||||
</example>
|
||||
|
||||
<para>To create a new filesystem image with vnconfig:</para>
|
||||
|
||||
<example>
|
||||
<title>Creating a new file-backed disk with vnconfig</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=<replaceable>newimage</replaceable> bs=1k count=<replaceable>5</replaceable>k</userinput>
|
||||
5120+0 records in
|
||||
5120+0 records out
|
||||
&prompt.root; <userinput>vnconfig -s labels -c vn<replaceable>0</replaceable> <replaceable>newimage</replaceable></userinput>
|
||||
&prompt.root; <userinput>disklabel -r -w vn<replaceable>0</replaceable></userinput>
|
||||
&prompt.root; <userinput>newfs vn<replaceable>0</replaceable>c</userinput>
|
||||
Warning: 2048 sector(s) in last cylinder unallocated
|
||||
/dev/rvn0c: 10240 sectors in 3 cylinders of 1 tracks, 4096 sectors
|
||||
5.0MB in 1 cyl groups (16 c/g, 32.00MB/g, 1280 i/g)
|
||||
super-block backups (for fsck -b #) at:
|
||||
32
|
||||
&prompt.root; <userinput>mount /dev/vn<replaceable>0</replaceable>c <replaceable>/mnt</replaceable></userinput>
|
||||
&prompt.root; <userinput>df <replaceable>/mnt</replaceable></userinput>
|
||||
Filesystem 1K-blocks Used Avail Capacity Mounted on
|
||||
/dev/vn0c 4927 1 4532 0% /mnt</screen>
|
||||
</example>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="disks-md">
|
||||
<title>md: memory filesystem</title>
|
||||
|
||||
<para>md is a simple, efficient means to do memory
|
||||
filesystems.</para>
|
||||
|
||||
<para>Simply take a filesystem you've prepared with, for
|
||||
example, &man.vnconfig.8;, and:</para>
|
||||
|
||||
<example>
|
||||
<title>md memory disk</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=<replaceable>newimage</replaceable> of=/dev/md<replaceable>0</replaceable></userinput>
|
||||
5120+0 records in
|
||||
5120+0 records out
|
||||
&prompt.root; <userinput>mount /dev/md<replaceable>0c</replaceable> <replaceable>/mnt</replaceable></userinput>
|
||||
&prompt.root; <userinput>df <replaceable>/mnt</replaceable></userinput>
|
||||
Filesystem 1K-blocks Used Avail Capacity Mounted on
|
||||
/dev/md0c 4927 1 4532 0% /mnt</screen>
|
||||
</example>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="quotas">
|
||||
<title>Disk Quotas</title>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.12 2000/03/20 20:59:42 jim Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/disks/chapter.sgml,v 1.13 2000/03/20 22:21:32 jim Exp $
|
||||
-->
|
||||
|
||||
<chapter id="disks">
|
||||
|
@ -223,6 +223,86 @@
|
|||
</sect3>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="disks-virtual">
|
||||
<title>Virtual disks: Network, memory, and file-based filesystems</title>
|
||||
|
||||
<para>Besides the disks you physically insert into your computer;
|
||||
floppies, CDs, hard drives, and so forth, other forms of disks
|
||||
are understood by FreeBSD - the <firstterm>virtual
|
||||
disks</firstterm>.</para>
|
||||
|
||||
<para>These include network filesystems such as the <link
|
||||
linkend="nfs">Network Filesystem</link> and Coda, memory-based
|
||||
filesystems such as <link linkend="disks-md">md</link> and
|
||||
file-backed filesystems created by <link
|
||||
linkend="disks-vnconfig">vnconfig</link>.</para>
|
||||
|
||||
<sect2 id="disks-vnconfig">
|
||||
<title>vnconfig: file-backed filesystem</title>
|
||||
|
||||
<para>&man.vnconfig.8; configures and enables vnode pseudo disk
|
||||
devices. A <firstterm>vnode</firstterm> is a representation
|
||||
of a file, and is the focus of file activity. This means that
|
||||
&man.vnconfig.8; uses files to create and operate a
|
||||
filesystem. One possible use is the mounting of floppy or CD
|
||||
images kept in files.</para>
|
||||
|
||||
<para>To mount an existing filesystem image:</para>
|
||||
|
||||
<example>
|
||||
<title>Using vnconfig to mount an existing filesystem
|
||||
image</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>vnconfig vn<replaceable>0</replaceable> <replaceable>diskimage</replaceable></userinput>
|
||||
<userinput>&prompt.root; mount /dev/vn<replaceable>0</replaceable>c <replaceable>/mnt</replaceable></userinput></screen>
|
||||
</example>
|
||||
|
||||
<para>To create a new filesystem image with vnconfig:</para>
|
||||
|
||||
<example>
|
||||
<title>Creating a new file-backed disk with vnconfig</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=<replaceable>newimage</replaceable> bs=1k count=<replaceable>5</replaceable>k</userinput>
|
||||
5120+0 records in
|
||||
5120+0 records out
|
||||
&prompt.root; <userinput>vnconfig -s labels -c vn<replaceable>0</replaceable> <replaceable>newimage</replaceable></userinput>
|
||||
&prompt.root; <userinput>disklabel -r -w vn<replaceable>0</replaceable></userinput>
|
||||
&prompt.root; <userinput>newfs vn<replaceable>0</replaceable>c</userinput>
|
||||
Warning: 2048 sector(s) in last cylinder unallocated
|
||||
/dev/rvn0c: 10240 sectors in 3 cylinders of 1 tracks, 4096 sectors
|
||||
5.0MB in 1 cyl groups (16 c/g, 32.00MB/g, 1280 i/g)
|
||||
super-block backups (for fsck -b #) at:
|
||||
32
|
||||
&prompt.root; <userinput>mount /dev/vn<replaceable>0</replaceable>c <replaceable>/mnt</replaceable></userinput>
|
||||
&prompt.root; <userinput>df <replaceable>/mnt</replaceable></userinput>
|
||||
Filesystem 1K-blocks Used Avail Capacity Mounted on
|
||||
/dev/vn0c 4927 1 4532 0% /mnt</screen>
|
||||
</example>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="disks-md">
|
||||
<title>md: memory filesystem</title>
|
||||
|
||||
<para>md is a simple, efficient means to do memory
|
||||
filesystems.</para>
|
||||
|
||||
<para>Simply take a filesystem you've prepared with, for
|
||||
example, &man.vnconfig.8;, and:</para>
|
||||
|
||||
<example>
|
||||
<title>md memory disk</title>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=<replaceable>newimage</replaceable> of=/dev/md<replaceable>0</replaceable></userinput>
|
||||
5120+0 records in
|
||||
5120+0 records out
|
||||
&prompt.root; <userinput>mount /dev/md<replaceable>0c</replaceable> <replaceable>/mnt</replaceable></userinput>
|
||||
&prompt.root; <userinput>df <replaceable>/mnt</replaceable></userinput>
|
||||
Filesystem 1K-blocks Used Avail Capacity Mounted on
|
||||
/dev/md0c 4927 1 4532 0% /mnt</screen>
|
||||
</example>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="quotas">
|
||||
<title>Disk Quotas</title>
|
||||
|
|
Loading…
Reference in a new issue