aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-08-28 17:40:48 +0000
committerXin LI <delphij@FreeBSD.org>2005-08-28 17:40:48 +0000
commit9a04bdcb2fec089e0e9f010502e140033e8a2af3 (patch)
treee95f4d1e88be2fa1dcc1167ff57d3f00e0270e53 /zh_CN.GB2312/books
parent3e58a78b9d8af4edff60d78d76b305504c7e939a (diff)
Notes
Diffstat (limited to 'zh_CN.GB2312/books')
-rw-r--r--zh_CN.GB2312/books/handbook/disks/chapter.sgml101
1 files changed, 53 insertions, 48 deletions
diff --git a/zh_CN.GB2312/books/handbook/disks/chapter.sgml b/zh_CN.GB2312/books/handbook/disks/chapter.sgml
index f6a406275d..df77722789 100644
--- a/zh_CN.GB2312/books/handbook/disks/chapter.sgml
+++ b/zh_CN.GB2312/books/handbook/disks/chapter.sgml
@@ -2,7 +2,7 @@
The FreeBSD Documentation Project
The FreeBSD Simplified Chinese Project
- Original Revision: 1.232
+ Original Revision: 1.241
$FreeBSD$
-->
@@ -714,14 +714,14 @@ device umass</programlisting>
&man.atapicam.4; 不应该在内核配置文件中使用。</para>
</note>
- <para>在&os;&nbsp;5.X,中提供了对 USB 2.0 控制器的支持,
- 在 4.X 分支从 &os;&nbsp;4.10-RELEASE 后,您应该加入:</para>
+ <para>从 &os;&nbsp; 5.X 开始, 对 USB 2.0 控制器提供了内建的支持;
+ 这一特性也被加入到了 &os;&nbsp;4.10-RELEASE 和其后的 4.X 版本。
+ 要获取对 USB 2.0 的支持, 您需要在内核的编译配置中加入:</para>
<programlisting>device ehci</programlisting>
- <para>到您的配置文件以提供对 USB 2.0 的支持。注意
- &man.uhci.4; 和 &man.ohci.4; 驱动程序仍然需要,如果您想提供对
- USB 1.X 的支持。</para>
+ <para>注意, 如果需要 USB 1.X 的支持, 您仍需要使用
+ &man.uhci.4; 和 &man.ohci.4; 驱动程序。</para>
<note>
<para>在 &os;&nbsp;4.X 上, USB daemon (&man.usbd.8;) 必须能够
@@ -1213,20 +1213,18 @@ scsibus1:
role="package">sysutils/cdrdao</filename> 或者
&man.cdrecord.1; 这样的程序。</para>
- <para>要使用这个驱动,您需要把下面几行
- 添加到您的内核配置文件中:</para>
+ <para>要使用这个驱动, 您需要把下面几行添加到您的内核配置文件中:</para>
- <programlisting>device atapicam
+ <programlisting>device atapicam</programlisting>
+
+ <para>此外还需要在内核配置文件中加入:</para>
+
+ <programlisting>device ata
device scbus
device cd
device pass</programlisting>
- <para>您也需要在您的内核配置文件有
- 下面几行:</para>
-
- <programlisting>device ata</programlisting>
-
- <para>这个应该已经有了。</para>
+ <para>这些应该已经有了。</para>
<para>然后重建,安装您的新内核,重新启动机器。
在启动过程中,您的刻录机会被识别,
@@ -1840,12 +1838,17 @@ cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c
<secondary>QIC-150</secondary>
</indexterm>
- <para>QIC-150 是最常见的磁带机。 QIC 磁带机是最便宜的 <quote>正规</quote>
- 备份驱动器。和 8mm or 4mm 比较,QIC 磁带机最高可能要 5 倍的价钱每 GB。
- 假如您需要六台左右的磁带机,那么 QIC 将是正确的选择。 QIC 是
- <emphasis>最常见</emphasis> 的磁带机,每个工作站都会有一台 QIC 磁带机。
- QIC 磁带机具有几种不同的存储密度。QIC 磁带机并不安静,读写时的声音都可清
- 淅地听到。 QIC 磁带机的规格:(6 x 4 x 0.7 inches; 15.2 x10.2 x 1.7 mm)。</para>
+ <para>QIC-150 磁带和磁带机可能是最常见的磁带机和介质了。
+ QIC 磁带机是最便宜的 <quote>正规</quote> 备份设备。
+ 它的缺点在于介质的价格较高。 QIC 磁带要比 8mm 或 4mm 磁带贵,
+ 每 GB 的数据存储价格可能最高高出 5 倍。 但是,
+ 如果您的需求能够为半打磁带所满足的话, 那么 QIC
+ 可能是明智之选。 QIC 是
+ <emphasis>最</emphasis> 常见的磁带机。 每个站点都会有某种密度的 QIC。
+ 这有时是一种麻烦, QIC 有为数众多的密度,
+ 但在外观上相似 (有时一样) 的磁带。 QIC 磁带机噪音很大。
+ 它们在寻址以及读写时都会发出声音。 QIC 磁带的规格有 (6 x 4 x 0.7 英寸; 152 x
+ 102 x 17 毫米)。</para>
<para>数据传输的速度介于 150&nbsp;kB/s 到 500&nbsp;kB/s 之间,可存储的空间
从 40&nbsp;MB 到 15&nbsp;GB。较新的 QIC 磁带机具有硬件压缩的功能。 QIC
@@ -2074,7 +2077,7 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready</screen>
<example>
<title>通过设置 <application>ssh</application> 环境变量 <envar>RSH</envar> 使用 <command>dump</command> </title>
- <screen>&prompt.root; <userinput>RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0</userinput></screen>
+ <screen>&prompt.root; <userinput>RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr</userinput></screen>
</example>
@@ -2087,22 +2090,27 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready</screen>
<secondary><command>tar</command></secondary>
</indexterm>
- <para>&man.tar.1; 也同样是在 AT&amp;T UNIX Version 6 (约 1975)中出现的。
- <command>tar</command> 可以直接对文件系统操作。它直接将文件和目录写到
- 磁带上, <command>tar</command> 不支持像 &man.cpio.1; 那样多的选项,但
- <command>tar</command> 不需要用像用 <command>cpio</command> 那样奇怪的
- 命令行管道。</para>
+ <para>&man.tar.1; 也同样是在第 6 版 AT&amp;T UNIX
+ (大约是 1975 前后) 出现的。 <command>tar</command> 对文件系统直接操作;
+ 其作用是把文件和目录写入磁带。 <command>tar</command> 并不支持
+ &man.cpio.1; 所提供的全部功能, 但也不需要 <command>cpio</command>
+ 所需要使用的诡异的命令行管道。</para>
<indexterm><primary><command>tar</command></primary></indexterm>
- <para>许多版本的 <command>tar</command> 不支持通过网络备份,而 GNU 版的
- <command>tar</command> (FreeBSD 用的就是 GNU 版的)提供与 <command>rdump</command>
- 相同的语法来使用远程的设备。例如要 <command>tar</command> Sun 工作站
- <hostid>komodo</hostid> 上一台 Exabyte 磁带机,主使用:</para>
- <screen>&prompt.root; <userinput>/usr/bin/tar cf komodo:/dev/nsa8 . 2>&amp;1</userinput></screen>
+ <para>在 FreeBSD 5.3 和更高版本中, 同时提供了 GNU <command>tar</command>
+ 和默认的 <command>bsdtar</command>。
+ GNU 的版本可以通过 <command>gtar</command> 来使用。 它通过与
+ <command>rdump</command> 一样的语法来支持远程设备。
+ 要 <command>tar</command> 到连接在名为
+ <hostid>komodo</hostid> 的 Sun 机器上的
+ Exabyte 磁带机, 可以使用:</para>
- <para>对于不支持远程设备的版本,可以使用一个管道和 <command>rsh</command>
- 传送数据给远程的磁带机。</para>
+ <screen>&prompt.root; <userinput>/usr/bin/gtar cf komodo:/dev/nsa8 . 2>&amp;1</userinput></screen>
+
+ <para>您也可以让
+ <command>bsdtar</command> 通过管道和
+ <command>rsh</command> 将数据发送到远程的磁带机上。</para>
<screen>&prompt.root; <userinput>tar cf - . | rsh <replaceable>hostname</replaceable> dd of=<replaceable>tape-device</replaceable> obs=20b</userinput></screen>
@@ -2788,21 +2796,23 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
&man.rm.1; 使用来使其删除。快照可以以任何顺序进行移除,但所有使用
的快照不可能同时进行移除,因为其它的快照将有可能互相引用一些块。</para>
- <para>在初始创建时,<option>schg</option> 标志 (看 &man.chflags.1; 手册页)
- 用来确保 <username>root</username> 用户不能用来写快照文件系统。
- &man.unlink.1; 命令是个例外对快照文件来说。
- 它能够移除 <option>schg</option> 标志位,在不删除快照文件前,
- 没有必要清除 <option>schg</option> 标志。</para>
+ <para>不可改的 <option>snapshot</option> 文件标志,
+ 是由 &man.mksnap.ffs.8; 在完成创建快照文件时设置的。
+ &man.unlink.1; 命令是一个特例, 以允许删除快照文件。</para>
- <para>快照被 &man.mount.8; 命令创建。放置一个快照
- <filename>/var</filename> 到文件系统
- <filename>/var/snapshot/snap</filename> 使用下面的命令:</para>
+ <para>快照可以通过 &man.mount.8; 命令创建。 将文件系统
+ <filename>/var</filename> 的快照放到
+ <filename>/var/snapshot/snap</filename> 可以使用下面的命令:</para>
<screen>&prompt.root; <userinput>mount -u -o snapshot /var/snapshot/snap /var</userinput></screen>
<para>作为选择,你也可以使用 &man.mksnap.ffs.8; 来创建一个快照:</para>
<screen>&prompt.root; <userinput>mksnap_ffs /var /var/snapshot/snap</userinput></screen>
+ <para>可以查找文件系统中的快照文件 (例如 <filename>/var</filename>),
+ 方法是使用 &man.find.1; 命令:</para>
+<screen>&prompt.root; <userinput>find /var -flags snapshot</userinput></screen>
+
<para>当快照文件被创建好后,可以用于下面一些目的:</para>
<itemizedlist>
@@ -2891,11 +2901,6 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
<programlisting>check_quotas="NO"</programlisting>
- <para>如果运行的是 3.2-RELEASE 以前的版本,配置比较简单,只需要配置
- 一个选项,在您的 <filename>/etc/rc.conf</filename> 中设置下面这行:</para>
-
- <programlisting>check_quotas="YES"</programlisting>
-
<para>最后,要编辑 <filename>/etc/fstab</filename> 文件,以在每一个
文件系统基础上雇用磁盘配额。这是启用用户和组配额,或同时启用用户
和组配额的地方。</para>
@@ -2980,7 +2985,7 @@ Filesystem 1K-blocks Used Avail Capacity Mounted on
<para>to:</para>
- <programlisting> /usr: kbytes in use: 65, limits (soft = 500, hard = 600)</programlisting>
+ <programlisting>/usr: kbytes in use: 65, limits (soft = 500, hard = 600)</programlisting>
<para>当离开编辑器的时候,新的配额限制设置将会被保存。</para>