# Debian GNU/Linux Installation Guide msgid "" msgstr "" "Project-Id-Version: d-i-manual\n" "Report-Msgid-Bugs-To: debian-boot@lists.debian.org\n" "POT-Creation-Date: 2006-10-29 14:49+0000\n" "PO-Revision-Date: 2006-10-31 21:24+0800\n" "Last-Translator: Ji YongGang\n" "Language-Team: debian-chinese-gb \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #: partitioning.xml:5 #, no-c-format msgid "Partitioning for Debian" msgstr "为 Debian 准备分区" #. Tag: title #: partitioning.xml:13 #, no-c-format msgid "Deciding on Debian Partitions and Sizes" msgstr "决定 Debian 分区以及大小" #. Tag: para #: partitioning.xml:14 #, no-c-format msgid "" "At a bare minimum, GNU/Linux needs one partition for itself. You can have a " "single partition containing the entire operating system, applications, and " "your personal files. Most people feel that a separate swap partition is also " "a necessity, although it's not strictly true. Swap is scratch " "space for an operating system, which allows the system to use disk storage " "as virtual memory. By putting swap on a separate partition, " "Linux can make much more efficient use of it. It is possible to force Linux " "to use a regular file as swap, but it is not recommended." msgstr "" "最小化情况下,GNU/Linux 需要一个分区。您可以有一个包含整个操作系统,应用程序" "以及您私人数据的分区。大多数人感到一个分离的交换分区也是很有必要的,尽管它并" "非严格要求。Swap 是一个操作系统用的空白空间,允许系统使用磁盘" "来提供 虚拟内存。通过放置交换空间至一个分离的分区,Linux 可以" "非常有效地使用它。强迫 Linux 使用一个普通文件作为交换空间也是可行的,但是并不" "推荐这种做法。" #. Tag: para #: partitioning.xml:26 #, no-c-format msgid "" "Most people choose to give GNU/Linux more than the minimum number of " "partitions, however. There are two reasons you might want to break up the " "file system into a number of smaller partitions. The first is for safety. If " "something happens to corrupt the file system, generally only one partition " "is affected. Thus, you only have to replace (from the backups you've been " "carefully keeping) a portion of your system. At a bare minimum, you should " "consider creating what is commonly called a root partition. " "This contains the most essential components of the system. If any other " "partitions get corrupted, you can still boot into GNU/Linux to fix the " "system. This can save you the trouble of having to reinstall the system from " "scratch." msgstr "" "但是大多数人选择给 GNU/Linu 更多的分区。这里有两个原因使您愿意把系统放置到一" "些较小的分区上。第一个问题是安全性。如果文件系统出现了问题,一般来说只是一个" "分区会受到影响。因此,您只需要更换(来自于您小心维护的备份)一个分区。在原始最" "小化阶段,您应该考虑创建所谓的 根分区。它含有最基础的系统组" "件。如果其它分区出现了问题,您仍然可以引导至 GNU/Linux 来修复系统。这个可以让" "您不用从头重新安装系统。" #. Tag: para #: partitioning.xml:40 #, no-c-format msgid "" "The second reason is generally more important in a business setting, but it " "really depends on your use of the machine. For example, a mail server " "getting spammed with e-mail can easily fill a partition. If you made " "/var/mail a separate partition on the mail server, most " "of the system will remain working even if you get spammed." msgstr "" "第二个理由对商业设置来说更重要,但它实际上取决于您机器的使用。比如,一个邮件" "服务器接受到很多垃圾邮件会很快填满一个分区,如果您创建 /var/mail在一个分离的分区上面,大多数系统在您得到太多垃圾邮件的情况下会继续工" "作。" #. Tag: para #: partitioning.xml:48 #, no-c-format msgid "" "The only real drawback to using more partitions is that it is often " "difficult to know in advance what your needs will be. If you make a " "partition too small then you will either have to reinstall the system or you " "will be constantly moving things around to make room in the undersized " "partition. On the other hand, if you make the partition too big, you will be " "wasting space that could be used elsewhere. Disk space is cheap nowadays, " "but why throw your money away?" msgstr "" "使用更多分区的唯一缺点很难知道您将来的需求。如果您建立了一个分区容量太小,则" "您将或者重装系统或者不停地移动数据来给分区分配空间。在另外一个方面,如果您建" "立的分区过大,您将浪费一些可以用在别的地方的空间。磁盘容量目前很便宜,但是为" "什么您要把金钱随意抛洒呢?" #. Tag: title #: partitioning.xml:67 #, no-c-format msgid "The Directory Tree" msgstr "目录树" #. Tag: para #: partitioning.xml:68 #, no-c-format msgid "" "&debian; adheres to the Filesystem Hierarchy " "Standard for directory and file naming. This standard allows users " "and software programs to predict the location of files and directories. The " "root level directory is represented simply by the slash /. At the root level, all Debian systems include these directories:" msgstr "" "&debian; 依照 文件系统层次标准 (Filesystem " "Hierarchy Standard) 安排文件以及文件命名。这个标准允许用户以及软件程" "序预测文件以及目录的位置。根层次目录只是简单表现为 /。在" "根层次,所有的 Debian 系统包括这些目录:" #. Tag: entry #: partitioning.xml:82 #, no-c-format msgid "Directory" msgstr "目录" #. Tag: entry #: partitioning.xml:82 #, no-c-format msgid "Content" msgstr "内容" #. Tag: filename #: partitioning.xml:88 #, no-c-format msgid "bin" msgstr "bin" #. Tag: entry #: partitioning.xml:89 #, no-c-format msgid "Essential command binaries" msgstr "基础命令执行文件" #. Tag: filename #: partitioning.xml:91 #, no-c-format msgid "boot" msgstr "boot" #. Tag: entry #: partitioning.xml:92 #, no-c-format msgid "Static files of the boot loader" msgstr "启动引导器的静态链结文件" #. Tag: filename #: partitioning.xml:94 #, no-c-format msgid "dev" msgstr "dev" #. Tag: entry #: partitioning.xml:95 #, no-c-format msgid "Device files" msgstr "设备文件" #. Tag: filename #: partitioning.xml:97 #, no-c-format msgid "etc" msgstr "etc" #. Tag: entry #: partitioning.xml:98 #, no-c-format msgid "Host-specific system configuration" msgstr "主机特定的系统配置" #. Tag: filename #: partitioning.xml:100 #, no-c-format msgid "home" msgstr "home" #. Tag: entry #: partitioning.xml:101 #, no-c-format msgid "User home directories" msgstr "用户活动目录" #. Tag: filename #: partitioning.xml:103 #, no-c-format msgid "lib" msgstr "lib" #. Tag: entry #: partitioning.xml:104 #, no-c-format msgid "Essential shared libraries and kernel modules" msgstr "基本共享库以及内核模块" #. Tag: filename #: partitioning.xml:106 #, no-c-format msgid "media" msgstr "media" #. Tag: entry #: partitioning.xml:107 #, no-c-format msgid "Contains mount points for replaceable media" msgstr "包含移动介质的挂载点" #. Tag: filename #: partitioning.xml:109 #, no-c-format msgid "mnt" msgstr "mnt" #. Tag: entry #: partitioning.xml:110 #, no-c-format msgid "Mount point for mounting a file system temporarily" msgstr "用于临时挂接一个文件系统" #. Tag: filename #: partitioning.xml:112 #, no-c-format msgid "proc" msgstr "proc" #. Tag: entry #: partitioning.xml:113 #, no-c-format msgid "Virtual directory for system information (2.4 and 2.6 kernels)" msgstr "系统信息的虚拟目录(2.4 和 2.6 内核)" #. Tag: filename #: partitioning.xml:115 #, no-c-format msgid "root" msgstr "root" #. Tag: entry #: partitioning.xml:116 #, no-c-format msgid "Home directory for the root user" msgstr "根用户的活动目录" #. Tag: filename #: partitioning.xml:118 #, no-c-format msgid "sbin" msgstr "sbin" #. Tag: entry #: partitioning.xml:119 #, no-c-format msgid "Essential system binaries" msgstr "基本的系统级程序" #. Tag: filename #: partitioning.xml:121 #, no-c-format msgid "sys" msgstr "sys" #. Tag: entry #: partitioning.xml:122 #, no-c-format msgid "Virtual directory for system information (2.6 kernels)" msgstr "系统信息的虚拟目录(2.6 内核)" #. Tag: filename #: partitioning.xml:124 #, no-c-format msgid "tmp" msgstr "tmp" #. Tag: entry #: partitioning.xml:125 #, no-c-format msgid "Temporary files" msgstr "临时文件" #. Tag: filename #: partitioning.xml:127 #, no-c-format msgid "usr" msgstr "usr" #. Tag: entry #: partitioning.xml:128 #, no-c-format msgid "Secondary hierarchy" msgstr "第二层次" #. Tag: filename #: partitioning.xml:130 #, no-c-format msgid "var" msgstr "var" #. Tag: entry #: partitioning.xml:131 #, no-c-format msgid "Variable data" msgstr "活动数据" #. Tag: filename #: partitioning.xml:133 #, no-c-format msgid "srv" msgstr "srv" #. Tag: entry #: partitioning.xml:134 #, no-c-format msgid "Data for services provided by the system" msgstr "系统提供的用于服务的数据" #. Tag: filename #: partitioning.xml:136 #, no-c-format msgid "opt" msgstr "opt" #. Tag: entry #: partitioning.xml:137 #, no-c-format msgid "Add-on application software packages" msgstr "附加的应用程序软件包" #. Tag: para #: partitioning.xml:142 #, no-c-format msgid "" "The following is a list of important considerations regarding directories " "and partitions. Note that disk usage varies widely given system " "configuration and specific usage patterns. The recommendations here are " "general guidelines and provide a starting point for partitioning." msgstr "" "下面列出关于目录和分区的重要考虑。要注意磁盘的使用随系统配置和特定用途有很大" "变化。这里所推荐的是通用指引,提供一个分区的起点。" #. Tag: para #: partitioning.xml:152 #, no-c-format msgid "" "The root partition / must always physically contain " "/etc, /bin, /sbin, /lib and /dev, " "otherwise you won't be able to boot. Typically 150–250MB is needed for " "the root partition." msgstr "" "根分区 / 必须总是物理地包含 /etc、" "/bin/sbin/lib/dev,否则您将不能启动系统。典型的根分区需" "要 150–250MB 大小空间。" #. Tag: para #: partitioning.xml:161 #, no-c-format msgid "" "/usr: contains all user programs (/usr/bin), libraries (/usr/lib), documentation " "(/usr/share/doc), etc. This is the part of the file " "system that generally takes up most space. You should provide at least 500MB " "of disk space. This amount should be increased depending on the number and " "type of packages you plan to install. A generous workstation or server " "installation should allow 4–6GB." msgstr "" "/usr:包含所有的用户程序(/usr/bin),库文件(/usr/lib),文档(/usr/share/" "doc),等等。这是文件系统中耗费空间最多的部分。您需要提供至少 " "500MB 磁盘空间。总容量会依据您要安装的软件包数量和类型增长。大的工作站或服务" "器安装应该需要 4–6GB。" #. Tag: para #: partitioning.xml:174 #, no-c-format msgid "" "/var: variable data like news articles, e-mails, web " "sites, databases, the packaging system cache, etc. will be placed under this " "directory. The size of this directory depends greatly on the usage of your " "system, but for most people will be dictated by the package management " "tool's overhead. If you are going to do a full installation of just about " "everything Debian has to offer, all in one session, setting aside 2 or 3 GB " "of space for /var should be sufficient. If you are " "going to install in pieces (that is to say, install services and utilities, " "followed by text stuff, then X, ...), you can get away with 300–500 " "MB. If hard drive space is at a premium and you don't plan on doing major " "system updates, you can get by with as little as 30 or 40 MB." msgstr "" "/var:所有的可变数据,如新的文章,电子邮件,网站,数据" "库,软件包系统的缓存等等,将被放入这个目录。这个目录的大小取决于您计算机的用" "途,但是对于大多数人来说将主要用在软件包系统的管理工具。如果您准备一次性地做" "一个完整的安装,包含 Debian 提供的所有程序,/var 下面 2 " "或 3GB 的空间应该满足需求。如果您准备逐个安装(也就是说,安装服务程序和工具," "然后是文本处理工具,然后是 X,...),您可以在 /var 下准" "备 300–500 MB。如果硬盘空间很紧张,并且不准备做主要的系统升级,您可以为" "其配置 30 或 40MB 大小。" #. Tag: para #: partitioning.xml:190 #, no-c-format msgid "" "/tmp: temporary data created by programs will most " "likely go in this directory. 40–100MB should usually be enough. Some " "applications — including archive manipulators, CD/DVD authoring tools, " "and multimedia software — may use /tmp to " "temporarily store image files. If you plan to use such applications, you " "should adjust the space available in /tmp accordingly." msgstr "" "/tmp: 程序创建的临时数据大都存到这个目录。通常 " "40–100 MB 应该足够。一些应用程序 — 包括档案处理器,CD/DVD 制作工" "具,和多媒体软件 — 可能会使用 /tmp 临时保存映像文" "件。如果您要使用这些程序,应该相应地调整 /tmp 目录的大" "小。" #. Tag: para #: partitioning.xml:201 #, no-c-format msgid "" "/home: every user will put his personal data into a " "subdirectory of this directory. Its size depends on how many users will be " "using the system and what files are to be stored in their directories. " "Depending on your planned usage you should reserve about 100MB for each " "user, but adapt this value to your needs. Reserve a lot more space if you " "plan to save a lot of multimedia files (pictures, MP3, movies) in your home " "directory." msgstr "" "/home:每个用户将放置他的个人数据到这个目录的子目录下。" "其大小取决于将有多少用户使用系统,以及有什么文件放在他们的目录下。根据规划的" "用途,您应该为每个用户准备 100MB 空间,不过应该按您的需求调整。假如您在 home " "目录下计划保存大量的多媒体文件(图片、MP3、电影),该预备更多的空间。" #. Tag: title #: partitioning.xml:222 #, no-c-format msgid "Recommended Partitioning Scheme" msgstr "推荐的分区方案" #. Tag: para #: partitioning.xml:223 #, no-c-format msgid "" "For new users, personal Debian boxes, home systems, and other single-user " "setups, a single / partition (plus swap) is probably " "the easiest, simplest way to go. However, if your partition is larger than " "around 6GB, choose ext3 as your partition type. Ext2 partitions need " "periodic file system integrity checking, and this can cause delays during " "booting when the partition is large." msgstr "" "对于新用户,个人 Debian 系统,家庭系统以及其它单用户配置来说,一个单一 " "/ 分区(加上交换分区)可能是最容易的方案。但是如果您的分区" "大于6GB,请选择 ext3 作为您的分区类型。ext2 分区需要周期性的系统完整性检查并" "且当分区很大的时候,这个特性将导致引导期间的延迟。" #. Tag: para #: partitioning.xml:232 #, no-c-format msgid "" "For multi-user systems or systems with lots of disk space, it's best to put " "/usr, /var, /tmp, and /home each on their own partitions " "separate from the / partition." msgstr "" "对于多用户系统或者有很多磁盘空间的系统,最好放置 /usr, " "/var, /tmp, 以及 /home 到每个他们自己的分区空间以和 / 分区分离开来。" #. Tag: para #: partitioning.xml:240 #, no-c-format msgid "" "You might need a separate /usr/local partition if you " "plan to install many programs that are not part of the Debian distribution. " "If your machine will be a mail server, you might need to make /var/" "mail a separate partition. Often, putting /tmp on its own partition, for instance 20–50MB, is a good idea. " "If you are setting up a server with lots of user accounts, it's generally " "good to have a separate, large /home partition. In " "general, the partitioning situation varies from computer to computer " "depending on its uses." msgstr "" "假如您计划安装许多不是 Debian 分发版本的程序的时候,也许需要一个独立的 " "/usr/local 分区。如果您的机器是一个邮件服务器,也许需要" "为 /var/mail 建立一个独立的分区。通常情况下,/" "tmp 放在它自己独立的分区,比如 20–50MB 是一个好主意。如果您" "要创建一个带有多个用户的服务器,通常需要一个独立的、大的 /home 分区。一般来说,分区状况对每台计算机都有所不同,这取决于他们的用" "途。" #. Tag: para #: partitioning.xml:252 #, no-c-format msgid "" "For very complex systems, you should see the Multi Disk HOWTO. This contains in-depth information, " "mostly of interest to ISPs and people setting up servers." msgstr "" "对于非常复杂的系统来说,您应该阅读 " "Multi Disk HOWTO。其中包含了很多对于 ISP 以及配置服务器的用户很有用的" "高级信息。" #. Tag: para #: partitioning.xml:259 #, no-c-format msgid "" "With respect to the issue of swap partition size, there are many views. One " "rule of thumb which works well is to use as much swap as you have system " "memory. It also shouldn't be smaller than 16MB, in most cases. Of course, " "there are exceptions to these rules. If you are trying to solve 10000 " "simultaneous equations on a machine with 256MB of memory, you may need a " "gigabyte (or more) of swap." msgstr "" "在交换分区大小方面,这里有很多观点。我们的建议是使用和内存大小相同的交换分" "区。在大多数情况下它也应该不小于16MB。当然,这里有一些例外。如果您正在尝试在" "一个有 256MB 内存的机器上解决10000 个联立方程式,您也许需要 1G (或者更多)的交" "换分区。" #. Tag: para #: partitioning.xml:268 #, no-c-format msgid "" "On the other hand, Atari Falcons and Macs feel pain when swapping, so " "instead of making a large swap partition, get as much RAM as possible." msgstr "" "在另外一个方面,Atari Falcons 以及 Macs 会对交换感到很痛苦,因此建立一个大的" "交换分区不如获得尽可能多的 RAM 。" #. Tag: para #: partitioning.xml:273 #, no-c-format msgid "" "On 32-bit architectures (i386, m68k, 32-bit SPARC, and PowerPC), the maximum " "size of a swap partition is 2GB. That should be enough for nearly any " "installation. However, if your swap requirements are this high, you should " "probably try to spread the swap across different disks (also called " "spindles) and, if possible, different SCSI or IDE channels. " "The kernel will balance swap usage between multiple swap partitions, giving " "better performance." msgstr "" "在 32 位体系结构(i386, m68k, 32位 SPARC 以及 PowerPC)下,最大尺寸的交换分区" "是 2GB。这应该基本满足任何安装情况。但是如果您的交换分区需求非常大,您应该尝" "试分离交换分区至不同磁盘中(这也叫做 spindles ),并且如果可能的" "话,不同的 SCSI 或者 IDE 通道。内核将在多个交换空间平衡用量来达到更好的性能。" #. Tag: para #: partitioning.xml:283 #, no-c-format msgid "" "As an example, an older home machine might have 32MB of RAM and a 1.7GB IDE " "drive on /dev/hda. There might be a 500MB partition for " "another operating system on /dev/hda1, a 32MB swap " "partition on /dev/hda3 and about 1.2GB on /" "dev/hda2 as the Linux partition." msgstr "" "作为一个例子,在一个较老的家用机器上,可能具有 32MB 内存以及一个在 " "/dev/hda 上 1.7GB 的 IDE 驱动器。这里 /dev/" "hda1 上是一个 500MB 的分区用于其它操作系统,一个 32MB 交换分区在 " "/dev/hda3,以及一个 1.2GB 分区 /dev/hda2 用于 Linux 分区。" #. Tag: para #: partitioning.xml:292 #, no-c-format msgid "" "For an idea of the space taken by tasks you might be interested in adding " "after your system installation is complete, check ." msgstr "" "对于不同任务所需要多大的空间的概念,您也许对于安装系统后加入的安装感兴趣,请" "检查 。" #. Tag: title #: partitioning.xml:308 #, no-c-format msgid "Device Names in Linux" msgstr "Linux 里面的设备名称" #. Tag: para #: partitioning.xml:309 #, no-c-format msgid "" "Linux disks and partition names may be different from other operating " "systems. You need to know the names that Linux uses when you create and " "mount partitions. Here's the basic naming scheme:" msgstr "" "Linux 磁盘以及分区名称可能和其它的操作系统有所不同。您需要知道 Linux 用于创建" "以及挂接分区的设备名称。这里是基本的命名方案:" #. Tag: para #: partitioning.xml:317 #, no-c-format msgid "The first floppy drive is named /dev/fd0." msgstr "第一个软盘驱动器被命名为 /dev/fd0。" #. Tag: para #: partitioning.xml:322 #, no-c-format msgid "The second floppy drive is named /dev/fd1." msgstr "第二个软盘驱动器被命名为 /dev/fd1。" #. Tag: para #: partitioning.xml:327 #, no-c-format msgid "" "The first SCSI disk (SCSI ID address-wise) is named /dev/sda." msgstr "" "第一个 SCSI 驱动器 (SCSI ID 反向地址) 被命名为 /dev/sda。" #. Tag: para #: partitioning.xml:333 #, no-c-format msgid "" "The second SCSI disk (address-wise) is named /dev/sdb, " "and so on." msgstr "" "第二个 SCSI 驱动器 (反向地址) 被命名为 /dev/sdb,等等。" #. Tag: para #: partitioning.xml:339 #, no-c-format msgid "" "The first SCSI CD-ROM is named /dev/scd0, also known as " "/dev/sr0." msgstr "" "第一个 SCSI 光盘驱动器被命名为 /dev/scd0,也叫 " "/dev/sr0。" #. Tag: para #: partitioning.xml:345 #, no-c-format msgid "" "The master disk on IDE primary controller is named /dev/hda." msgstr "主 IDE 驱动器下的主磁盘被命名为 /dev/hda。" #. Tag: para #: partitioning.xml:351 #, no-c-format msgid "" "The slave disk on IDE primary controller is named /dev/hdb." msgstr "" "第二个控制器的主磁盘和从磁盘会分别被叫做 /dev/hdb。" #. Tag: para #: partitioning.xml:357 #, no-c-format msgid "" "The master and slave disks of the secondary controller can be called " "/dev/hdc and /dev/hdd, " "respectively. Newer IDE controllers can actually have two channels, " "effectively acting like two controllers. The letters " "may differ from what shows in the mac program pdisk (i.e. what shows up as " "/dev/hdc on pdisk may show up as /dev/hda in Debian). " msgstr "" "第二个控制器的主磁盘和从磁盘会分别被叫做 /dev/hdc 以及 " "/dev/hdd,较新的 IDE 控制器实际上有两个通道,扮演着两个" "控制器的角色。 字母可能和 mac 程序 pdisk 显示有所不同。" "(在 pdisk 上的 /dev/hdc 可能在 Debian 中显示为 " "/dev/hda)。" #. Tag: para #: partitioning.xml:372 #, no-c-format msgid "The first XT disk is named /dev/xda." msgstr "第一个 XT 磁盘会被命名为 /dev/xda。" #. Tag: para #: partitioning.xml:377 #, no-c-format msgid "The second XT disk is named /dev/xdb." msgstr "第二个 XT 磁盘会被命名为 /dev/xdb。" #. Tag: para #: partitioning.xml:382 #, no-c-format msgid "" "The first ACSI device is named /dev/ada, the second is " "named /dev/adb." msgstr "" "第一个 ACSI 设备被命名为 /dev/ada ,第二个则是 " "/dev/adb。" #. Tag: para #: partitioning.xml:391 #, no-c-format msgid "The first DASD device is named /dev/dasda." msgstr "第一个 DASD 设备被命名为 /dev/dasda。" #. Tag: para #: partitioning.xml:397 #, no-c-format msgid "" "The second DASD device is named /dev/dasdb, and so on." msgstr "第二个 DASD 设备被命名为 /dev/dasdb,等等。" #. Tag: para #: partitioning.xml:405 #, no-c-format msgid "" "The partitions on each disk are represented by appending a decimal number to " "the disk name: sda1 and sda2 " "represent the first and second partitions of the first SCSI disk drive in " "your system." msgstr "" "每个磁盘的分区名的显示,是通过在磁盘名称后面附加一个十进制数字: " "sda1 以及 sda2 表示您系统里第一个 " "SCSI 磁盘驱动器的第一个和第二个分区。" #. Tag: para #: partitioning.xml:412 #, no-c-format msgid "" "Here is a real-life example. Let's assume you have a system with 2 SCSI " "disks, one at SCSI address 2 and the other at SCSI address 4. The first disk " "(at address 2) is then named sda, and the second " "sdb. If the sda drive has 3 " "partitions on it, these will be named sda1, " "sda2, and sda3. The same applies " "to the sdb disk and its partitions." msgstr "" "这里有一个具体的例子。假设您有一个系统带有两个 SCSI 磁盘,一个 SCSI 地址是 2 " "并且另外一个地址是 4。第一个磁盘(在 2 上)会被命名为 sda" "并且第二个是 sdb。如果 sda 驱动器" "有 3 个分区,它们将被命名为 sda1sda2,以及 sda3。这同样适合 sdb 及其分区。" #. Tag: para #: partitioning.xml:423 #, no-c-format msgid "" "Note that if you have two SCSI host bus adapters (i.e., controllers), the " "order of the drives can get confusing. The best solution in this case is to " "watch the boot messages, assuming you know the drive models and/or " "capacities." msgstr "" "注意如果您有两个 SCSI 主机总线适配器(控制器),设备的顺序可能会比较混乱。最好" "的解决方案是观察引导信息,假设您知道驱动器模式以及/或者容量。" #. Tag: para #: partitioning.xml:430 #, no-c-format msgid "" "Linux represents the primary partitions as the drive name, plus the numbers " "1 through 4. For example, the first primary partition on the first IDE drive " "is /dev/hda1. The logical partitions are numbered " "starting at 5, so the first logical partition on that same drive is " "/dev/hda5. Remember that the extended partition, that " "is, the primary partition holding the logical partitions, is not usable by " "itself. This applies to SCSI disks as well as IDE disks." msgstr "" "Linux 表示主分区为您的驱动器名称加上数字 1 到 4。例如,在第一个 IDE 驱动器上" "的第一个主分区是 /dev/hda1。逻辑驱动器将会从数字 5 开" "始,因此在相同驱动器上的第一个逻辑驱动器是 /dev/hda5。记" "住扩展分区,也就是含有逻辑驱动器的主分区本身将不可用。这个规则对 SCSI 也同样" "适用。" #. Tag: para #: partitioning.xml:441 #, no-c-format msgid "" "VMEbus systems using the TEAC FC-1 SCSI floppy drive will see it as normal " "SCSI disk. To make identification of the drive simpler the installation " "software will create a symbolic link to the appropriate device and name it " "/dev/sfd0." msgstr "" "VMEbus 系统使用的 TEAC FC-1 SCSI 软盘驱动器将被看成正常的 SCSI 磁盘。为了让驱" "动器辨认更强容易安装软件将创建一个符号链接至合适的设备并且称为 /" "dev/sfd0。" #. Tag: para #: partitioning.xml:448 #, no-c-format msgid "" "Sun disk partitions allow for 8 separate partitions (or slices). The third " "partition is usually (and is preferred to have) the Whole Disk partition. This partition references all of the sectors of the disk, " "and is used by the boot loader (either SILO, or Sun's)." msgstr "" "Sun 磁盘分区允许8个独立的分区(或者片)。第三个分区通常是(一般也被建议设置为)" "Whole Disk分区。这个分区代表磁盘上所有的扇区,并且将被启动引导" "器(SILO 或者 SUN 的)使用。" #. Tag: para #: partitioning.xml:455 #, no-c-format msgid "" "The partitions on each disk are represented by appending a decimal number to " "the disk name: dasda1 and dasda2 " "represent the first and second partitions of the first DASD device in your " "system." msgstr "" "每个磁盘的分区名的显示,是通过在磁盘名称后面附加一个十进制数字: " "dasda1 以及 dasda2 表示您系统上第一" "个 DASD 设备的第一个以及第二个分区。" #. Tag: title #: partitioning.xml:470 #, no-c-format msgid "Debian Partitioning Programs" msgstr "Debian 分区程序" #. Tag: para #: partitioning.xml:471 #, no-c-format msgid "" "Several varieties of partitioning programs have been adapted by Debian " "developers to work on various types of hard disks and computer " "architectures. Following is a list of the program(s) applicable for your " "architecture." msgstr "" "Debian 开发人员配置了几种在不同硬盘和不同体系结构上的分区程序。下面是一个适合" "您的结构的程序列表。" #. Tag: command #: partitioning.xml:483 #, no-c-format msgid "partman" msgstr "partman" #. Tag: para #: partitioning.xml:484 #, no-c-format msgid "" "Recommended partitioning tool in Debian. This Swiss army knife can also " "resize partitions, create filesystems (format in Windows speak) and assign them to the mountpoints." msgstr "" "推荐的 Debian 分区工具。这把瑞士军刀可以修改分区大小,创建文件系统 (在 Windows 下的说法是 format) 以及关联" "分区至挂接点。" #. Tag: command #: partitioning.xml:495 #, no-c-format msgid "fdisk" msgstr "fdisk" #. Tag: para #: partitioning.xml:496 #, no-c-format msgid "The original Linux disk partitioner, good for gurus." msgstr "原始版本的 Linux 磁盘分区工具,对于高手很好用。" #. Tag: para #: partitioning.xml:500 #, no-c-format msgid "" "Be careful if you have existing FreeBSD partitions on your machine. The " "installation kernels include support for these partitions, but the way that " "fdisk represents them (or not) can make the device names " "differ. See the Linux+FreeBSD HOWTO." msgstr "" "请注意,如果您的机器上有一个 FreeBSD 分区。安装内核包括这些分区的支持,但是 " "fdisk 表示他们的设备名称方式可能有所不同(也可能不是)。参" "阅 Linux+FreeBSD HOWTO。" #. Tag: command #: partitioning.xml:512 #, no-c-format msgid "cfdisk" msgstr "cfdisk" #. Tag: para #: partitioning.xml:513 #, no-c-format msgid "A simple-to-use, full-screen disk partitioner for the rest of us." msgstr "一个简单易用,给其它人使用的是全屏幕磁盘分区程序。" #. Tag: para #: partitioning.xml:517 #, no-c-format msgid "" "Note that cfdisk doesn't understand FreeBSD partitions at " "all, and, again, device names may differ as a result." msgstr "" "请注意 cfdisk 完全不了解 FreeBSD 的分区,因此,再一次设备" "名称可能最后有所不同。" #. Tag: command #: partitioning.xml:526 #, no-c-format msgid "atari-fdisk" msgstr "atari-fdisk" #. Tag: para #: partitioning.xml:527 #, no-c-format msgid "Atari-aware version of fdisk." msgstr "Atari 版本的 fdisk。" #. Tag: command #: partitioning.xml:535 #, no-c-format msgid "amiga-fdisk" msgstr "amiga-fdisk" #. Tag: para #: partitioning.xml:536 #, no-c-format msgid "Amiga-aware version of fdisk." msgstr "Amiga-aware 版本的 fdisk。" #. Tag: command #: partitioning.xml:544 #, no-c-format msgid "mac-fdisk" msgstr "mac-fdisk" #. Tag: para #: partitioning.xml:545 #, no-c-format msgid "Mac-aware version of fdisk." msgstr "Mac-aware 版本的 fdisk。" #. Tag: command #: partitioning.xml:553 #, no-c-format msgid "pmac-fdisk" msgstr "pmac-fdisk" #. Tag: para #: partitioning.xml:554 #, no-c-format msgid "" "PowerMac-aware version of fdisk, also used by BVM and " "Motorola VMEbus systems." msgstr "" "PowerMac 的 fdisk版本,同时也用于 BVM 以及 Motorola " "VMEbus 系统。" #. Tag: command #: partitioning.xml:563 #, no-c-format msgid "fdasd" msgstr "fdasd" #. Tag: para #: partitioning.xml:564 #, no-c-format msgid "" "&arch-title; version of fdisk; Please read the fdasd " "manual page or chapter 13 in Device Drivers and " "Installation Commands for details." msgstr "" "&arch-title; fdisk 的版本; 请阅读 fdasd 手册页或者 Device Drivers and " "\"\n" "\"Installation Commands 的第 13 章获得详细信息。" #. Tag: para #: partitioning.xml:575 #, no-c-format msgid "" "One of these programs will be run by default when you select " "Partition disks (or similar). It may be possible " "to use a different partitioning tool from the command line on VT2, but this " "is not recommended." msgstr "" "如果您选择了 Partition disks (或类似的),默认会执" "行其中的一个程序。在 VT2 命令行上也可以使用其他的分区工具,但不推荐这种方式。" #. Tag: para #: partitioning.xml:582 #, no-c-format msgid "Remember to mark your boot partition as Bootable." msgstr "要记得标记您的启动分区为 Bootable。" #. Tag: para #: partitioning.xml:585 #, no-c-format msgid "" "One key point when partitioning for Mac type disks is that the swap " "partition is identified by its name; it must be named swap. " "All Mac linux partitions are the same partition type, Apple_UNIX_SRV2. " "Please read the fine manual. We also suggest reading the mac-fdisk Tutorial, which includes steps you " "should take if you are sharing your disk with MacOS." msgstr "" "为 Mac 类型磁盘分区的关键点是,交换分区是根据其名称确定的,它必须被命名为" "swap。所有的 Mac Linux 分区都是相同的 Apple_UNIX_SRV2 分区类" "型。请阅读合适的手册。我们还建议您阅读 mac-fdisk Tutorial,其中包括了如何同 MacOS 共享磁盘的步骤。" # index.docbook:612, index.docbook:672, index.docbook:696, index.docbook:793, index.docbook:912, index.docbook:989 #. Tag: title #: partitioning.xml:601 partitioning.xml:662 partitioning.xml:686 #: partitioning.xml:783 partitioning.xml:897 partitioning.xml:974 #, no-c-format msgid "Partitioning for &arch-title;" msgstr "为 &arch-title; 准备分区" #. Tag: para #: partitioning.xml:602 #, no-c-format msgid "" "Booting Debian from the SRM console (the only disk boot method supported by " "&releasename;) requires you to have a BSD disk label, not a DOS partition " "table, on your boot disk. (Remember, the SRM boot block is incompatible with " "MS-DOS partition tables — see .) As " "a result, partman creates BSD disk labels when running on " "&architecture;, but if your disk has an existing DOS partition table the " "existing partitions will need to be deleted before partman can convert it to use a disk label." msgstr "" "从 SRM 控制台引导 Debian (惟一能被 &releasename; 支持的启动方法)要求您的启动" "盘上有 BSD disk label,而不是 DOS 分区。(注意,SRM 引导块不和 MS-DOS 分区兼" "容 — 参阅 。)因此,partman 在 &architecture; 上运行时会创建 BSD disk label,如果您的磁盘上已经" "存在一个 DOS 分区表,在 partman 转换到 disk label 前需要将它删除。" #. Tag: para #: partitioning.xml:613 #, no-c-format msgid "" "If you have chosen to use fdisk to partition your disk, " "and the disk that you have selected for partitioning does not already " "contain a BSD disk label, you must use the b command to enter " "disk label mode." msgstr "" "如果您选择使用 fdisk 为您的磁盘分区,并且该磁盘上没有 BSD " "磁盘卷标,您必须使用b命令进入磁盘卷标模式。" #. Tag: para #: partitioning.xml:620 #, no-c-format msgid "" "Unless you wish to use the disk you are partitioning from Tru64 Unix or one " "of the free 4.4BSD-Lite derived operating systems (FreeBSD, OpenBSD, or " "NetBSD), you should not create the third partition as a " "whole disk partition (i.e. with start and end sectors to span " "the whole disk), as this renders the disk incompatible with the tools used " "to make it bootable with aboot. This means that the disk configured by the " "installer for use as the Debian boot disk will be inaccessible to the " "operating systems mentioned earlier." msgstr "" "除非您想在 Tru64 Unix 或者一个 free 4.4BSD-Lite 后续的系统下(FreeBSD, " "OpenBSD 或 NetBSD)使用这个磁盘,请 不要 建立包含" "整个磁盘的第三分区(如,起始和终止扇区扩展到整个磁盘),这与让磁盘启动" "的工具 aboot 不兼容。意味着安装程序配置的 Debian 引导盘将无法被前面提到的操作" "系统访问。" #. Tag: para #: partitioning.xml:632 #, no-c-format msgid "" "Also, because aboot is written to the first few sectors " "of the disk (currently it occupies about 70 kilobytes, or 150 sectors), you " "must leave enough empty space at the beginning of the " "disk for it. In the past, it was suggested that you make a small partition " "at the beginning of the disk, to be left unformatted. For the same reason " "mentioned above, we now suggest that you do not do this on disks that will " "only be used by GNU/Linux. When using partman, a small " "partition will still be created for aboot for convenience " "reasons." msgstr "" "同时,由于 aboot 将被写到磁盘的前面的几个扇区(目前它占用大" "约 70 KB 空间,或者 150 个扇区)。您 必须 在磁盘的开始处" "留下足够的空间。以前的方法建议您在磁盘的开始处分出一个较小并且不格式化的分" "区。基于上面的理由,我们现在建议您这块磁盘专门用于 GNU/Linux。当使用 " "partman,仍会建立一个小的分区给 aboot," "这是习惯所致。" #. Tag: para #: partitioning.xml:644 #, no-c-format msgid "" "For ARC installations, you should make a small FAT partition at the " "beginning of the disk to contain MILO and " "linload.exe — 5 megabytes should be sufficient, see " ". Unfortunately, making FAT file " "systems from the menu is not yet supported, so you'll have to do it manually " "from the shell using mkdosfs before attempting to install " "the boot loader." msgstr "" "对于 ARC 的安装来说,您应该在磁盘开始处建立一个小的 FAT 分区以便装入 " "MILO 以及 linload.exe — 至少需要 " "5 MB 空间,请参见 。不幸地是,从菜" "单建立 FAT 文件系统的方法是不被支持的,因此您必须在 Shell 下面使用 " "mkdosfs 然后再尝试安装启动引导器。" #. Tag: para #: partitioning.xml:663 #, no-c-format msgid "" "PALO, the HPPA boot loader, requires a partition of type F0 " "somewhere in the first 2GB. This is where the boot loader and an optional " "kernel and RAMdisk will be stored, so make it big enough for that — at " "least 4Mb (I like 8–16MB). An additional requirement of the firmware " "is that the Linux kernel must reside within the first 2GB of the disk. This " "is typically achieved by making the root ext2 partition fit entirely within " "the first 2GB of the disk. Alternatively you can create a small ext2 " "partition near the start of the disk and mount that on /boot, since that is the directory where the Linux kernel(s) will be " "stored. /boot needs to be big enough to hold whatever " "kernels (and backups) you might wish to load; 25–50MB is generally " "sufficient." msgstr "" "PALO 是一个 HPPA 的启动引导器。它需要在磁盘前 2GB 内得到一个 F0 类型的分区。这个分区里面装有启动引导器以及可选的内核和内存虚拟磁盘。因" "此最好这个分区的大小应该符合这个要求 — 至少需要 4 MB (我个人倾向于 " "8–16 MB)。固件的一个附加的要求是 Linux 内核必须在磁盘的前 2GB 内。达到" "这一点要求需要把根 ext2 分区整个放在磁盘的头 2GB 内。或者您可以在磁盘前部创建" "一个小分区,并且被挂载到 /boot,然后在这个目录下面放置 " "Linux 内核。/boot 需要足够大以便能够放置入内核;" "25–50 MB 一般来说应该足够了。" #. Tag: para #: partitioning.xml:687 #, no-c-format msgid "" "If you have an existing other operating system such as DOS or Windows and " "you want to preserve that operating system while installing Debian, you may " "need to resize its partition to free up space for the Debian installation. " "The installer supports resizing of both FAT and NTFS filesystems; when you " "get to the installer's partitioning step, select the option " "Manual and then simply select an existing " "partition and change its size." msgstr "如果您已经有 DOS 或 Windows 这样的其他操作系统存在,并想在安装 Debian 时保留它们,您应该重新设置分区大小,释放空间给 Debian 安装程序。安装程序支持修改 FAT 和 NTFS 文件系统的尺寸;当您进入安装程序的分区步骤,选择 Manual 选项,然后只需选择已有的分区,并更改其尺寸。" #. Tag: para #: partitioning.xml:697 #, no-c-format msgid "" "The PC BIOS generally adds additional constraints for disk partitioning. " "There is a limit to how many primary and logical partitions a drive can contain. Additionally, with pre 1994–98 " "BIOSes, there are limits to where on the drive the BIOS can boot from. More " "information can be found in the Linux " "Partition HOWTO and the Phoenix BIOS FAQ, but this section will include a brief " "overview to help you plan most situations." msgstr "" "PC BIOS 一般会对磁盘分区加入一些约束。比如一个磁盘驱动可以含有多少个主" "分区和逻辑分区。在 1994$ndash;98 年的 BIOS 里,还有关" "于 BIOS 能够从什么地方引导的限制。详细的信息可以在 Linux Partition HOWTO 以及 Phoenix BIOS FAQ 中找到。但是这一节将" "包含一个简单的介绍,来帮助在大部分情况下进行规划。" #. Tag: para #: partitioning.xml:708 #, no-c-format msgid "" "Primary partitions are the original partitioning scheme for " "PC disks. However, there can only be four of them. To get past this " "limitation, extended and logical partitions " "were invented. By setting one of your primary partitions as an extended " "partition, you can subdivide all the space allocated to that partition into " "logical partitions. You can create up to 60 logical partitions per extended " "partition; however, you can only have one extended partition per drive." msgstr "" "Primary 分区是 PC 磁盘上最原始的分区方案。但是,每个磁盘只能含" "有四个主分区。为了突破这个限制,发明了 拓展 (extended) 以及 " " 逻辑 分区。通过设置一个主分区为拓展分区,您可以把它相关的分" "区划分成逻辑分区。您最多可以为每个拓展分区分配多至 60 逻辑驱动器;但是每个磁" "盘您只能含有一个扩展分区。" #. Tag: para #: partitioning.xml:719 #, no-c-format msgid "" "Linux limits the partitions per drive to 15 partitions for SCSI disks (3 " "usable primary partitions, 12 logical partitions), and 63 partitions on an " "IDE drive (3 usable primary partitions, 60 logical partitions). However the " "normal &debian; system provides only 20 devices for partitions, so you may " "not install on partitions higher than 20 unless you first manually create " "devices for those partitions." msgstr "" "对于 SCSI 来说,Linux 限制每个驱动器最多有 15 个分区(3 个可用的主分区,12 个" "逻辑分区)。对于 IDE 来说可以有 63 个分区(3 个可用的主分区,60 个逻辑分区)。但" "是对于正常的 &debian; 版本来说,系统只支持 20 个分区设备,因此您可能不能安装" "超过 20 个的分区,除非您为这些首先手工创建了设备文件。" #. Tag: para #: partitioning.xml:729 #, no-c-format msgid "" "If you have a large IDE disk, and are using neither LBA addressing, nor " "overlay drivers (sometimes provided by hard disk manufacturers), then the " "boot partition (the partition containing your kernel image) must be placed " "within the first 1024 cylinders of your hard drive (usually around 524 " "megabytes, without BIOS translation)." msgstr "" "如果您有一个巨大的 IDE 磁盘,并且既没有使用 LBA 寻址,也没有扩展驱动器(硬盘制" "造商有时候提供此功能),那么引导分区(含有您内核映像的分区)必须放置在硬盘第一" "个 1024 柱面内。(在没有 BIOS 转换的情况下,大约有 524MB)。" #. Tag: para #: partitioning.xml:737 #, no-c-format msgid "" "This restriction doesn't apply if you have a BIOS newer than around " "1995–98 (depending on the manufacturer) that supports the " "Enhanced Disk Drive Support Specification. Both Lilo, the " "Linux loader, and Debian's alternative mbr must use the " "BIOS to read the kernel from the disk into RAM. If the BIOS int 0x13 large " "disk access extensions are found to be present, they will be utilized. " "Otherwise, the legacy disk access interface is used as a fall-back, and it " "cannot be used to address any location on the disk higher than the 1023rd " "cylinder. Once Linux is booted, no matter what BIOS your computer has, these " "restrictions no longer apply, since Linux does not use the BIOS for disk " "access." msgstr "" "如果您的 BIOS 在 1995–98 年之后出现(取决于制造商)并且支持 " "Enhanced Disk Drive Support Specification,这个限制并不有效。" "Lilo 引导器和 Debian 的 mbr 都必须使用 BIOS 来从磁盘读取内" "核至内存。如果 BIOS int 0x13 大硬盘访问拓展被打开,则将被使用。否则会使用旧的" "传统磁盘访问界面,并且它不能找到任何大于 1023 的柱面。一旦 Linux 被引导后,不" "管您的计算机 BIOS 是什么,这些限制将不再起任何作用,因为 Linux 并不使用 BIOS " "来进行磁盘寻址。" #. Tag: para #: partitioning.xml:751 #, no-c-format msgid "" "If you have a large disk, you might have to use cylinder translation " "techniques, which you can set from your BIOS setup program, such as LBA " "(Logical Block Addressing) or CHS translation mode (Large). " "More information about issues with large disks can be found in the Large Disk HOWTO. If you are using a " "cylinder translation scheme, and the BIOS does not support the large disk " "access extensions, then your boot partition has to fit within the " "translated representation of the 1024th cylinder." msgstr "" "如果您有一个大硬盘,您也许必须使用柱面转换(cylinder translation)技术。它可以" "在您的 BIOS 设置程序中打开,比如 LBA (Logical Block Addressing) 或者 CHS 转换" "模式(Large)。关于大硬盘的各种问题可以在 Large Disk HOWTO 下找到。如果您正在使用一个柱面转" "换方案,并且 BIOS 并不支持大硬盘访问拓展,您的引导分区必须放置在 转" "换后 的 1024 柱面内。" #. Tag: para #: partitioning.xml:763 #, no-c-format msgid "" "The recommended way of accomplishing this is to create a small " "(25–50MB should suffice) partition at the beginning of the disk to be " "used as the boot partition, and then create whatever other partitions you " "wish to have, in the remaining area. This boot partition must be mounted on /boot, since that is the " "directory where the Linux kernel(s) will be stored. This configuration will " "work on any system, regardless of whether LBA or large disk CHS translation " "is used, and regardless of whether your BIOS supports the large disk access " "extensions." msgstr "" "解决这个问题的推荐方法,是在磁盘开始处创建一个小的(25–50MB 足矣)分区来" "作为引导分区。并且在其它地方创建其它的分区。这个引导分区必须挂接至 /boot 下,这是因为它是 Linux 内核放置的" "地方。这样的设置将可以在任意系统上工作,不管 LBA 或者大硬盘 CHS 转换是否起作" "用,甚至也不管您的 BIOS 是否支持大硬盘访问扩展。" #. Tag: para #: partitioning.xml:784 #, no-c-format msgid "" "The partman disk partitioner is the default partitioning " "tool for the installer. It manages the set of partitions and their mount " "points to ensure that the disks and filesystems are properly configured for " "a successful installation. It actually uses parted to do " "the on-disk partitioning." msgstr "" "partman 是安装程序的缺省分区工具。它管理一系列分区以及挂载" "点,对于一个成功的安装确保磁盘和文件系统有合适的配置。实际上它使用的是 " "parted 来进行磁盘分区的。" #. Tag: title #: partitioning.xml:796 #, no-c-format msgid "EFI Recognized Formats" msgstr "EFI 能够识别的格式" #. Tag: para #: partitioning.xml:797 #, no-c-format msgid "" "The IA64 EFI firmware supports two partition table (or disk label) formats, " "GPT and MS-DOS. MS-DOS, the format typically used on i386 PCs, is no longer " "recommended for IA64 systems. Although the installer also provides " "cfdisk, you should only use " "parted because only it can manage both GPT and MS-" "DOS tables correctly." msgstr "" "IA64 EFI 固件支持 GPT 和 MS-DOS 两种分区表(或者 disk label)格式。MS-DOS 格式" "通常用在 i386 PC 上,对于 IA64 已经不建议使用。尽管安装程序同时提供了 " "cfdisk,您应该只采用 " "parted,因为只有它能够同时正确地管理 GPT 和 MS-" "DOS 分区表。" #. Tag: para #: partitioning.xml:809 #, no-c-format msgid "" "The automatic partitioning recipes for partman allocate " "an EFI partition as the first partition on the disk. You can also set up the " "partition under the Guided partitioning from the " "main menu in a manner similar to setting up a swap " "partition." msgstr "" "partman 自动分区方案会分配一个 EFI 分区作为磁盘上的第一个" "分区。您也可以在主菜单下选择 Guided partitioning " "配置分区。其方法类似设置一个 交换 分区。" #. Tag: para #: partitioning.xml:817 #, no-c-format msgid "" "The partman partitioner will handle most disk layouts. " "For those rare cases where it is necessary to manually set up a disk, you " "can use the shell as described above and run the parted " "utility directly using its command line interface. Assuming that you want to " "erase your whole disk and create a GPT table and some partitions, then " "something similar to the following command sequence could be used: " "\n" " mklabel gpt\n" " mkpartfs primary fat 0 50\n" " mkpartfs primary linux-swap 51 1000\n" " mkpartfs primary ext2 1001 3000\n" " set 1 boot on\n" " print\n" " quit\n" " This creates a new partition table, and three " "partitions to be used as an EFI boot partition, swap space, and a root file " "system. Finally it sets the boot flag on the EFI partition. Partitions are " "specified in Megabytes, with start and end offsets from the beginning of the " "disk. So, for example, above we created a 1999MB ext2 file system starting " "at offset 1001MB from the start of the disk. Note that formatting swap space " "with parted can take a few minutes to complete, as it " "scans the partition for bad blocks." msgstr "" "partman 分区工具将掌握大部分的磁盘布局。对于那些需要手工设" "置磁盘的罕见例子,您可以按照上面方法采用 shell 并且直接运行 parted 工具下的明令行界面。比如您想擦除您的整个硬盘并且创立一个 GPT 分区表" "以及一些分区,则可以才采用类似下面命令的方法: \n" " mklabel gpt\n" " mkpartfs primary fat 0 50\n" " mkpartfs primary linux-swap 51 1000\n" " mkpartfs primary ext2 1001 3000\n" " set 1 boot on\n" " print\n" " quit\n" " 这里创建了一个新的分区表,以及三个分区分别用做 " "EFI 引导分区,交换空间以及一个根文件系统。最后它设置了 EFI 分区的引导标记。分" "区将用兆字节,以及起始和结束位置到磁盘开始的偏移量来表示。因此,比如在上面我" "们在到磁盘开始处偏移量为 1001MB 的地方开始创建了一个 1999MB ext2 文件系统。注" "意采用 parted 格式化交换分区,可能要花一些时间来完成,因为" "它可能要扫描坏区。" #. Tag: title #: partitioning.xml:842 #, no-c-format msgid "Boot Loader Partition Requirements" msgstr "启动引导器分区要求" #. Tag: para #: partitioning.xml:843 #, no-c-format msgid "" "ELILO, the ia64 boot loader, requires a partition containing a FAT file " "system with the boot flag set. The partition must be " "big enough to hold the boot loader and any kernels or RAMdisks you may wish " "to boot. A minimum size would be about 20MB, but if you expect to run with " "multiple kernels, then 128MB might be a better size." msgstr "" "ELILO 作为一种 ia64 启动引导器需要一个含有 FAT 文件系统的分区。且此分区标记" "为 boot。分区必须足够大以便能够放入启动引导器,您想引" "导的内核以及 RAMdisks 内存磁盘镜像。最小的尺寸大概有 20MB,但是如果您想使用多" "个内核的话,128MB 也许更好。" #. Tag: para #: partitioning.xml:852 #, no-c-format msgid "" "The EFI Boot Manager and the EFI Shell fully support the GPT table so the " "boot partition does not necessarily have to be the first partition or even " "on the same disk. This is convenient if you should forget to allocate the " "partition and only find out after you have formatted the other partitions on " "your disk(s). The partman partitioner checks for an EFI " "partition at the same time it checks for a properly set up root partition. This gives you an opportunity to correct the disk " "layout before the package install begins. The easiest way to correct this " "omission is to shrink the last partition of the disk to make enough free " "space for adding an EFI partition." msgstr "" "因为 EFI Boot Manager 以及 EFI Shell 完全支持 GPT 表格所以引导分区不需要一定" "是第一个分区,甚至可以不在本地磁盘上。这样方便您在格式化磁盘上的其它分区后再" "决定。partman 分区程序将在设置 root " "分区时会同时检查一个 EFI 分区。这样您就有机会在开始安装软件包之前检查磁盘的布" "局。纠正这个问题的最简单的方法,是在最后一个分区末尾留下足够的磁盘空间,来加" "入一个 EFI 分区。" #. Tag: para #: partitioning.xml:867 #, no-c-format msgid "" "It is strongly recommended that you allocate the EFI boot partition on the " "same disk as the root filesystem." msgstr "" "强烈建议您把 EFI 引导分区和 root 文件系统分配在同一个磁" "盘上。" #. Tag: title #: partitioning.xml:875 #, no-c-format msgid "EFI Diagnostic Partitions" msgstr "EFI 诊断分区" #. Tag: para #: partitioning.xml:876 #, no-c-format msgid "" "The EFI firmware is significantly more sophisticated than the usual BIOS " "seen on most x86 PCs. Some system vendors take advantage of the ability of " "the EFI to access files and run programs from a hard disk filesystem to " "store diagnostics and EFI based system management utilities on the hard " "disk. This is a separate FAT format filesystem on the system disk. Consult " "the system documentation and accessories that come with the system for " "details. The easiest time to set up a diagnostics partition is at the same " "time you set up the EFI boot partition." msgstr "" "对于在大多数 x86 PCs 上常见的 BIOS 来说,EFI 固件明显要复杂的多。一些系统制造" "商利用 EFI 的 优点从硬盘文件系统来访问文件以及运行程序以保存一些诊断信息和 " "EFI 的系统管理工具。这将在系统磁盘上存在一个分开的 FAT 文件系统。请查阅随机相" "关的系统文档和附件以获得细节。最轻松设置一个诊断分区的时候是在设置 EFI 引导分" "区的时候。" #. Tag: para #: partitioning.xml:898 #, no-c-format msgid "" "SGI machines require an SGI disk label in order to make the system bootable " "from hard disk. It can be created in the fdisk expert menu. The thereby " "created volume header (partition number 9) should be at least 3MB large. If " "the volume header created is too small, you can simply delete partition " "number 9 and re-add it with a different size. Note that the volume header " "must start at sector 0." msgstr "" "SGI 机器需要一个 SGI 磁盘标记来确保系统能够从硬盘上引导。它能够在 fdisk 高级" "菜单下创建。因此创建的 volume header (分区号 9)应该有至少 3MB 大。如果 " "volume header 创建的太小,您可以简单的删除分区号 9,并且重新以不同的尺寸加" "入。注意 volume header 必须从 0 号扇区开始。" #. Tag: title #: partitioning.xml:915 #, no-c-format msgid "Partitioning Newer PowerMacs" msgstr "为较新的 PowerMacs 分区" #. Tag: para #: partitioning.xml:916 #, no-c-format msgid "" "If you are installing onto a NewWorld PowerMac you must create a special " "bootstrap partition to hold the boot loader. The size of this partition must " "be 800KB and its partition type must be Apple_Bootstrap. If the bootstrap partition is not created with the " "Apple_Bootstrap type your machine cannot be made " "bootable from the hard disk. This partition can easily be created by " "creating a new partition in partman and telling it to use " "it as a NewWorld boot partition, or in mac-fdisk using the b command." msgstr "" "如果您正在一台 NewWorld PowerMac 上面安装,您必须创建一个特殊的启动分区来驻留" "启动引导器。这个分区的尺寸必须是 800KB 并且它的分区类型必须是 " "Apple_Bootstrap。如果启动分区并非 " "Apple_Bootstrap 类型则您的机器不能从硬盘上引导。可以采" "用 partman 并告诉它用它作为 NewWorld boot " "partition,或在 mac-fdisk 使用 b 命令。" #. Tag: para #: partitioning.xml:929 #, no-c-format msgid "" "The special partition type Apple_Bootstrap is required to prevent MacOS from " "mounting and damaging the bootstrap partition, as there are special " "modifications made to it in order for OpenFirmware to boot it automatically." msgstr "" "这里要求特殊的分区类型 Apple_Bootstrap 来阻止 MacOS 挂接以及处理启动分区。因" "为里面 含有一些特殊修改的模式来让 OpenFirmware 能够自动启动它。" #. Tag: para #: partitioning.xml:936 #, no-c-format msgid "" "Note that the bootstrap partition is only meant to hold 3 very small files: " "the yaboot binary, its configuration yaboot." "conf, and a first stage OpenFirmware loader ofboot.b. It need not and must not be mounted on your file system nor have " "kernels or anything else copied to it. The ybin and " "mkofboot utilities are used to manipulate this partition." msgstr "" "注意启动分区只含有三个非常小的文件:yaboot 可执行文件,它" "的配置文件 yaboot.conf,以及一个第一级 OpenFirmware 装载" "器 ofboot.b。它不需要,也一定不要被您的文件系统挂接,或者" "把内核以及其它文件放入在其中。ybinmkofboot 工具可以用来维护这个分区。" #. Tag: para #: partitioning.xml:946 #, no-c-format msgid "" "In order for OpenFirmware to automatically boot &debian; the bootstrap " "partition should appear before other boot partitions on the disk, especially " "MacOS boot partitions. The bootstrap partition should be the first one you " "create. However, if you add a bootstrap partition later, you can use " "mac-fdisk's r command to reorder " "the partition map so the bootstrap partition comes right after the map " "(which is always partition 1). It's the logical map order, not the physical " "address order, that counts." msgstr "" "为了确保 OpenFirmware 能够自动引导 &debian; 启动分区应该先于其它磁盘上的引导" "分区,特别是 MacOS 引导分区。启动分区应该是您第一个创建的分区。但是,如果您在" "其它情况下后加入启动分区,您可以使用 mac-fdisk 的 " "r 命令来重新调整分区布局。这样启动分区就可以在随后时间" "内顺利使用 (它总是位于 1 号分区)。注意的是,这只是逻辑布局顺序而不是物理地址" "顺序。" #. Tag: para #: partitioning.xml:958 #, no-c-format msgid "" "Apple disks normally have several small driver partitions. If you intend to " "dual boot your machine with MacOSX, you should retain these partitions and a " "small HFS partition (800k is the minimum size). That is because MacOSX, on " "every boot, offers to initialize any disks which do not have active MacOS " "partitions and driver partitions." msgstr "" "Apple 磁盘通常有一些小的驱动分区。如果您想和 MacOSX 一起使用而采用双引导,您" "应该保持这些分区以及一个小的 HFS 分区 (最少要求 800k)。这是因为 MacOSX 在每次" "启动的时候,会初始化没有任何激活的 MacOS 分区以及驱动分区的磁盘。" #. Tag: para #: partitioning.xml:975 #, no-c-format msgid "" "Make sure you create a Sun disk label on your boot disk. This " "is the only kind of partition scheme that the OpenBoot PROM understands, and " "so it's the only scheme from which you can boot. The s key " "is used in fdisk to create Sun disk labels." msgstr "" "首先确保在您的引导磁盘上面创建有一个 Sun 磁盘标记 。这是 " "OpenBoot PROM 唯一懂得的分区方式,因此它是唯一能够被引导的分区类型。可以在 " "s 中用 fdisk 键来创建 Sun 磁盘标记。" #. Tag: para #: partitioning.xml:983 #, no-c-format msgid "" "Furthermore, on &arch-title; disks, make sure your first partition on your " "boot disk starts at cylinder 0. While this is required, it also means that " "the first partition will contain the partition table and the boot block, " "which are the first two sectors of the disk. You must not put swap on the first partition of the boot drive, since swap " "partitions do not preserve the first few sectors of the partition. You can " "put Ext2 or UFS partitions there; these will leave the partition table and " "the boot block alone." msgstr "" "进一步来说,在 &arch-title; 磁盘里,请确定您的引导磁盘的第一分区是从 " "cylinder 0 开始的。在这里是必须的,这意味着第一个分区将含有分区表以及引导块。" "它们通常在磁盘的前两个扇区内。您必须 not 能设置引导磁盘" "的第一分区为交换分区,因为交换分区并不能保留分区前两个扇区。您可以放置 Ext2 " "或者 UFS 分区在那里;它们将隔离分区表和引导块。" #. Tag: para #: partitioning.xml:994 #, no-c-format msgid "" "It is also advised that the third partition should be of type Whole " "disk (type 5), and contain the entire disk (from the first cylinder " "to the last). This is simply a convention of Sun disk labels, and helps the " "SILO boot loader keep its bearings." msgstr "" "这里建议第三个分区应该是 Whole disk(type 5),并且包含整个磁盘 " "(从第一个柱面至最后一个),这是 Sun 磁盘格式的惯例,并且确保 SILO 启动引导器工作良好。"