3.5. 为多重启动系统事先分区

为您的硬盘分区仅仅指的是将您的硬盘空间切分成几块。分区之后,每一块都是独立于其余部分的单独空间。这和在一个大房子里砌几堵墙有几分相似,如果您在其中一间房间里安置家具,那么这不会对其它房间有任何影响。

If you already have an operating system on your system which uses the whole disk and you want to stick Debian on the same disk, you will need to repartition it. Debian requires its own hard disk partitions. It cannot be installed on Windows or Mac OS X partitions. It may be able to share some partitions with other Unix systems, but that's not covered here. At the very least you will need a dedicated partition for the Debian root filesystem.

You can find information about your current partition setup by using a partitioning tool for your current operating system, such as Disk Utility, Drive Setup, HD Toolkit, or MacTools. Partitioning tools always provide a way to show existing partitions without making changes.

通常情况下,改动一个已经建立文件系统的分区,会导致其中的数据信息遭到损毁。因而,您应当在重新分区之前总是先做一下备份。继续拿房子作比喻,在移动墙壁时,您最好在把挡路的家具都移开,否则就要冒家具被毁坏的危险。

很多新的操作系统都提供无损移动和调节已有分区的功能。使得在不丢失任何数据的情况下就能添加分区空间。即使大多时候都可以正常使用,由于修改分区本身就是危险操作,应该在进行完整备份后再进行。

创建和删除分区可以通过 debian-installer 也可以使用已有的操作系统进行。根据经验,分区应该由使用该分区的系统来创建,也就是说,Debian GNU/Linux 使用的分区应该用 debian-installer 创建,而别的分区则由别的操作系统来操作。debian-installer 可以创建非 Linux 分区,这些分区在其他操作系统下工作也没有问题,但在极端罕见的情况也可能出错,所以如果要十拿九稳,就使用其操作系统上自带的工具来创建分区。

倘若您打算在同一台机器上安装多个操作系统的话,应当在安装 Debian 之前,先把所有其它系统都装好。Windows 和其它操作系统的安装过程可能会让您无法启动 Debian,也可能会怂恿您重新格式化不属于它们自己的分区。

尽管您可以在这些操作之后再恢复回来,也可以避免它们,但是首先安装原有的系统就能够帮您免除这些烦恼。

In order for OpenFirmware to automatically boot Debian GNU/Linux the Linux partitions should appear before all other partitions on the disk, especially Mac OS X boot partitions. This should be kept in mind when pre-partitioning; you should create a Linux placeholder partition to come before the other bootable partitions on the disk. (The small partitions dedicated to Apple disk drivers are not bootable.) You can delete the placeholder with the Debian partition tools later during the actual install, and replace it with Linux partitions.

3.5.1. Mac OS X Partitioning

The Disk Utility application can be found under the Utilities menu in Mac OS X Installer. It will not adjust existing partitions; it is limited to partitioning the entire disk at once.

记住要为 GNU/Linux 创建一个占位用的是分区,最好是磁盘布局中的第一个。它的类型无关紧要,在后面的 Debian GNU/Linux 安装程序中,它会被删除并替换。

Debian installer partition table editing tools are compatible with OS X, but not with MacOS 9. If you are planning to use both MacOS 9 and OS X, it is best to install OS X and Debian on one hard drive, and put MacOS 9 on a separate hard drive. Separate options for OS 9 and OS X will appear when holding the option key at boot time, and separate options can be installed in the yaboot boot menu as well.

GNU/Linux is unable to access information on UFS partitions, but can access HFS+ (aka MacOS Extended) partitions. OS X requires one of these two types for its boot partition. MacOS 9 can be installed on either HFS (aka MacOS Standard) or HFS+. To share information between the Mac OS X and GNU/Linux systems, an exchange partition is handy. HFS, HFS+ and MS-DOS FAT file systems are supported by MacOS 9, Mac OS X and GNU/Linux.